author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 25 Jun 2010 06:20:28 +0200 | |
branch | 1.2 |
changeset 986 | e958855b8186 |
parent 863 | 6be1f9bd2ac0 |
parent 948 | 636dadefe1e6 |
child 992 | e20fecd1945f |
child 999 | c279b19abc62 |
child 1035 | d149eaf24638 |
child 1107 | 2b6bffe0e7e8 |
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 |
deba@948 | 24 |
fractional_matching_test |
tapolcai@590 | 25 |
gomory_hu_test |
deba@200 | 26 |
graph_copy_test |
ladanyi@141 | 27 |
graph_test |
kpeter@171 | 28 |
graph_utils_test |
deba@426 | 29 |
hao_orlin_test |
deba@203 | 30 |
heap_test |
ladanyi@141 | 31 |
kruskal_test |
ladanyi@141 | 32 |
maps_test |
kpeter@641 | 33 |
matching_test |
deba@522 | 34 |
min_cost_arborescence_test |
kpeter@648 | 35 |
min_cost_flow_test |
kpeter@810 | 36 |
min_mean_cycle_test |
alpar@443 | 37 |
path_test |
deba@861 | 38 |
planarity_test |
alpar@443 | 39 |
preflow_test |
ladanyi@496 | 40 |
radix_sort_test |
alpar@225 | 41 |
random_test |
alpar@443 | 42 |
suurballe_test |
ladanyi@141 | 43 |
time_measure_test |
ladanyi@726 | 44 |
unionfind_test |
ladanyi@726 | 45 |
) |
ladanyi@141 | 46 |
|
ladanyi@674 | 47 |
IF(LEMON_HAVE_LP) |
ladanyi@496 | 48 |
ADD_EXECUTABLE(lp_test lp_test.cc) |
ladanyi@667 | 49 |
SET(LP_TEST_LIBS lemon) |
ladanyi@726 | 50 |
|
ladanyi@674 | 51 |
IF(LEMON_HAVE_GLPK) |
ladanyi@667 | 52 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) |
ladanyi@726 | 53 |
ENDIF() |
ladanyi@674 | 54 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@667 | 55 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
ladanyi@726 | 56 |
ENDIF() |
ladanyi@674 | 57 |
IF(LEMON_HAVE_CLP) |
ladanyi@668 | 58 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) |
ladanyi@726 | 59 |
ENDIF() |
ladanyi@726 | 60 |
|
ladanyi@667 | 61 |
TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) |
ladanyi@496 | 62 |
ADD_TEST(lp_test lp_test) |
ladanyi@496 | 63 |
|
ladanyi@674 | 64 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@496 | 65 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
ladanyi@496 | 66 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@496 | 67 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
ladanyi@726 | 68 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@726 | 69 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@726 | 70 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@496 | 71 |
) |
ladanyi@726 | 72 |
ENDIF() |
ladanyi@726 | 73 |
|
ladanyi@674 | 74 |
IF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@667 | 75 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
ladanyi@667 | 76 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@667 | 77 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
ladanyi@726 | 78 |
COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} |
ladanyi@667 | 79 |
) |
ladanyi@726 | 80 |
ENDIF() |
ladanyi@726 | 81 |
ENDIF() |
ladanyi@496 | 82 |
|
ladanyi@674 | 83 |
IF(LEMON_HAVE_MIP) |
ladanyi@496 | 84 |
ADD_EXECUTABLE(mip_test mip_test.cc) |
ladanyi@667 | 85 |
SET(MIP_TEST_LIBS lemon) |
ladanyi@726 | 86 |
|
ladanyi@674 | 87 |
IF(LEMON_HAVE_GLPK) |
ladanyi@667 | 88 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) |
ladanyi@726 | 89 |
ENDIF() |
ladanyi@674 | 90 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@667 | 91 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
ladanyi@726 | 92 |
ENDIF() |
ladanyi@674 | 93 |
IF(LEMON_HAVE_CBC) |
ladanyi@668 | 94 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) |
ladanyi@726 | 95 |
ENDIF() |
ladanyi@726 | 96 |
|
ladanyi@667 | 97 |
TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) |
ladanyi@496 | 98 |
ADD_TEST(mip_test mip_test) |
ladanyi@496 | 99 |
|
ladanyi@674 | 100 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
ladanyi@496 | 101 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
ladanyi@496 | 102 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@496 | 103 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
ladanyi@726 | 104 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@726 | 105 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@726 | 106 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@496 | 107 |
) |
ladanyi@726 | 108 |
ENDIF() |
ladanyi@726 | 109 |
|
ladanyi@674 | 110 |
IF(WIN32 AND LEMON_HAVE_CPLEX) |
ladanyi@667 | 111 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
ladanyi@667 | 112 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@667 | 113 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
ladanyi@726 | 114 |
COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} |
ladanyi@667 | 115 |
) |
ladanyi@726 | 116 |
ENDIF() |
ladanyi@726 | 117 |
ENDIF() |
ladanyi@496 | 118 |
|
alpar@225 | 119 |
FOREACH(TEST_NAME ${TESTS}) |
alpar@225 | 120 |
ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) |
alpar@225 | 121 |
TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) |
alpar@225 | 122 |
ADD_TEST(${TEST_NAME} ${TEST_NAME}) |
ladanyi@726 | 123 |
ENDFOREACH() |