COIN-OR::LEMON - Graph Library

source: lemon/lemon/CMakeLists.txt @ 667:c3ce597c11ae

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

FindCPLEX for CMake (#256)

File size: 980 bytes
RevLine 
[496]1INCLUDE_DIRECTORIES(
[596]2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_BINARY_DIR}
[496]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
[511]17  random.cc
18  bits/windows.cc
19)
[225]20
[496]21IF(HAVE_GLPK)
22  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
[666]23  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
[498]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)
[496]29ENDIF(HAVE_GLPK)
30
[667]31IF(HAVE_CPLEX)
32  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
33  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
34ENDIF(HAVE_CPLEX)
35
[496]36ADD_LIBRARY(lemon ${LEMON_SOURCES})
37
[225]38INSTALL(
39  TARGETS lemon
40  ARCHIVE DESTINATION lib
41  COMPONENT library)
42
43INSTALL(
44  DIRECTORY . bits concepts
45  DESTINATION include/lemon
46  COMPONENT headers
47  FILES_MATCHING PATTERN "*.h")
Note: See TracBrowser for help on using the repository browser.