Changes in test/CMakeLists.txt [627:20dac2104519:621:b536eaacb39b] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r627 r621 37 37 unionfind_test) 38 38 39 IF( LEMON_HAVE_LP)39 IF(HAVE_LP) 40 40 ADD_EXECUTABLE(lp_test lp_test.cc) 41 41 SET(LP_TEST_LIBS lemon) 42 IF( LEMON_HAVE_GLPK)42 IF(HAVE_GLPK) 43 43 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) 44 ENDIF( LEMON_HAVE_GLPK)45 IF( LEMON_HAVE_CPLEX)44 ENDIF(HAVE_GLPK) 45 IF(HAVE_CPLEX) 46 46 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) 47 ENDIF( LEMON_HAVE_CPLEX)48 IF( LEMON_HAVE_CLP)47 ENDIF(HAVE_CPLEX) 48 IF(HAVE_CLP) 49 49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) 50 ENDIF( LEMON_HAVE_CLP)50 ENDIF(HAVE_CLP) 51 51 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 52 52 ADD_TEST(lp_test lp_test) 53 53 54 IF(WIN32 AND LEMON_HAVE_GLPK)54 IF(WIN32 AND HAVE_GLPK) 55 55 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 56 56 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 60 60 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 61 61 ) 62 ENDIF(WIN32 AND LEMON_HAVE_GLPK)63 IF(WIN32 AND LEMON_HAVE_CPLEX)62 ENDIF(WIN32 AND HAVE_GLPK) 63 IF(WIN32 AND HAVE_CPLEX) 64 64 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 65 65 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 67 67 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 68 68 ) 69 ENDIF(WIN32 AND LEMON_HAVE_CPLEX)70 ENDIF( LEMON_HAVE_LP)69 ENDIF(WIN32 AND HAVE_CPLEX) 70 ENDIF(HAVE_LP) 71 71 72 IF( LEMON_HAVE_MIP)72 IF(HAVE_MIP) 73 73 ADD_EXECUTABLE(mip_test mip_test.cc) 74 74 SET(MIP_TEST_LIBS lemon) 75 IF( LEMON_HAVE_GLPK)75 IF(HAVE_GLPK) 76 76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) 77 ENDIF( LEMON_HAVE_GLPK)78 IF( LEMON_HAVE_CPLEX)77 ENDIF(HAVE_GLPK) 78 IF(HAVE_CPLEX) 79 79 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) 80 ENDIF( LEMON_HAVE_CPLEX)81 IF( LEMON_HAVE_CBC)80 ENDIF(HAVE_CPLEX) 81 IF(HAVE_CBC) 82 82 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) 83 ENDIF( LEMON_HAVE_CBC)83 ENDIF(HAVE_CBC) 84 84 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 85 85 ADD_TEST(mip_test mip_test) 86 86 87 IF(WIN32 AND LEMON_HAVE_GLPK)87 IF(WIN32 AND HAVE_GLPK) 88 88 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 89 89 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 93 93 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 94 94 ) 95 ENDIF(WIN32 AND LEMON_HAVE_GLPK)96 IF(WIN32 AND LEMON_HAVE_CPLEX)95 ENDIF(WIN32 AND HAVE_GLPK) 96 IF(WIN32 AND HAVE_CPLEX) 97 97 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 98 98 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 100 100 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 101 101 ) 102 ENDIF(WIN32 AND LEMON_HAVE_CPLEX)103 ENDIF( LEMON_HAVE_MIP)102 ENDIF(WIN32 AND HAVE_CPLEX) 103 ENDIF(HAVE_MIP) 104 104 105 105 FOREACH(TEST_NAME ${TESTS})
Note: See TracChangeset
for help on using the changeset viewer.