test/CMakeLists.txt
changeset 898 e74b5db4f2c6
parent 874 d8ea85825e02
child 901 63e4468c680e
equal deleted inserted replaced
42:aadb10903cf6 43:19cc73dc371a
   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} ${TEST_NAME}.cc)
   120   ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
   121   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
   121   TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
   122   ADD_TEST(${TEST_NAME} ${TEST_NAME})
   122   ADD_TEST(${TEST_NAME} ${TEST_NAME})
       
   123   ADD_DEPENDENCIES(check ${TEST_NAME})
   123 ENDFOREACH()
   124 ENDFOREACH()