COIN-OR::LEMON - Graph Library

Changeset 992:e20fecd1945f in lemon


Ignore:
Timestamp:
08/25/10 21:34:58 (14 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Add check target for CMake (#388)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r791 r992  
    3939
    4040ENABLE_TESTING()
     41
     42ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
    4143
    4244ADD_SUBDIRECTORY(lemon)
  • test/CMakeLists.txt

    r953 r992  
    118118
    119119FOREACH(TEST_NAME ${TESTS})
    120   ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
     120  ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
    121121  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    122122  ADD_TEST(${TEST_NAME} ${TEST_NAME})
     123  ADD_DEPENDENCIES(check ${TEST_NAME})
    123124ENDFOREACH()
Note: See TracChangeset for help on using the changeset viewer.