Changeset 474:f59df77f5c8d in lemon-main
- Timestamp:
- 01/21/09 19:08:31 (16 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/CMakeLists.txt
r473 r474 2 2 ${CMAKE_SOURCE_DIR} 3 3 ${CMAKE_BINARY_DIR} 4 ${GLPK_INCLUDE_DIR}5 4 ) 6 5 -
lemon/CMakeLists.txt
r473 r474 2 2 ${CMAKE_SOURCE_DIR} 3 3 ${CMAKE_BINARY_DIR} 4 ${GLPK_INCLUDE_DIR}5 4 ) 6 5 … … 20 19 IF(HAVE_GLPK) 21 20 SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) 21 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 22 IF(WIN32) 23 INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) 24 INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) 25 INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) 26 ENDIF(WIN32) 22 27 ENDIF(HAVE_GLPK) 23 28 … … 34 39 COMPONENT headers 35 40 FILES_MATCHING PATTERN "*.h") 36 37 IF(WIN32)38 INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)39 INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)40 INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)41 ENDIF(WIN32) -
test/CMakeLists.txt
r473 r474 2 2 ${CMAKE_SOURCE_DIR} 3 3 ${CMAKE_BINARY_DIR} 4 ${GLPK_INCLUDE_DIR}5 4 ) 5 6 IF(HAVE_GLPK) 7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) 8 ENDIF(HAVE_GLPK) 6 9 7 10 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) … … 36 39 IF(HAVE_LP) 37 40 ADD_EXECUTABLE(lp_test lp_test.cc) 38 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) 41 IF(HAVE_GLPK) 42 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) 43 ENDIF(HAVE_GLPK) 39 44 ADD_TEST(lp_test lp_test) 40 45 41 IF(WIN32 )46 IF(WIN32 AND HAVE_GLPK) 42 47 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) 43 48 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 47 52 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 48 53 ) 49 ENDIF(WIN32 )54 ENDIF(WIN32 AND HAVE_GLPK) 50 55 ENDIF(HAVE_LP) 51 56 52 57 IF(HAVE_MIP) 53 58 ADD_EXECUTABLE(mip_test mip_test.cc) 54 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) 59 IF(HAVE_GLPK) 60 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) 61 ENDIF(HAVE_GLPK) 55 62 ADD_TEST(mip_test mip_test) 56 63 57 IF(WIN32 )64 IF(WIN32 AND HAVE_GLPK) 58 65 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) 59 66 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) … … 63 70 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} 64 71 ) 65 ENDIF(WIN32 )72 ENDIF(WIN32 AND HAVE_GLPK) 66 73 ENDIF(HAVE_MIP) 67 74
Note: See TracChangeset
for help on using the changeset viewer.