mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 17:11:04 +00:00
6edd1806dd
Now has keyword-based arguments (old syntax form is still supported). Discovered tests can have a prefix and/or suffix added to the test names and the list of discovered tests is available to the caller. The working dir can also be set and the dependency on the source files is now optional instead of mandatory.
11 lines
355 B
CMake
11 lines
355 B
CMake
add_test(NAME GoogleTest.Test COMMAND
|
|
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
|
|
--build-and-test
|
|
"${CMake_SOURCE_DIR}/Tests/GoogleTest/Test"
|
|
"${CMake_BINARY_DIR}/Tests/GoogleTest/Test"
|
|
${build_generator_args}
|
|
--build-project TestGoogleTest
|
|
--build-options ${build_options}
|
|
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
|
|
)
|