author | Akos Ladanyi <ladanyi@tmit.bme.hu> |
Thu, 28 May 2009 12:11:50 +0100 | |
changeset 718 | da70af8844b9 |
parent 674 | 20dac2104519 |
child 726 | 9c7639f3a741 |
permissions | -rw-r--r-- |
ladanyi@539 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@596 | 2 |
${PROJECT_SOURCE_DIR} |
ladanyi@539 | 3 |
${PROJECT_BINARY_DIR} |
ladanyi@539 | 4 |
) |
ladanyi@141 | 5 |
|
ladanyi@596 | 6 |
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) |
ladanyi@141 | 7 |
|
alpar@225 | 8 |
SET(TESTS |
deba@559 | 9 |
adaptors_test |
ladanyi@141 | 10 |
bfs_test |
alpar@443 | 11 |
circulation_test |
kpeter@696 | 12 |
connectivity_test |
ladanyi@141 | 13 |
counter_test |
ladanyi@141 | 14 |
dfs_test |
ladanyi@141 | 15 |
digraph_test |
kpeter@170 | 16 |
dijkstra_test |
ladanyi@141 | 17 |
dim_test |
deba@559 | 18 |
edge_set_test |
ladanyi@141 | 19 |
error_test |
ladanyi@569 | 20 |
euler_test |
tapolcai@590 | 21 |
gomory_hu_test |
deba@200 | 22 |
graph_copy_test |
ladanyi@141 | 23 |
graph_test |
kpeter@171 | 24 |
graph_utils_test |
deba@426 | 25 |
hao_orlin_test |
deba@203 | 26 |
heap_test |
ladanyi@141 | 27 |
kruskal_test |
ladanyi@141 | 28 |
maps_test |
kpeter@641 | 29 |
matching_test |
deba@522 | 30 |
min_cost_arborescence_test |
kpeter@648 | 31 |
min_cost_flow_test |
alpar@443 | 32 |
path_test |
alpar@443 | 33 |
preflow_test |
ladanyi@496 | 34 |
radix_sort_test |
alpar@225 | 35 |
random_test |
alpar@443 | 36 |
suurballe_test |
ladanyi@141 | 37 |
time_measure_test |
ladanyi@141 | 38 |
unionfind_test) |
ladanyi@141 | 39 |
|
ladanyi@674 | 40 |
IF(LEMON_HAVE_LP) |
ladanyi@496 | 41 |
ADD_EXECUTABLE(lp_test lp_test.cc) |
ladanyi@667 | 42 |
SET(LP_TEST_LIBS lemon) |
ladanyi@674 | 43 |
IF(LEMON_HAVE_GLPK) |
ladanyi@667 | 44 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) |
ladanyi@674 | 45 |
ENDIF(LEMON_HAVE_GLPK) |
ladanyi@674 | 46 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@667 | 47 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
ladanyi@674 | 48 |
ENDIF(LEMON_HAVE_CPLEX) |
ladanyi@674 | 49 |
IF(LEMON_HAVE_CLP) |
ladanyi@668 | 50 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) |
ladanyi@674 | 51 |
ENDIF(LEMON_HAVE_CLP) |
ladanyi@667 | 52 |
TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) |
ladanyi@496 | 53 |
ADD_TEST(lp_test lp_test) |
ladanyi@496 | 54 |
|
ladanyi@674 | 55 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@496 | 56 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
ladanyi@496 | 57 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@496 | 58 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
ladanyi@496 | 59 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@496 | 60 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@496 | 61 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@496 | 62 |
) |
ladanyi@674 | 63 |
ENDIF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@674 | 64 |
IF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@667 | 65 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
ladanyi@667 | 66 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@667 | 67 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
ladanyi@667 | 68 |
COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} |
ladanyi@667 | 69 |
) |
ladanyi@674 | 70 |
ENDIF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@674 | 71 |
ENDIF(LEMON_HAVE_LP) |
ladanyi@496 | 72 |
|
ladanyi@674 | 73 |
IF(LEMON_HAVE_MIP) |
ladanyi@496 | 74 |
ADD_EXECUTABLE(mip_test mip_test.cc) |
ladanyi@667 | 75 |
SET(MIP_TEST_LIBS lemon) |
ladanyi@674 | 76 |
IF(LEMON_HAVE_GLPK) |
ladanyi@667 | 77 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) |
ladanyi@674 | 78 |
ENDIF(LEMON_HAVE_GLPK) |
ladanyi@674 | 79 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@667 | 80 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
ladanyi@674 | 81 |
ENDIF(LEMON_HAVE_CPLEX) |
ladanyi@674 | 82 |
IF(LEMON_HAVE_CBC) |
ladanyi@668 | 83 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) |
ladanyi@674 | 84 |
ENDIF(LEMON_HAVE_CBC) |
ladanyi@667 | 85 |
TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) |
ladanyi@496 | 86 |
ADD_TEST(mip_test mip_test) |
ladanyi@496 | 87 |
|
ladanyi@674 | 88 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@496 | 89 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
ladanyi@496 | 90 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@496 | 91 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
ladanyi@496 | 92 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@496 | 93 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@496 | 94 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@496 | 95 |
) |
ladanyi@674 | 96 |
ENDIF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@674 | 97 |
IF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@667 | 98 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
ladanyi@667 | 99 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@667 | 100 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
ladanyi@667 | 101 |
COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} |
ladanyi@667 | 102 |
) |
ladanyi@674 | 103 |
ENDIF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@674 | 104 |
ENDIF(LEMON_HAVE_MIP) |
ladanyi@496 | 105 |
|
alpar@225 | 106 |
FOREACH(TEST_NAME ${TESTS}) |
alpar@225 | 107 |
ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) |
alpar@225 | 108 |
TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) |
alpar@225 | 109 |
ADD_TEST(${TEST_NAME} ${TEST_NAME}) |
alpar@225 | 110 |
ENDFOREACH(TEST_NAME) |