COIN-OR::LEMON - Graph Library

Changeset 225:c5a40fc54f1a in lemon-main for test/CMakeLists.txt


Ignore:
Timestamp:
07/18/08 17:36:58 (16 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

CMake improvements.

  • documentation generation with Doxygen
  • installation support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r203 r225  
    1 include_directories (${LEMON_SOURCE_DIR})
     1INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
    22
    3 link_directories (${LEMON_BINARY_DIR}/lemon)
     3LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    44
    5 set (TESTS
     5SET(TESTS
    66  bfs_test
    77  counter_test
     
    1717  kruskal_test
    1818  maps_test
     19  random_test
    1920  path_test
    20   random_test
    2121  time_measure_test
    2222  unionfind_test)
    2323
    24 foreach (TEST_NAME ${TESTS})
    25   add_executable (${TEST_NAME} ${TEST_NAME}.cc)
    26   target_link_libraries (${TEST_NAME} lemon)
    27   add_test(${TEST_NAME} ${TEST_NAME})
    28 endforeach (TEST_NAME)
     24FOREACH(TEST_NAME ${TESTS})
     25  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
     26  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
     27  ADD_TEST(${TEST_NAME} ${TEST_NAME})
     28ENDFOREACH(TEST_NAME)
Note: See TracChangeset for help on using the changeset viewer.