demo/CMakeLists.txt
changeset 226 4c9d85f5dc93
parent 141 96f81c791f0c
child 473 17d918051964
child 510 d8ca76573eb3
     1.1 --- a/demo/CMakeLists.txt	Thu Jul 17 17:39:53 2008 +0200
     1.2 +++ b/demo/CMakeLists.txt	Fri Jul 18 16:47:27 2008 +0100
     1.3 @@ -1,13 +1,13 @@
     1.4 -include_directories (${LEMON_SOURCE_DIR})
     1.5 +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     1.6  
     1.7 -link_directories (${LEMON_BINARY_DIR}/lemon)
     1.8 +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     1.9  
    1.10 -set (DEMOS
    1.11 +SET(DEMOS
    1.12    arg_parser_demo
    1.13    graph_to_eps_demo
    1.14    lgf_demo)
    1.15  
    1.16 -foreach (DEMO_NAME ${DEMOS})
    1.17 -  add_executable (${DEMO_NAME} ${DEMO_NAME}.cc)
    1.18 -  target_link_libraries (${DEMO_NAME} lemon)
    1.19 -  endforeach (DEMO_NAME)
    1.20 +FOREACH(DEMO_NAME ${DEMOS})
    1.21 +  ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc)
    1.22 +  TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon)
    1.23 +ENDFOREACH(DEMO_NAME)