COIN-OR::LEMON - Graph Library

source: lemon/lemon/CMakeLists.txt @ 496:17d918051964

Last change on this file since 496:17d918051964 was 496:17d918051964, checked in by Akos Ladanyi <ladanyi@…>, 11 years ago

Build GLPK dependent parts with CMake too

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