Create granular targets for Ninja generators too
This commit is contained in:
parent
58db6ac299
commit
d5318e00cb
|
@ -69,7 +69,7 @@ IF(NOT _CTEST_TARGETS_ADDED)
|
||||||
ENDFOREACH(mode)
|
ENDFOREACH(mode)
|
||||||
|
|
||||||
# For Makefile generators add more granular targets.
|
# For Makefile generators add more granular targets.
|
||||||
IF("${CMAKE_GENERATOR}" MATCHES Make)
|
IF("${CMAKE_GENERATOR}" MATCHES "(Ninja|Make)")
|
||||||
# Make targets for Experimental builds
|
# Make targets for Experimental builds
|
||||||
FOREACH(mode Nightly Experimental Continuous)
|
FOREACH(mode Nightly Experimental Continuous)
|
||||||
FOREACH(testtype
|
FOREACH(testtype
|
||||||
|
@ -83,7 +83,7 @@ IF(NOT _CTEST_TARGETS_ADDED)
|
||||||
SET_PROPERTY(TARGET ${mode}${testtype} PROPERTY FOLDER "CTestDashboardTargets")
|
SET_PROPERTY(TARGET ${mode}${testtype} PROPERTY FOLDER "CTestDashboardTargets")
|
||||||
ENDFOREACH(testtype)
|
ENDFOREACH(testtype)
|
||||||
ENDFOREACH(mode)
|
ENDFOREACH(mode)
|
||||||
ENDIF("${CMAKE_GENERATOR}" MATCHES Make)
|
ENDIF("${CMAKE_GENERATOR}" MATCHES "(Ninja|Make)")
|
||||||
|
|
||||||
# If requested, add an alias that is the equivalent of the built-in "test"
|
# If requested, add an alias that is the equivalent of the built-in "test"
|
||||||
# or "RUN_TESTS" target:
|
# or "RUN_TESTS" target:
|
||||||
|
|
Loading…
Reference in New Issue