Add coverage ci

This commit is contained in:
ado
2023-08-08 00:43:02 +02:00
parent 14ccb88664
commit f232c7d995
2 changed files with 71 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(ssp INTERFACE -Wall -Wextra)
endif()
set(CMAKE_CXX_FLAGS "-Wall -fprofile-arcs -ftest-coverage --coverage")
if (MSVC)
add_compile_options(/bigobj)
elseif (MINGW)