mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
The test cases only need C or C++, but not both. The CTest module is also not needed because we are not running a dashboard script.
14 lines
347 B
CMake
14 lines
347 B
CMake
project(test_include_dirs LANGUAGES CXX)
|
|
include(GoogleTest)
|
|
|
|
enable_testing()
|
|
|
|
add_executable(discovery_timeout_test timeout_test.cpp)
|
|
target_compile_definitions(discovery_timeout_test PRIVATE discoverySleepSec=10)
|
|
gtest_discover_tests(
|
|
discovery_timeout_test
|
|
TEST_PREFIX discovery_
|
|
DISCOVERY_TIMEOUT 2
|
|
DISCOVERY_MODE ${DISCOVERY_MODE}
|
|
)
|