COIN-OR::LEMON - Graph Library

source: lemon-main/demo/CMakeLists.txt @ 791:4e3484a2e90c

Last change on this file since 791:4e3484a2e90c was 679:9c7639f3a741, checked in by Akos Ladanyi <ladanyi@…>, 15 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: 317 bytes
RevLine 
[510]1INCLUDE_DIRECTORIES(
[549]2  ${PROJECT_SOURCE_DIR}
[510]3  ${PROJECT_BINARY_DIR}
4)
[141]5
[679]6LINK_DIRECTORIES(
7  ${PROJECT_BINARY_DIR}/lemon
8)
[141]9
[225]10SET(DEMOS
[141]11  arg_parser_demo
12  graph_to_eps_demo
[679]13  lgf_demo
14)
[141]15
[225]16FOREACH(DEMO_NAME ${DEMOS})
17  ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc)
18  TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon)
[679]19ENDFOREACH()
Note: See TracBrowser for help on using the repository browser.