diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,8 +1,8 @@ -include_directories (${LEMON_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) -link_directories (${LEMON_BINARY_DIR}/lemon) +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) -set (TESTS +SET(TESTS bfs_test counter_test dfs_test @@ -16,13 +16,13 @@ heap_test kruskal_test maps_test + random_test path_test - random_test time_measure_test unionfind_test) -foreach (TEST_NAME ${TESTS}) - add_executable (${TEST_NAME} ${TEST_NAME}.cc) - target_link_libraries (${TEST_NAME} lemon) - add_test(${TEST_NAME} ${TEST_NAME}) -endforeach (TEST_NAME) +FOREACH(TEST_NAME ${TESTS}) + ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) + TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) + ADD_TEST(${TEST_NAME} ${TEST_NAME}) +ENDFOREACH(TEST_NAME)