mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 05:27:47 +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
|
@ -20,3 +20,8 @@ foreach (src_FILE ${test_SRCS})
|
|||
add_executable (${src_FILE} "${src_FILE}.cpp" test.cpp)
|
||||
target_link_libraries (${src_FILE} task commands task columns ${TASK_LIBRARIES})
|
||||
endforeach (src_FILE)
|
||||
|
||||
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