Skip to content

Commit 9d35161

Browse files
authored
add doc and coverage tool (#11)
1. add doc sample 2. add coverage toll 3. fix cmake issues
1 parent 8f0f02d commit 9d35161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
77

88
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=1)
99

10-
if($ENV{ENABLE_COVERAGE})
10+
option(ENABLE_COVERAGE "Enable converage detection" OFF)
11+
if(ENABLE_COVERAGE)
1112
message(
1213
STATUS "Coverage build enabled via ENABLE_COVERAGE environment variable.")
1314
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")

0 commit comments

Comments
 (0)