From df0f36827f94b58af4a0d6547743f2764371c88b Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 25 Dec 2016 02:10:17 +0100 Subject: project: Add CI and coverage support --- cmake/modules/CompilerSetup.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmake/modules/CompilerSetup.cmake') diff --git a/cmake/modules/CompilerSetup.cmake b/cmake/modules/CompilerSetup.cmake index 82d0b2d..40c297f 100644 --- a/cmake/modules/CompilerSetup.cmake +++ b/cmake/modules/CompilerSetup.cmake @@ -113,3 +113,10 @@ set( CACHE STRING "Flags used by the compiler during release builds for minimum size." FORCE ) + +# Export additional C++ compile flags for coverage builds +set( + CMAKE_CXX_FLAGS_COVERAGE "-O0 -g --coverage" + CACHE STRING "Flags used by the compiler during coverage builds." + FORCE + ) -- cgit v1.2.3