Changeset 10188 for code/trunk/test/CMakeLists.txt
- Timestamp:
- Jan 10, 2015, 4:39:15 PM (9 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.