test/CMakeLists.txt
changeset 998 3ffd46dc8e01
parent 992 e20fecd1945f
child 1000 de428ebb47ab
     1.1 --- a/test/CMakeLists.txt	Sat Sep 04 23:58:03 2010 +0200
     1.2 +++ b/test/CMakeLists.txt	Sun Sep 12 07:02:51 2010 +0200
     1.3 @@ -117,7 +117,12 @@
     1.4  ENDIF()
     1.5  
     1.6  FOREACH(TEST_NAME ${TESTS})
     1.7 -  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
     1.8 +  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     1.9 +    ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
    1.10 +  ELSE()
    1.11 +    ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
    1.12 +  ENDIF()
    1.13    TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
    1.14    ADD_TEST(${TEST_NAME} ${TEST_NAME})
    1.15 +  ADD_DEPENDENCIES(check ${TEST_NAME})
    1.16  ENDFOREACH()