Changes in test/CMakeLists.txt [225:c5a40fc54f1a:549:ba659d676331] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r225 r549 1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) 1 INCLUDE_DIRECTORIES( 2 ${PROJECT_SOURCE_DIR} 3 ${PROJECT_BINARY_DIR} 4 ) 2 5 3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) 6 IF(HAVE_GLPK) 7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 8 ENDIF(HAVE_GLPK) 9 10 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) 4 11 5 12 SET(TESTS 13 adaptors_test 6 14 bfs_test 15 circulation_test 7 16 counter_test 8 17 dfs_test … … 10 19 dijkstra_test 11 20 dim_test 21 edge_set_test 12 22 error_test 23 euler_test 24 gomory_hu_test 13 25 graph_copy_test 14 26 graph_test 15 27 graph_utils_test 28 hao_orlin_test 16 29 heap_test 17 30 kruskal_test 18 31 maps_test 32 max_matching_test 33 min_cost_arborescence_test 34 path_test 35 preflow_test 36 radix_sort_test 19 37 random_test 20 path_test38 suurballe_test 21 39 time_measure_test 22 40 unionfind_test) 41 42 IF(HAVE_LP) 43 ADD_EXECUTABLE(lp_test lp_test.cc) 44 IF(HAVE_GLPK) 45 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) 46 ENDIF(HAVE_GLPK) 47 ADD_TEST(lp_test lp_test) 48 49 IF(WIN32 AND HAVE_GLPK) 50 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 51 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 52 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 53 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 54 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 55 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 56 ) 57 ENDIF(WIN32 AND HAVE_GLPK) 58 ENDIF(HAVE_LP) 59 60 IF(HAVE_MIP) 61 ADD_EXECUTABLE(mip_test mip_test.cc) 62 IF(HAVE_GLPK) 63 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) 64 ENDIF(HAVE_GLPK) 65 ADD_TEST(mip_test mip_test) 66 67 IF(WIN32 AND HAVE_GLPK) 68 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 69 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 70 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 71 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 72 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 73 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 74 ) 75 ENDIF(WIN32 AND HAVE_GLPK) 76 ENDIF(HAVE_MIP) 23 77 24 78 FOREACH(TEST_NAME ${TESTS})
Note: See TracChangeset
for help on using the changeset viewer.