COIN-OR::LEMON - Graph Library

source: lemon-1.2/lemon/CMakeLists.txt @ 619:ec817dfc2cb7

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

FindGLPK improvements (#256)

File size: 854 bytes
RevLine 
[473]1INCLUDE_DIRECTORIES(
[549]2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_BINARY_DIR}
[473]4)
[225]5
[473]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
[473]15  lp_base.cc
16  lp_skeleton.cc
[482]17  random.cc
18  bits/windows.cc
19)
[225]20
[473]21IF(HAVE_GLPK)
22  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
[619]23  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
[475]24  IF(WIN32)
25    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
26    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
27    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
28  ENDIF(WIN32)
[473]29ENDIF(HAVE_GLPK)
30
31ADD_LIBRARY(lemon ${LEMON_SOURCES})
32
[225]33INSTALL(
34  TARGETS lemon
35  ARCHIVE DESTINATION lib
36  COMPONENT library)
37
38INSTALL(
39  DIRECTORY . bits concepts
40  DESTINATION include/lemon
41  COMPONENT headers
42  FILES_MATCHING PATTERN "*.h")
Note: See TracBrowser for help on using the repository browser.