mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
chore(build): add coverage target
This commit is contained in:
parent
b8404260b1
commit
104f18a82a
5 changed files with 789 additions and 1 deletions
|
|
@ -33,4 +33,9 @@ target_include_directories(StormTest
|
|||
${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
include(CodeCoverage)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE -g -fprofile-arcs -ftest-coverage -O0)
|
||||
endif()
|
||||
|
||||
install(TARGETS StormTest DESTINATION "bin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue