test/CMakeLists.txt
changeset 225 c5a40fc54f1a
parent 203 215bfc30b14f
child 338 64ad48007fb2
child 464 4f7224faf3bd
child 539 d8ca76573eb3
     1.1 --- a/test/CMakeLists.txt	Fri Jul 18 16:36:57 2008 +0100
     1.2 +++ b/test/CMakeLists.txt	Fri Jul 18 16:36:58 2008 +0100
     1.3 @@ -1,8 +1,8 @@
     1.4 -include_directories (${LEMON_SOURCE_DIR})
     1.5 +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     1.6  
     1.7 -link_directories (${LEMON_BINARY_DIR}/lemon)
     1.8 +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
     1.9  
    1.10 -set (TESTS
    1.11 +SET(TESTS
    1.12    bfs_test
    1.13    counter_test
    1.14    dfs_test
    1.15 @@ -16,13 +16,13 @@
    1.16    heap_test
    1.17    kruskal_test
    1.18    maps_test
    1.19 +  random_test
    1.20    path_test
    1.21 -  random_test
    1.22    time_measure_test
    1.23    unionfind_test)
    1.24  
    1.25 -foreach (TEST_NAME ${TESTS})
    1.26 -  add_executable (${TEST_NAME} ${TEST_NAME}.cc)
    1.27 -  target_link_libraries (${TEST_NAME} lemon)
    1.28 -  add_test(${TEST_NAME} ${TEST_NAME})
    1.29 -endforeach (TEST_NAME)
    1.30 +FOREACH(TEST_NAME ${TESTS})
    1.31 +  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    1.32 +  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    1.33 +  ADD_TEST(${TEST_NAME} ${TEST_NAME})
    1.34 +ENDFOREACH(TEST_NAME)