test/CMakeLists.txt
changeset 226 4c9d85f5dc93
parent 203 215bfc30b14f
child 326 64ad48007fb2
child 441 4f7224faf3bd
child 510 d8ca76573eb3
     1.1 --- a/test/CMakeLists.txt	Thu Jul 17 17:39:53 2008 +0200
     1.2 +++ b/test/CMakeLists.txt	Fri Jul 18 16:47:27 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)