mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
CTest: Add alias for make test target (#4564)
Clients may define CTEST_TEST_TARGET_ALIAS in a project's initial cache to get a target of another name that executes the same underlying command as "make test"
This commit is contained in:
@@ -84,4 +84,12 @@ IF(NOT _CTEST_TARGETS_ADDED)
|
|||||||
ENDFOREACH(testtype)
|
ENDFOREACH(testtype)
|
||||||
ENDFOREACH(mode)
|
ENDFOREACH(mode)
|
||||||
ENDIF("${CMAKE_GENERATOR}" MATCHES Make)
|
ENDIF("${CMAKE_GENERATOR}" MATCHES Make)
|
||||||
|
|
||||||
|
# If requested, add an alias that is the equivalent of the built-in "test"
|
||||||
|
# or "RUN_TESTS" target:
|
||||||
|
IF(CTEST_TEST_TARGET_ALIAS)
|
||||||
|
ADD_CUSTOM_TARGET(${CTEST_TEST_TARGET_ALIAS}
|
||||||
|
${CMAKE_CTEST_COMMAND} ${__conf_types}
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
ENDIF(NOT _CTEST_TARGETS_ADDED)
|
ENDIF(NOT _CTEST_TARGETS_ADDED)
|
||||||
|
|||||||
Reference in New Issue
Block a user