Changeset 10188 for code/trunk
- Timestamp:
- Jan 10, 2015, 4:39:15 PM (10 years ago)
- Location:
- code/trunk/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/test/CMakeLists.txt
r9667 r10188 34 34 ENABLE_TESTING() 35 35 36 # A target to execute tests. This override the native 'test' target of cmake and allows us to 37 # define dependences (i.e. to let cmake build the tests before executing them) 38 IF (POLICY CMP0037) 39 CMAKE_POLICY(PUSH) 40 CMAKE_POLICY(SET CMP0037 OLD) # we currently have to override the original 'test' target until cmake provides a better way to define dependencies to the test target 41 ENDIF() 36 42 ADD_CUSTOM_TARGET(test COMMAND ${CMAKE_CTEST_COMMAND} "$(ARGS)" COMMENT "Running tests") 43 IF (POLICY CMP0037) 44 CMAKE_POLICY(POP) # restore policy settings 45 ENDIF() 46 47 # A target to build all tests 48 ADD_CUSTOM_TARGET(all_tests) 49 ADD_DEPENDENCIES(test all_tests) # build tests before executing them 37 50 38 51 CONFIGURE_FILE("CTestCustom.cmake" "CTestCustom.cmake" @ONLY) -
code/trunk/test/core/CMakeLists.txt
r9639 r10188 28 28 object/WeakPtrTest.cc 29 29 ) 30 ADD_DEPENDENCIES( testcore_test)30 ADD_DEPENDENCIES(all_tests core_test) 31 31 32 32 ADD_TEST(core_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/core_test --gtest_output=xml) -
code/trunk/test/util/CMakeLists.txt
r9529 r10188 31 31 output/SubcontextOutputListenerTest.cc 32 32 ) 33 ADD_DEPENDENCIES( testutil_test)33 ADD_DEPENDENCIES(all_tests util_test) 34 34 35 35 ADD_TEST(util_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/util_test --gtest_output=xml)
Note: See TracChangeset
for help on using the changeset viewer.