Files
CMake/Tests/RunCMake/GoogleTest/GoogleTestDiscoveryMultiConfig.cmake
Craig Scott 09c38e8de6 Tests: Don't ask for things not required for GoogleTest
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.
2020-06-24 21:56:26 +10:00

14 lines
323 B
CMake

project(test_include_dirs LANGUAGES CXX)
include(GoogleTest)
enable_testing()
add_executable(configuration_gtest configuration_gtest.cpp)
target_compile_definitions(configuration_gtest PRIVATE $<$<CONFIG:Debug>:DEBUG=1>)
gtest_discover_tests(
configuration_gtest
PROPERTIES LABELS CONFIG
DISCOVERY_MODE PRE_TEST
)