Coverage but not OK: todo make lib with character_sheet to test it easily in coverage mode.
This commit is contained in:
parent
367d030ff1
commit
9e4e6fa226
3 changed files with 19 additions and 32 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue