author | Alpar Juttner <alpar@cs.elte.hu> |
Tue, 24 Feb 2009 06:52:17 +0000 | |
changeset 536 | 97674155c135 |
parent 522 | 22f932bbb305 |
parent 490 | 7f8560cb9d65 |
child 543 | 924887566bf2 |
child 601 | e8349c6f12ca |
permissions | -rw-r--r-- |
ladanyi@473 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@473 | 2 |
${CMAKE_SOURCE_DIR} |
ladanyi@473 | 3 |
${CMAKE_BINARY_DIR} |
ladanyi@473 | 4 |
) |
deba@410 | 5 |
|
ladanyi@475 | 6 |
IF(HAVE_GLPK) |
ladanyi@475 | 7 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) |
ladanyi@475 | 8 |
ENDIF(HAVE_GLPK) |
ladanyi@141 | 9 |
|
alpar@225 | 10 |
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) |
ladanyi@141 | 11 |
|
alpar@225 | 12 |
SET(TESTS |
deba@512 | 13 |
adaptors_test |
ladanyi@141 | 14 |
bfs_test |
alpar@424 | 15 |
circulation_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@512 | 21 |
edge_set_test |
ladanyi@141 | 22 |
error_test |
ladanyi@522 | 23 |
euler_test |
deba@200 | 24 |
graph_copy_test |
ladanyi@141 | 25 |
graph_test |
kpeter@171 | 26 |
graph_utils_test |
deba@410 | 27 |
hao_orlin_test |
deba@203 | 28 |
heap_test |
ladanyi@141 | 29 |
kruskal_test |
ladanyi@141 | 30 |
maps_test |
deba@326 | 31 |
max_matching_test |
deba@490 | 32 |
min_cost_arborescence_test |
alpar@424 | 33 |
path_test |
alpar@424 | 34 |
preflow_test |
ladanyi@473 | 35 |
radix_sort_test |
alpar@225 | 36 |
random_test |
alpar@424 | 37 |
suurballe_test |
ladanyi@141 | 38 |
time_measure_test |
ladanyi@141 | 39 |
unionfind_test) |
ladanyi@141 | 40 |
|
ladanyi@473 | 41 |
IF(HAVE_LP) |
ladanyi@473 | 42 |
ADD_EXECUTABLE(lp_test lp_test.cc) |
ladanyi@475 | 43 |
IF(HAVE_GLPK) |
ladanyi@475 | 44 |
TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) |
ladanyi@475 | 45 |
ENDIF(HAVE_GLPK) |
ladanyi@473 | 46 |
ADD_TEST(lp_test lp_test) |
ladanyi@473 | 47 |
|
ladanyi@475 | 48 |
IF(WIN32 AND HAVE_GLPK) |
ladanyi@473 | 49 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
ladanyi@473 | 50 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@473 | 51 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
ladanyi@473 | 52 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@473 | 53 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@473 | 54 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@473 | 55 |
) |
ladanyi@475 | 56 |
ENDIF(WIN32 AND HAVE_GLPK) |
ladanyi@473 | 57 |
ENDIF(HAVE_LP) |
ladanyi@473 | 58 |
|
ladanyi@473 | 59 |
IF(HAVE_MIP) |
ladanyi@473 | 60 |
ADD_EXECUTABLE(mip_test mip_test.cc) |
ladanyi@475 | 61 |
IF(HAVE_GLPK) |
ladanyi@475 | 62 |
TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) |
ladanyi@475 | 63 |
ENDIF(HAVE_GLPK) |
ladanyi@473 | 64 |
ADD_TEST(mip_test mip_test) |
ladanyi@473 | 65 |
|
ladanyi@475 | 66 |
IF(WIN32 AND HAVE_GLPK) |
ladanyi@473 | 67 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
ladanyi@473 | 68 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
ladanyi@473 | 69 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
ladanyi@473 | 70 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
ladanyi@473 | 71 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
ladanyi@473 | 72 |
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
ladanyi@473 | 73 |
) |
ladanyi@475 | 74 |
ENDIF(WIN32 AND HAVE_GLPK) |
ladanyi@473 | 75 |
ENDIF(HAVE_MIP) |
ladanyi@473 | 76 |
|
alpar@225 | 77 |
FOREACH(TEST_NAME ${TESTS}) |
alpar@225 | 78 |
ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) |
alpar@225 | 79 |
TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) |
alpar@225 | 80 |
ADD_TEST(${TEST_NAME} ${TEST_NAME}) |
alpar@225 | 81 |
ENDFOREACH(TEST_NAME) |