Location: LEMON/LEMON-official/lemon/CMakeLists.txt - annotation
Load file history
Merge LP interface updates
r539:d8ca76573eb3 r596:ba659d676331 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r225:c5a40fc54f1a r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r496:17d918051964 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r496:17d918051964 r496:17d918051964 r511:879c55700cd4 r511:879c55700cd4 r511:879c55700cd4 r225:c5a40fc54f1a r674:20dac2104519 r496:17d918051964 r666:ec817dfc2cb7 r498:f59df77f5c8d r498:f59df77f5c8d r498:f59df77f5c8d r498:f59df77f5c8d r726:9c7639f3a741 r726:9c7639f3a741 r496:17d918051964 r674:20dac2104519 r667:c3ce597c11ae r667:c3ce597c11ae r726:9c7639f3a741 r667:c3ce597c11ae r674:20dac2104519 r668:b536eaacb39b r668:b536eaacb39b r726:9c7639f3a741 r668:b536eaacb39b r674:20dac2104519 r668:b536eaacb39b r668:b536eaacb39b r726:9c7639f3a741 r668:b536eaacb39b r496:17d918051964 r722:c5dc4d3124aa r722:c5dc4d3124aa r726:9c7639f3a741 r496:17d918051964 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r1113:53c0dd387001 r722:c5dc4d3124aa r722:c5dc4d3124aa r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r722:c5dc4d3124aa r722:c5dc4d3124aa r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r539:d8ca76573eb3 r722:c5dc4d3124aa r722:c5dc4d3124aa r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 r1012:10242c611190 | INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR}
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
@ONLY
)
SET(LEMON_SOURCES
arg_parser.cc
base.cc
color.cc
lp_base.cc
lp_skeleton.cc
random.cc
bits/windows.cc
)
IF(LEMON_HAVE_GLPK)
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
IF(WIN32)
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
ENDIF()
ENDIF()
IF(LEMON_HAVE_CPLEX)
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
ENDIF()
IF(LEMON_HAVE_CLP)
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ENDIF()
IF(LEMON_HAVE_CBC)
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ENDIF()
ADD_LIBRARY(lemon ${LEMON_SOURCES})
IF(UNIX)
SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
ENDIF()
INSTALL(
TARGETS lemon
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
COMPONENT library
)
INSTALL(
DIRECTORY . bits concepts
DESTINATION include/lemon
COMPONENT headers
FILES_MATCHING PATTERN "*.h"
)
INSTALL(
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
DESTINATION include/lemon
COMPONENT headers
)
INSTALL(
FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
DESTINATION lib/pkgconfig
)
|