test/CMakeLists.txt
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Sun, 13 Apr 2008 20:15:45 +0200
changeset 142 8b703d177341
child 170 91fb4372688f
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.
ladanyi@141
     1
include_directories (${LEMON_SOURCE_DIR})
ladanyi@141
     2
ladanyi@141
     3
link_directories (${LEMON_BINARY_DIR}/lemon)
ladanyi@141
     4
ladanyi@141
     5
set (TESTS
ladanyi@141
     6
  bfs_test
ladanyi@141
     7
  counter_test
ladanyi@141
     8
  dfs_test
ladanyi@141
     9
  digraph_test
ladanyi@141
    10
  dim_test
ladanyi@141
    11
  error_test
ladanyi@141
    12
  graph_test
ladanyi@141
    13
  kruskal_test
ladanyi@141
    14
  maps_test
ladanyi@141
    15
  random_test
ladanyi@141
    16
  path_test
ladanyi@141
    17
  time_measure_test
ladanyi@141
    18
  unionfind_test)
ladanyi@141
    19
ladanyi@141
    20
foreach (TEST_NAME ${TESTS})
ladanyi@141
    21
  add_executable (${TEST_NAME} ${TEST_NAME}.cc)
ladanyi@141
    22
  target_link_libraries (${TEST_NAME} lemon)
ladanyi@141
    23
  add_test(${TEST_NAME} ${TEST_NAME})
ladanyi@141
    24
endforeach (TEST_NAME)