COIN-OR::LEMON - Graph Library

source: lemon-1.2/tools/CMakeLists.txt @ 630:936355864d6e

Last change on this file since 630:936355864d6e 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
Line 
1INCLUDE_DIRECTORIES(
2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_BINARY_DIR}
4)
5
6LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
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(
25    PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
26    DESTINATION bin
27    COMPONENT bin)
28ENDIF(NOT WIN32)
Note: See TracBrowser for help on using the repository browser.