We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173ceaf commit cf8327bCopy full SHA for cf8327b
CMakeLists.txt
@@ -15,4 +15,8 @@ target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
15
set(TEST_SOURCES ${PROJECT_SOURCE_DIR}/tests/testmain.cpp)
16
add_executable(tests ${sourcefiles} ${TEST_SOURCES})
17
target_link_libraries(tests Catch)
18
-
+set_target_properties(tests
19
+ PROPERTIES
20
+ COMPILE_FLAGS "-ftest-coverage -fprofile-arcs"
21
+ LINK_FLAGS "-lgcov --coverage"
22
+ )
0 commit comments