Changes in test/CMakeLists.txt [477:e6ae4999cf22:225:c5a40fc54f1a] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r477 r225 1 INCLUDE_DIRECTORIES( 2 ${CMAKE_SOURCE_DIR} 3 ${CMAKE_BINARY_DIR} 4 ) 5 6 IF(HAVE_GLPK) 7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 8 ENDIF(HAVE_GLPK) 1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) 9 2 10 3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) 11 4 12 5 SET(TESTS 13 # adaptors_test14 6 bfs_test 15 circulation_test16 7 counter_test 17 8 dfs_test … … 19 10 dijkstra_test 20 11 dim_test 21 # edge_set_test22 12 error_test 23 13 graph_copy_test 24 14 graph_test 25 15 graph_utils_test 26 hao_orlin_test27 16 heap_test 28 17 kruskal_test 29 18 maps_test 30 max_matching_test19 random_test 31 20 path_test 32 preflow_test33 radix_sort_test34 random_test35 suurballe_test36 21 time_measure_test 37 22 unionfind_test) 38 39 IF(HAVE_LP)40 ADD_EXECUTABLE(lp_test lp_test.cc)41 IF(HAVE_GLPK)42 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})43 ENDIF(HAVE_GLPK)44 ADD_TEST(lp_test lp_test)45 46 IF(WIN32 AND HAVE_GLPK)47 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)48 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)49 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD50 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}51 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}52 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}53 )54 ENDIF(WIN32 AND HAVE_GLPK)55 ENDIF(HAVE_LP)56 57 IF(HAVE_MIP)58 ADD_EXECUTABLE(mip_test mip_test.cc)59 IF(HAVE_GLPK)60 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})61 ENDIF(HAVE_GLPK)62 ADD_TEST(mip_test mip_test)63 64 IF(WIN32 AND HAVE_GLPK)65 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)66 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)67 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD68 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}69 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}70 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}71 )72 ENDIF(WIN32 AND HAVE_GLPK)73 ENDIF(HAVE_MIP)74 23 75 24 FOREACH(TEST_NAME ${TESTS})
Note: See TracChangeset
for help on using the changeset viewer.