COIN-OR::LEMON - Graph Library

source: lemon-main/lemon/CMakeLists.txt @ 674:0cd6d84103a4

Last change on this file since 674:0cd6d84103a4 was 627:20dac2104519, checked in by Akos Ladanyi <ladanyi@…>, 16 years ago

Merge and extend the fix of #275

File size: 1.3 KB
Line 
1INCLUDE_DIRECTORIES(
2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_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  bits/windows.cc
19)
20
21IF(LEMON_HAVE_GLPK)
22  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
23  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
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)
29ENDIF(LEMON_HAVE_GLPK)
30
31IF(LEMON_HAVE_CPLEX)
32  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
33  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
34ENDIF(LEMON_HAVE_CPLEX)
35
36IF(LEMON_HAVE_CLP)
37  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
38  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
39ENDIF(LEMON_HAVE_CLP)
40
41IF(LEMON_HAVE_CBC)
42  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
43  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
44ENDIF(LEMON_HAVE_CBC)
45
46ADD_LIBRARY(lemon ${LEMON_SOURCES})
47
48INSTALL(
49  TARGETS lemon
50  ARCHIVE DESTINATION lib
51  COMPONENT library)
52
53INSTALL(
54  DIRECTORY . bits concepts
55  DESTINATION include/lemon
56  COMPONENT headers
57  FILES_MATCHING PATTERN "*.h")
58
59INSTALL(
60  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
61  DESTINATION include/lemon
62  COMPONENT headers)
Note: See TracBrowser for help on using the repository browser.