COIN-OR::LEMON - Graph Library

source: lemon/lemon/CMakeLists.txt @ 1133:cdd2c7dad989

Last change on this file since 1133:cdd2c7dad989 was 1133:cdd2c7dad989, checked in by Alpar Juttner <alpar@…>, 8 years ago

Remove autotool related files (#434)

File size: 1.6 KB
RevLine 
[539]1INCLUDE_DIRECTORIES(
[596]2  ${PROJECT_SOURCE_DIR}
[539]3  ${PROJECT_BINARY_DIR}
4)
5
6CONFIGURE_FILE(
[1133]7  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
[539]8  ${CMAKE_CURRENT_BINARY_DIR}/config.h
9)
[225]10
[1012]11CONFIGURE_FILE(
[1133]12  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.in
[1012]13  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
14  @ONLY
15)
16
[496]17SET(LEMON_SOURCES
[225]18  arg_parser.cc
19  base.cc
20  color.cc
[496]21  lp_base.cc
22  lp_skeleton.cc
[511]23  random.cc
24  bits/windows.cc
25)
[225]26
[674]27IF(LEMON_HAVE_GLPK)
[496]28  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
[666]29  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
[498]30  IF(WIN32)
31    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
32    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
33    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
[726]34  ENDIF()
35ENDIF()
[496]36
[674]37IF(LEMON_HAVE_CPLEX)
[667]38  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
39  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
[726]40ENDIF()
[667]41
[674]42IF(LEMON_HAVE_CLP)
[668]43  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
44  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
[726]45ENDIF()
[668]46
[674]47IF(LEMON_HAVE_CBC)
[668]48  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
49  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
[726]50ENDIF()
[668]51
[496]52ADD_LIBRARY(lemon ${LEMON_SOURCES})
[722]53IF(UNIX)
54  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
[726]55ENDIF()
[496]56
[225]57INSTALL(
58  TARGETS lemon
59  ARCHIVE DESTINATION lib
[1113]60  LIBRARY DESTINATION lib
[722]61  COMPONENT library
62)
[225]63
64INSTALL(
65  DIRECTORY . bits concepts
66  DESTINATION include/lemon
67  COMPONENT headers
[722]68  FILES_MATCHING PATTERN "*.h"
69)
[539]70
71INSTALL(
72  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
73  DESTINATION include/lemon
[722]74  COMPONENT headers
75)
[1012]76
77INSTALL(
78  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
79  DESTINATION lib/pkgconfig
80)
81
Note: See TracBrowser for help on using the repository browser.