COIN-OR::LEMON - Graph Library

source: lemon-main/tools/CMakeLists.txt @ 646:e01957e96c67

Last change on this file since 646:e01957e96c67 was 549:ba659d676331, checked in by Akos Ladanyi <ladanyi@…>, 16 years ago

Make it possible to use LEMON as a CMake subproject (#240)

File size: 616 bytes
RevLine 
[527]1INCLUDE_DIRECTORIES(
[549]2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_BINARY_DIR}
[527]4)
5
[549]6LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
[527]7
8ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
9TARGET_LINK_LIBRARIES(lgf-gen lemon)
10
11ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
12TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
13
14ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
15TARGET_LINK_LIBRARIES(dimacs-solver lemon)
16
17INSTALL(
18  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
19  RUNTIME DESTINATION bin
20  COMPONENT bin
21)
22
23IF(NOT WIN32)
24  INSTALL(
[549]25    PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
26    DESTINATION bin
[527]27    COMPONENT bin)
28ENDIF(NOT WIN32)
Note: See TracBrowser for help on using the repository browser.