Add missing "NAME" keyword for parameter to add_test
This commit is contained in:
parent
0168a1297a
commit
f4b59a146b
@ -51,7 +51,7 @@ Then, to add a test, I'd recommend the following macro:
|
|||||||
macro(package_add_test TESTNAME)
|
macro(package_add_test TESTNAME)
|
||||||
add_executable(${TESTNAME} ${ARGN})
|
add_executable(${TESTNAME} ${ARGN})
|
||||||
target_link_libraries(${TESTNAME} gtest gmock gtest_main)
|
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)
|
set_target_properties(${TESTNAME} PROPERTIES FOLDER tests)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user