From 2a5a2c96b51d04075b4db5c4185c3c3722e4a84b Mon Sep 17 00:00:00 2001 From: hashlag Date: Wed, 28 Jan 2026 02:04:17 +0300 Subject: [PATCH] ChaosTests: Build with --coverage in Debug --- ChaosTests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ChaosTests/CMakeLists.txt b/ChaosTests/CMakeLists.txt index 5633e60..f5166ea 100644 --- a/ChaosTests/CMakeLists.txt +++ b/ChaosTests/CMakeLists.txt @@ -26,6 +26,11 @@ target_include_directories(ChaosTests PRIVATE $ ) +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)