diff -r f9a18c21dba8 -r 4c9d85f5dc93 demo/CMakeLists.txt --- a/demo/CMakeLists.txt Thu Jul 17 17:39:53 2008 +0200 +++ b/demo/CMakeLists.txt Fri Jul 18 16:47:27 2008 +0100 @@ -1,13 +1,13 @@ -include_directories (${LEMON_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) -link_directories (${LEMON_BINARY_DIR}/lemon) +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) -set (DEMOS +SET(DEMOS arg_parser_demo graph_to_eps_demo lgf_demo) -foreach (DEMO_NAME ${DEMOS}) - add_executable (${DEMO_NAME} ${DEMO_NAME}.cc) - target_link_libraries (${DEMO_NAME} lemon) - endforeach (DEMO_NAME) +FOREACH(DEMO_NAME ${DEMOS}) + ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc) + TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon) +ENDFOREACH(DEMO_NAME)