test/CMakeLists.txt
changeset 902 a725503acfe9
parent 897 e20fecd1945f
child 905 de428ebb47ab
equal deleted inserted replaced
43:19cc73dc371a 44:541f4aab802d
   115     )
   115     )
   116   ENDIF()
   116   ENDIF()
   117 ENDIF()
   117 ENDIF()
   118 
   118 
   119 FOREACH(TEST_NAME ${TESTS})
   119 FOREACH(TEST_NAME ${TESTS})
   120   ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
   120   IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
       
   121     ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
       
   122   ELSE()
       
   123     ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
       
   124   ENDIF()
   121   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
   125   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
   122   ADD_TEST(${TEST_NAME} ${TEST_NAME})
   126   ADD_TEST(${TEST_NAME} ${TEST_NAME})
   123   ADD_DEPENDENCIES(check ${TEST_NAME})
   127   ADD_DEPENDENCIES(check ${TEST_NAME})
   124 ENDFOREACH()
   128 ENDFOREACH()