File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,14 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
5
5
include ( Common )
6
6
include ( Tools )
7
7
8
- project ( consulcpp VERSION 0.2.1 DESCRIPTION "A C++ library that implements the Consul API" LANGUAGES CXX )
8
+ project ( consulcpp VERSION 0.2.2 DESCRIPTION "A C++ library that implements the Consul API" LANGUAGES CXX )
9
+
10
+ option ( BUILD_EXAMPLES "Build examples" ON )
11
+ option ( ADD_COVERAGE "Add coverage" OFF )
9
12
10
13
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
11
14
include ( CTest )
12
- if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND UNIX )
15
+ if ( ADD_COVERAGE )
13
16
include ( CodeCoverage )
14
17
append_coverage_compiler_flags ()
15
18
setup_target_for_coverage_gcovr (
@@ -19,8 +22,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
19
22
endif ()
20
23
endif ()
21
24
22
- option ( BUILD_EXAMPLES "Build examples" ON )
23
-
24
25
sonarqube_setup ()
25
26
26
27
add_subdirectory ( src )
You can’t perform that action at this time.
0 commit comments