Fix Google Test example
This commit is contained in:
parent
562e3ec2c4
commit
fd21e242d5
@ -64,8 +64,8 @@ macro(package_add_test TESTNAME)
|
|||||||
# see https://cmake.org/cmake/help/v3.10/module/GoogleTest.html for more options to pass to it
|
# see https://cmake.org/cmake/help/v3.10/module/GoogleTest.html for more options to pass to it
|
||||||
gtest_discover_tests(${TESTNAME}
|
gtest_discover_tests(${TESTNAME}
|
||||||
# set a working directory so your project root so that you can find test data via paths relative to the project root
|
# set a working directory so your project root so that you can find test data via paths relative to the project root
|
||||||
WORKING_DIRECTORY ${PROJECT_DIR}
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${PROJECT_DIR}"
|
PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
||||||
)
|
)
|
||||||
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