mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-21 06:00:51 -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
323 B
CMake
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
|
|
)
|