mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
[PATCH] GCOV support added for measuring code test coverage.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
03e53ceaf2
commit
082f7d703e
4 changed files with 20 additions and 0 deletions
|
@ -35,3 +35,9 @@ add_library (columns STATIC ${columns_SRCS})
|
|||
set (CMAKE_BUILD_TYPE debug)
|
||||
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3 -Wall")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -Wall")
|
||||
|
||||
|
||||
SET(CMAKE_BUILD_TYPE gcov)
|
||||
SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
|
||||
SET(CMAKE_C_FLAGS_GCOV "--coverage")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_GCOV "--coverage")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue