ChaosTests: Build with --coverage in Debug

This commit is contained in:
hashlag
2026-01-28 02:04:17 +03:00
parent d0e7d2b0ec
commit 2a5a2c96b5

View File

@@ -26,6 +26,11 @@ target_include_directories(ChaosTests PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/Chaos>
)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(ChaosTests PRIVATE --coverage)
target_link_options(ChaosTests PRIVATE --coverage)
endif()
include(GoogleTest)
gtest_discover_tests(ChaosTests)