test/CMakeLists.txt
changeset 277 7abfb55f1ecc
parent 203 215bfc30b14f
child 326 64ad48007fb2
child 441 4f7224faf3bd
child 499 d8ca76573eb3
equal deleted inserted replaced
4:1486db6328d7 5:87c2d077c199
     1 include_directories (${LEMON_SOURCE_DIR})
     1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2 
     2 
     3 link_directories (${LEMON_BINARY_DIR}/lemon)
     3 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     4 
     4 
     5 set (TESTS
     5 SET(TESTS
     6   bfs_test
     6   bfs_test
     7   counter_test
     7   counter_test
     8   dfs_test
     8   dfs_test
     9   digraph_test
     9   digraph_test
    10   dijkstra_test
    10   dijkstra_test
    14   graph_test
    14   graph_test
    15   graph_utils_test
    15   graph_utils_test
    16   heap_test
    16   heap_test
    17   kruskal_test
    17   kruskal_test
    18   maps_test
    18   maps_test
       
    19   random_test
    19   path_test
    20   path_test
    20   random_test
       
    21   time_measure_test
    21   time_measure_test
    22   unionfind_test)
    22   unionfind_test)
    23 
    23 
    24 foreach (TEST_NAME ${TESTS})
    24 FOREACH(TEST_NAME ${TESTS})
    25   add_executable (${TEST_NAME} ${TEST_NAME}.cc)
    25   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    26   target_link_libraries (${TEST_NAME} lemon)
    26   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    27   add_test(${TEST_NAME} ${TEST_NAME})
    27   ADD_TEST(${TEST_NAME} ${TEST_NAME})
    28 endforeach (TEST_NAME)
    28 ENDFOREACH(TEST_NAME)