COIN-OR::LEMON - Graph Library

source: lemon/lemon/CMakeLists.txt @ 498:f59df77f5c8d

Last change on this file since 498:f59df77f5c8d was 498:f59df77f5c8d, checked in by Akos Ladanyi <ladanyi@…>, 12 years ago

Fix CMAKE build without GLPK

File size: 830 bytes
RevLine 
[496]1INCLUDE_DIRECTORIES(
2  ${CMAKE_SOURCE_DIR}
3  ${CMAKE_BINARY_DIR}
4)
[225]5
[496]6CONFIGURE_FILE(
7  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
8  ${CMAKE_CURRENT_BINARY_DIR}/config.h
9)
10
11SET(LEMON_SOURCES
[225]12  arg_parser.cc
13  base.cc
14  color.cc
[496]15  lp_base.cc
16  lp_skeleton.cc
[225]17  random.cc)
18
[496]19IF(HAVE_GLPK)
20  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
[498]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)
[496]27ENDIF(HAVE_GLPK)
28
29ADD_LIBRARY(lemon ${LEMON_SOURCES})
30
[225]31INSTALL(
32  TARGETS lemon
33  ARCHIVE DESTINATION lib
34  COMPONENT library)
35
36INSTALL(
37  DIRECTORY . bits concepts
38  DESTINATION include/lemon
39  COMPONENT headers
40  FILES_MATCHING PATTERN "*.h")
Note: See TracBrowser for help on using the repository browser.