COIN-OR::LEMON - Graph Library

source: lemon-main/tools/CMakeLists.txt @ 803:1b89e29c9fc7

Last change on this file since 803:1b89e29c9fc7 was 679:9c7639f3a741, checked in by Akos Ladanyi <ladanyi@…>, 16 years ago

Minor CMake improvements

  • Use the empty ELSE(), ENDIF(), ENDMACRO(), etc. syntax since this improves readability and requires less typing.
  • Use FIND_PACKAGE() instead of INCLUDE().
  • Use the value of CMAKE_COMMAND variable instead of cmake, since this works even if cmake is not in the PATH.
File size: 614 bytes
RevLine 
[527]1INCLUDE_DIRECTORIES(
[549]2  ${PROJECT_SOURCE_DIR}
3  ${PROJECT_BINARY_DIR}
[527]4)
5
[679]6LINK_DIRECTORIES(
7  ${PROJECT_BINARY_DIR}/lemon
8)
[527]9
10ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
11TARGET_LINK_LIBRARIES(lgf-gen lemon)
12
13ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
14TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
15
16ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
17TARGET_LINK_LIBRARIES(dimacs-solver lemon)
18
19INSTALL(
20  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
21  RUNTIME DESTINATION bin
22  COMPONENT bin
23)
24
25IF(NOT WIN32)
26  INSTALL(
[549]27    PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
28    DESTINATION bin
[679]29    COMPONENT bin
30  )
31ENDIF()
Note: See TracBrowser for help on using the repository browser.