Location: LEMON/LEMON-main/lemon/CMakeLists.txt - annotation
Load file history
Add lemon/config.h.cmake to the tarball
r510:d8ca76573eb3 r549:ba659d676331 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r225:c5a40fc54f1a r473:17d918051964 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r473:17d918051964 r473:17d918051964 r491:879c55700cd4 r491:879c55700cd4 r491:879c55700cd4 r225:c5a40fc54f1a r627:20dac2104519 r473:17d918051964 r619:ec817dfc2cb7 r474:f59df77f5c8d r474:f59df77f5c8d r474:f59df77f5c8d r474:f59df77f5c8d r474:f59df77f5c8d r627:20dac2104519 r473:17d918051964 r627:20dac2104519 r620:c3ce597c11ae r620:c3ce597c11ae r627:20dac2104519 r620:c3ce597c11ae r627:20dac2104519 r621:b536eaacb39b r621:b536eaacb39b r627:20dac2104519 r621:b536eaacb39b r627:20dac2104519 r621:b536eaacb39b r621:b536eaacb39b r627:20dac2104519 r621:b536eaacb39b r473:17d918051964 r473:17d918051964 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 r510:d8ca76573eb3 | INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR}
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h
)
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(WIN32)
ENDIF(LEMON_HAVE_GLPK)
IF(LEMON_HAVE_CPLEX)
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
ENDIF(LEMON_HAVE_CPLEX)
IF(LEMON_HAVE_CLP)
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ENDIF(LEMON_HAVE_CLP)
IF(LEMON_HAVE_CBC)
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ENDIF(LEMON_HAVE_CBC)
ADD_LIBRARY(lemon ${LEMON_SOURCES})
INSTALL(
TARGETS lemon
ARCHIVE 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)
|