1.1 --- a/CMakeLists.txt Tue Jun 22 16:13:00 2010 +0200
1.2 +++ b/CMakeLists.txt Wed Aug 25 21:34:58 2010 +0200
1.3 @@ -39,6 +39,8 @@
1.4
1.5 ENABLE_TESTING()
1.6
1.7 +ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
1.8 +
1.9 ADD_SUBDIRECTORY(lemon)
1.10 IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
1.11 ADD_SUBDIRECTORY(demo)
2.1 --- a/test/CMakeLists.txt Tue Jun 22 16:13:00 2010 +0200
2.2 +++ b/test/CMakeLists.txt Wed Aug 25 21:34:58 2010 +0200
2.3 @@ -117,7 +117,8 @@
2.4 ENDIF()
2.5
2.6 FOREACH(TEST_NAME ${TESTS})
2.7 - ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
2.8 + ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
2.9 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
2.10 ADD_TEST(${TEST_NAME} ${TEST_NAME})
2.11 + ADD_DEPENDENCIES(check ${TEST_NAME})
2.12 ENDFOREACH()