Changes in / [624:1f631044c290:623:7c1324b35d89] in lemon-main
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r621 r552 15 15 INCLUDE(FindGhostscript) 16 16 FIND_PACKAGE(GLPK 4.33) 17 FIND_PACKAGE(CPLEX)18 FIND_PACKAGE(COIN)19 17 20 18 ADD_DEFINITIONS(-DHAVE_CONFIG_H) … … 28 26 # C4996: 'function': was declared deprecated 29 27 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) 30 34 31 35 INCLUDE(CheckTypeSize) -
cmake/FindGLPK.cmake
r619 r473 14 14 15 15 IF(GLPK_FOUND) 16 SET(GLPK_INCLUDE_DIRS ${GLPK_INCLUDE_DIR})17 16 SET(GLPK_LIBRARIES ${GLPK_LIBRARY}) 18 17 SET(GLPK_BIN_DIR ${GLPK_ROOT_PATH}/bin) … … 20 19 21 20 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
r621 r549 21 21 IF(HAVE_GLPK) 22 22 SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) 23 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR S})23 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 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)45 30 46 31 ADD_LIBRARY(lemon ${LEMON_SOURCES}) -
lemon/config.h.cmake
r621 r517 3 3 #cmakedefine HAVE_MIP 1 4 4 #cmakedefine HAVE_GLPK 1 5 #cmakedefine HAVE_CPLEX 16 #cmakedefine HAVE_CLP 17 #cmakedefine HAVE_CBC 1 -
test/CMakeLists.txt
r621 r611 3 3 ${PROJECT_BINARY_DIR} 4 4 ) 5 6 IF(HAVE_GLPK) 7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 8 ENDIF(HAVE_GLPK) 5 9 6 10 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) … … 39 43 IF(HAVE_LP) 40 44 ADD_EXECUTABLE(lp_test lp_test.cc) 41 SET(LP_TEST_LIBS lemon)42 45 IF(HAVE_GLPK) 43 SET(LP_TEST_LIBS ${LP_TEST_LIBS}${GLPK_LIBRARIES})46 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) 44 47 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})52 48 ADD_TEST(lp_test lp_test) 53 49 … … 61 57 ) 62 58 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_BUILD67 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}68 )69 ENDIF(WIN32 AND HAVE_CPLEX)70 59 ENDIF(HAVE_LP) 71 60 72 61 IF(HAVE_MIP) 73 62 ADD_EXECUTABLE(mip_test mip_test.cc) 74 SET(MIP_TEST_LIBS lemon)75 63 IF(HAVE_GLPK) 76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS}${GLPK_LIBRARIES})64 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) 77 65 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})85 66 ADD_TEST(mip_test mip_test) 86 67 … … 94 75 ) 95 76 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_BUILD100 COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}101 )102 ENDIF(WIN32 AND HAVE_CPLEX)103 77 ENDIF(HAVE_MIP) 104 78
Note: See TracChangeset
for help on using the changeset viewer.