demo/CMakeLists.txt
changeset 266 112ed801139d
parent 141 96f81c791f0c
child 394 d8ca76573eb3
equal deleted inserted replaced
0:7af4869a46cb 1:0478e2e2ccac
     1 include_directories (${LEMON_SOURCE_DIR})
     1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2 
     2 
     3 link_directories (${LEMON_BINARY_DIR}/lemon)
     3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     4 
     4 
     5 set (DEMOS
     5 SET(DEMOS
     6   arg_parser_demo
     6   arg_parser_demo
     7   graph_to_eps_demo
     7   graph_to_eps_demo
     8   lgf_demo)
     8   lgf_demo)
     9 
     9 
    10 foreach (DEMO_NAME ${DEMOS})
    10 FOREACH(DEMO_NAME ${DEMOS})
    11   add_executable (${DEMO_NAME} ${DEMO_NAME}.cc)
    11   ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc)
    12   target_link_libraries (${DEMO_NAME} lemon)
    12   TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon)
    13   endforeach (DEMO_NAME)
    13 ENDFOREACH(DEMO_NAME)