Coverage but not OK: todo make lib with character_sheet to test it easily in coverage mode.

This commit is contained in:
Pcornat 2022-02-09 23:26:12 +01:00
commit 9e4e6fa226
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
3 changed files with 19 additions and 32 deletions

View file

@ -102,7 +102,6 @@ option(CATCH_INSTALL_DOCS "Install documentation alongside library" OFF)
option(CATCH_INSTALL_EXTRAS "Install extras alongside library" OFF)
add_subdirectory(external/catch2)
add_subdirectory("Unit testing")
set(COMPILE_FLAGS
-pipe
@ -132,6 +131,17 @@ set(LINKER_FLAGS
jemalloc
)
option(ENABLE_COVERAGE "Enabling coverage" OFF)
if (${ENABLE_COVERAGE})
message(STATUS "Coverage enabled")
list(APPEND COMPILE_FLAGS --coverage)
list(APPEND LINKER_OPTIONS --coverage)
list(APPEND LINKER_FLAGS gcov)
endif ()
add_subdirectory("Unit testing")
add_executable(BillySheet ${SOURCES})
target_include_directories(BillySheet PRIVATE include include/imgui external/ImFileDialog)