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)