fixing the cmake for code coverage reports! should be >99%
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6539be8..8378cee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,8 +12,6 @@
include_directories("doctest/") # needed here so the coverage tools work - otherwise the "../../doctest" relative path fucks up
-add_subdirectory(scripts/code_coverage_source)
-
# setup coverage stuff only when COVERALLS_SERVICE_NAME is set (usually on travis CI)
if(DEFINED ENV{COVERALLS_SERVICE_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/scripts/coveralls-cmake/cmake)
@@ -22,9 +20,13 @@
coveralls_setup("${CMAKE_SOURCE_DIR}/doctest/doctest.h" ON "${CMAKE_SOURCE_DIR}/scripts/coveralls-cmake/cmake")
+ add_subdirectory(scripts/code_coverage_source)
+
return()
endif()
+add_subdirectory(scripts/code_coverage_source)
+
file(GLOB subdir_list "${CMAKE_SOURCE_DIR}/examples/*")
foreach(dir ${subdir_list})
if(IS_DIRECTORY ${dir})