test/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Fri, 16 Oct 2009 10:21:37 +0200
changeset 701 c6acc34f98dc
parent 225 c5a40fc54f1a
child 622 20dac2104519
child 756 54464584b157
permissions -rw-r--r--
Use pathCopy(from,to) instead of copyPath(to,from) (#321)
The old version is kept as a deprecated alternative.
     1 INCLUDE_DIRECTORIES(
     2   ${CMAKE_SOURCE_DIR}
     3   ${PROJECT_BINARY_DIR}
     4 )
     5 
     6 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     7 
     8 SET(TESTS
     9   bfs_test
    10   counter_test
    11   dfs_test
    12   digraph_test
    13   dijkstra_test
    14   dim_test
    15   error_test
    16   graph_copy_test
    17   graph_test
    18   graph_utils_test
    19   heap_test
    20   kruskal_test
    21   maps_test
    22   random_test
    23   path_test
    24   time_measure_test
    25   unionfind_test)
    26 
    27 FOREACH(TEST_NAME ${TESTS})
    28   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    29   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    30   ADD_TEST(${TEST_NAME} ${TEST_NAME})
    31 ENDFOREACH(TEST_NAME)