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