cmake/Tests/RunCMake/GoogleTest/GoogleTestDiscoveryMultiConfig.cmake

14 lines
323 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
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
)