Commit daad03d7 authored by Julian Helfferich's avatar Julian Helfferich Committed by Julian Helfferich
Browse files

Allow building test coverage report

Currently, a whopping 0% of the code is under test. This might or might
not change in the future.
parent eee0f854
......@@ -45,6 +45,11 @@ if (${KF5Config_VERSION} STRGREATER "5.56.0")
MESSAGE(STATUS "compile without foreach")
endif()
option(BUILD_COVERAGE "Build the project with gcov support" OFF)
if(BUILD_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lgcov")
endif()
add_subdirectory(themes)
add_subdirectory(sounds)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment