Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2016-08-02 14:23:38 +0300
committeronqtam <vik.kirilov@gmail.com>2016-09-21 15:46:11 +0300
commitcc9e865b2aec3a64b9ddfb65ead4b471a73bea43 (patch)
treec548f4539ea10b28764a1bb39402a88d385a7cea /CMakeLists.txt
parent9f934f818bb93cd9c5e217b59298383a7de31db5 (diff)
working on code coverage
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 794e57a9..61b54ea2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,6 +10,8 @@ if(DEFINED ENV{TRAVIS} AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMA
add_compiler_flags(-m64)
endif()
+include_directories("doctest/") # needed here so the coverage tools work - otherwise the "../../doctest" relative path fucks up
+
# 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)
@@ -17,10 +19,12 @@ if(DEFINED ENV{COVERALLS_SERVICE_NAME})
coveralls_turn_on_coverage()
coveralls_setup("${CMAKE_SOURCE_DIR}/doctest/doctest.h" ON "${CMAKE_SOURCE_DIR}/scripts/coveralls-cmake/cmake")
+
+ add_subdirectory(examples/code_coverage)
+
+ return()
endif()
-include_directories("doctest/") # needed here so the coverage tools work - otherwise the "../../doctest" relative path fucks up
-
file(GLOB subdir_list "${CMAKE_SOURCE_DIR}/examples/*")
foreach(dir ${subdir_list})
if(IS_DIRECTORY ${dir})