ChaosTests: Build with --coverage in Debug
This commit is contained in:
1 parent
d0e7d2b0ec
commit
2a5a2c96b5
1 file changed
+5
@@ -26,6 +26,11 @@ target_include_directories(ChaosTests PRIVATE
|
|||||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/Chaos>
|
$<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)
|
include(GoogleTest)
|
||||||
|
|
||||||
gtest_discover_tests(ChaosTests)
|
gtest_discover_tests(ChaosTests)
|
||||||
Reference in new issue
Block a user