Changes in / [623:7c1324b35d89:624:1f631044c290] in lemon-main
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r552 r621 15 15 INCLUDE(FindGhostscript) 16 16 FIND_PACKAGE(GLPK 4.33) 17 FIND_PACKAGE(CPLEX) 18 FIND_PACKAGE(COIN) 17 19 18 20 ADD_DEFINITIONS(-DHAVE_CONFIG_H) … … 26 28 # C4996: 'function': was declared deprecated 27 29 ENDIF(MSVC) 28 29 IF(GLPK_FOUND)30 SET(HAVE_LP TRUE)31 SET(HAVE_MIP TRUE)32 SET(HAVE_GLPK TRUE)33 ENDIF(GLPK_FOUND)34 30 35 31 INCLUDE(CheckTypeSize) -
cmake/FindGLPK.cmake
r473 r619 14 14 15 15 IF(GLPK_FOUND) 16 SET(GLPK_INCLUDE_DIRS ${GLPK_INCLUDE_DIR}) 16 17 SET(GLPK_LIBRARIES ${GLPK_LIBRARY}) 17 18 SET(GLPK_BIN_DIR ${GLPK_ROOT_PATH}/bin) … … 19 20 20 21 MARK_AS_ADVANCED(GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_BIN_DIR) 22 23 IF(GLPK_FOUND) 24 SET(HAVE_LP TRUE) 25 SET(HAVE_MIP TRUE) 26 SET(HAVE_GLPK TRUE) 27 ENDIF(GLPK_FOUND) -
lemon/CMakeLists.txt
r549 r621 21 21 IF(HAVE_GLPK) 22 22 SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) 23 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR })23 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) 24 24 IF(WIN32) 25 25 INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) … … 28 28 ENDIF(WIN32) 29 29 ENDIF(HAVE_GLPK) 30 31 IF(HAVE_CPLEX) 32 SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) 33 INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) 34 ENDIF(HAVE_CPLEX) 35 36 IF(HAVE_CLP) 37 SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) 38 INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) 39 ENDIF(HAVE_CLP) 40 41 IF(HAVE_CBC) 42 SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) 43 INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) 44 ENDIF(HAVE_CBC) 30 45 31 46 ADD_LIBRARY(lemon ${LEMON_SOURCES}) -
lemon/config.h.cmake
r517 r621 3 3 #cmakedefine HAVE_MIP 1 4 4 #cmakedefine HAVE_GLPK 1 5 #cmakedefine HAVE_CPLEX 1 6 #cmakedefine HAVE_CLP 1 7 #cmakedefine HAVE_CBC 1 -
test/CMakeLists.txt
r611 r621 3 3 ${PROJECT_BINARY_DIR} 4 4 ) 5 6 IF(HAVE_GLPK)7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})8 ENDIF(HAVE_GLPK)9 5 10 6 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) … … 43 39 IF(HAVE_LP) 44 40 ADD_EXECUTABLE(lp_test lp_test.cc) 41 SET(LP_TEST_LIBS lemon) 45 42 IF(HAVE_GLPK) 46 TARGET_LINK_LIBRARIES(lp_test lemon${GLPK_LIBRARIES})43 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) 47 44 ENDIF(HAVE_GLPK) 45 IF(HAVE_CPLEX) 46 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) 47 ENDIF(HAVE_CPLEX) 48 IF(HAVE_CLP) 49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) 50 ENDIF(HAVE_CLP) 51 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 48 52 ADD_TEST(lp_test lp_test) 49 53 … … 57 61 ) 58 62 ENDIF(WIN32 AND HAVE_GLPK) 63 IF(WIN32 AND HAVE_CPLEX) 64 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 65 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 66 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD 67 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 68 ) 69 ENDIF(WIN32 AND HAVE_CPLEX) 59 70 ENDIF(HAVE_LP) 60 71 61 72 IF(HAVE_MIP) 62 73 ADD_EXECUTABLE(mip_test mip_test.cc) 74 SET(MIP_TEST_LIBS lemon) 63 75 IF(HAVE_GLPK) 64 TARGET_LINK_LIBRARIES(mip_test lemon${GLPK_LIBRARIES})76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) 65 77 ENDIF(HAVE_GLPK) 78 IF(HAVE_CPLEX) 79 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) 80 ENDIF(HAVE_CPLEX) 81 IF(HAVE_CBC) 82 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) 83 ENDIF(HAVE_CBC) 84 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 66 85 ADD_TEST(mip_test mip_test) 67 86 … … 75 94 ) 76 95 ENDIF(WIN32 AND HAVE_GLPK) 96 IF(WIN32 AND HAVE_CPLEX) 97 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 98 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) 99 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD 100 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} 101 ) 102 ENDIF(WIN32 AND HAVE_CPLEX) 77 103 ENDIF(HAVE_MIP) 78 104
Note: See TracChangeset
for help on using the changeset viewer.