Changes in test/CMakeLists.txt [681:9c7639f3a741:647:76cbcb3e9bbb] in lemon-1.1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r681 r647 4 4 ) 5 5 6 LINK_DIRECTORIES( 7 ${PROJECT_BINARY_DIR}/lemon 8 ) 6 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) 9 7 10 8 SET(TESTS … … 38 36 suurballe_test 39 37 time_measure_test 40 unionfind_test 41 ) 38 unionfind_test) 42 39 43 40 IF(LEMON_HAVE_LP) 44 41 ADD_EXECUTABLE(lp_test lp_test.cc) 45 42 SET(LP_TEST_LIBS lemon) 46 47 43 IF(LEMON_HAVE_GLPK) 48 44 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) 49 ENDIF( )45 ENDIF(LEMON_HAVE_GLPK) 50 46 IF(LEMON_HAVE_CPLEX) 51 47 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) 52 ENDIF( )48 ENDIF(LEMON_HAVE_CPLEX) 53 49 IF(LEMON_HAVE_CLP) 54 50 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) 55 ENDIF() 56 51 ENDIF(LEMON_HAVE_CLP) 57 52 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 58 53 ADD_TEST(lp_test lp_test) … … 62 57 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 63 58 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 64 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}65 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}66 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}59 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 60 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 61 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 67 62 ) 68 ENDIF() 69 63 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 70 64 IF(WIN32 AND LEMON_HAVE_CPLEX) 71 65 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 72 66 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 73 67 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 74 COMMAND ${CMAKE_COMMAND}-E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}68 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 75 69 ) 76 ENDIF( )77 ENDIF( )70 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 71 ENDIF(LEMON_HAVE_LP) 78 72 79 73 IF(LEMON_HAVE_MIP) 80 74 ADD_EXECUTABLE(mip_test mip_test.cc) 81 75 SET(MIP_TEST_LIBS lemon) 82 83 76 IF(LEMON_HAVE_GLPK) 84 77 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) 85 ENDIF( )78 ENDIF(LEMON_HAVE_GLPK) 86 79 IF(LEMON_HAVE_CPLEX) 87 80 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) 88 ENDIF( )81 ENDIF(LEMON_HAVE_CPLEX) 89 82 IF(LEMON_HAVE_CBC) 90 83 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) 91 ENDIF() 92 84 ENDIF(LEMON_HAVE_CBC) 93 85 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 94 86 ADD_TEST(mip_test mip_test) … … 98 90 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 99 91 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 100 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}101 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}102 COMMAND ${CMAKE_COMMAND}-E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}92 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} 93 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} 94 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 103 95 ) 104 ENDIF() 105 96 ENDIF(WIN32 AND LEMON_HAVE_GLPK) 106 97 IF(WIN32 AND LEMON_HAVE_CPLEX) 107 98 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 108 99 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 109 100 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 110 COMMAND ${CMAKE_COMMAND}-E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}101 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 111 102 ) 112 ENDIF( )113 ENDIF( )103 ENDIF(WIN32 AND LEMON_HAVE_CPLEX) 104 ENDIF(LEMON_HAVE_MIP) 114 105 115 106 FOREACH(TEST_NAME ${TESTS}) … … 117 108 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) 118 109 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 119 ENDFOREACH( )110 ENDFOREACH(TEST_NAME)
Note: See TracChangeset
for help on using the changeset viewer.