COIN-OR::LEMON - Graph Library

source: lemon-1.2/lemon/CMakeLists.txt @ 512:9b9ffe7d9b75

Last change on this file since 512:9b9ffe7d9b75 was 475:f59df77f5c8d, checked in by Akos Ladanyi <ladanyi@…>, 11 years ago

Fix CMAKE build without GLPK

File size: 830 bytes
Line 
1INCLUDE_DIRECTORIES(
2  ${CMAKE_SOURCE_DIR}
3  ${CMAKE_BINARY_DIR}
4)
5
6CONFIGURE_FILE(
7  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
8  ${CMAKE_CURRENT_BINARY_DIR}/config.h
9)
10
11SET(LEMON_SOURCES
12  arg_parser.cc
13  base.cc
14  color.cc
15  lp_base.cc
16  lp_skeleton.cc
17  random.cc)
18
19IF(HAVE_GLPK)
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)
27ENDIF(HAVE_GLPK)
28
29ADD_LIBRARY(lemon ${LEMON_SOURCES})
30
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.