1
0
mirror of synced 2024-12-22 12:40:00 +01:00

Merge branch 'master' into 'master'

Add missing "NAME" keyword for parameter to add_test

See merge request CLIUtils/modern-cmake!10
This commit is contained in:
Henry Schreiner 2019-02-01 07:25:38 +00:00
commit cbf9698634

View File

@ -51,7 +51,7 @@ Then, to add a test, I'd recommend the following macro:
macro(package_add_test TESTNAME)
add_executable(${TESTNAME} ${ARGN})
target_link_libraries(${TESTNAME} gtest gmock gtest_main)
add_test(${TESTNAME} COMMAND ${TESTNAME})
add_test(NAME ${TESTNAME} COMMAND ${TESTNAME})
set_target_properties(${TESTNAME} PROPERTIES FOLDER tests)
endmacro()