From 6ab50fa9e27c4710beb2641fd510dfce08cc2719 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 11 Sep 2014 10:48:06 +0200 Subject: Make code coverage possible in any KDE project Introduces a BUILD_COVERAGE option from a ECMCoverageOption file so that projects can easily enable code coverage in their applications. Furthermore, KDECompilerSettings does include that by default, so all proper KDE projects have the option by default. REVIEW: 120118 --- kde-modules/KDECompilerSettings.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kde-modules') diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index 728bb413..fbb464d1 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -420,4 +420,6 @@ if (MINGW AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--export-all-symbols") endif() -include ( ECMEnableSanitizers ) +include(ECMEnableSanitizers) +include(ECMCoverageOption) + -- cgit v1.2.1