demo/CMakeLists.txt
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Sun, 13 Apr 2008 20:15:45 +0200
changeset 142 8b703d177341
child 225 c5a40fc54f1a
permissions -rw-r--r--
Improved LEMON_FUNCTION_NAME macro.
It should work fine with GCC and the MS C++ compilers. Otherwise it reverts to
using the __func__ variable which is C99, but I couldn't find a better
alternative.
     1 include_directories (${LEMON_SOURCE_DIR})
     2 
     3 link_directories (${LEMON_BINARY_DIR}/lemon)
     4 
     5 set (DEMOS
     6   arg_parser_demo
     7   graph_to_eps_demo
     8   lgf_demo)
     9 
    10 foreach (DEMO_NAME ${DEMOS})
    11   add_executable (${DEMO_NAME} ${DEMO_NAME}.cc)
    12   target_link_libraries (${DEMO_NAME} lemon)
    13   endforeach (DEMO_NAME)