Skip to content

Commit e1045ce

Browse files
committed
Add --coverage flags in CMakeLists.txt to get code coverage report data
1 parent 423b2ec commit e1045ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extras/test/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ set(TEST_SRCS
3636
add_compile_definitions(HOST)
3737
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
3838

39+
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage")
40+
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage")
41+
3942
##########################################################################
4043

4144
add_executable(

0 commit comments

Comments
 (0)