Merge topic 'tests-add_test-NAME'

902c9063 Tests: Use add_test(NAME) signature in add_test_macro
This commit is contained in:
Brad King 2014-07-02 09:54:52 -04:00 committed by CMake Topic Stage
commit 33bdcdea80
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
macro(ADD_TEST_MACRO NAME COMMAND)
string(REPLACE "." "/" dir "${NAME}")
string(REGEX REPLACE "[^.]*\\." "" proj "${NAME}")
add_test(${NAME} ${CMAKE_CTEST_COMMAND}
add_test(NAME "${NAME}" COMMAND "${CMAKE_CTEST_COMMAND}"
--build-and-test
"${CMake_SOURCE_DIR}/Tests/${dir}"
"${CMake_BINARY_DIR}/Tests/${dir}"