test/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Mon, 01 Dec 2008 14:23:59 +0100
changeset 403 940587667b47
parent 326 64ad48007fb2
child 410 eac19fb31a09
permissions -rw-r--r--
Improve test file for Circulation (#175)

- Bug fix: add a missing #include.
- Add compile test for various functions and named parameters.
- Use a smaller digraph with lower bounds.
- Test eight instances instead of two.
- Remove the doc that was for the demo file.
     1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2 
     3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     4 
     5 SET(TESTS
     6   bfs_test
     7   counter_test
     8   dfs_test
     9   digraph_test
    10   dijkstra_test
    11   dim_test
    12   error_test
    13   graph_copy_test
    14   graph_test
    15   graph_utils_test
    16   heap_test
    17   kruskal_test
    18   maps_test
    19   max_matching_test
    20   random_test
    21   path_test
    22   time_measure_test
    23   unionfind_test)
    24 
    25 FOREACH(TEST_NAME ${TESTS})
    26   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    27   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    28   ADD_TEST(${TEST_NAME} ${TEST_NAME})
    29 ENDFOREACH(TEST_NAME)