COIN-OR::LEMON - Graph Library

Changeset 496:17d918051964 in lemon for lemon/CMakeLists.txt


Ignore:
Timestamp:
01/20/09 13:23:14 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Build GLPK dependent parts with CMake too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/CMakeLists.txt

    r482 r496  
    1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     1INCLUDE_DIRECTORIES(
     2  ${CMAKE_SOURCE_DIR}
     3  ${CMAKE_BINARY_DIR}
     4  ${GLPK_INCLUDE_DIR}
     5)
    26
    3 ADD_LIBRARY(lemon
     7CONFIGURE_FILE(
     8  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
     9  ${CMAKE_CURRENT_BINARY_DIR}/config.h
     10)
     11
     12SET(LEMON_SOURCES
    413  arg_parser.cc
    514  base.cc
    615  color.cc
     16  lp_base.cc
     17  lp_skeleton.cc
    718  random.cc)
     19
     20IF(HAVE_GLPK)
     21  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
     22ENDIF(HAVE_GLPK)
     23
     24ADD_LIBRARY(lemon ${LEMON_SOURCES})
    825
    926INSTALL(
     
    1734  COMPONENT headers
    1835  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 TracChangeset for help on using the changeset viewer.