message: add DOCTEST_SKIP_COVERAGE and DOCTEST_SKIP_EXAMPLES
diff: @@ -3,10 +3,14 @@ cmake_minimum_required(VERSION 3.0)
  set(PROJECT_NAME doctest)
  project(${PROJECT_NAME} VERSION 1.1.4)
  +option(DOCTEST_SKIP_COVERAGE "Skip coverage" OFF)
  +option(DOCTEST_SKIP_EXAMPLES "Skip examples" OFF)
  +
  include(scripts/common.cmake)
  include_directories("doctest/") # needed here so the coverage tools work - otherwise the "../../doctest" relative path fucks up
  +if(NOT ${DOCTEST_SKIP_COVERAGE})
  # 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)
  @@ -21,7 +25,9 @@ if(DEFINED ENV{COVERALLS_SERVICE_NAME})
  endif()
  add_subdirectory(scripts/code_coverage_source)
  +endif()
  +if(NOT ${DOCTEST_SKIP_EXAMPLES})
  file(GLOB subdir_list "${CMAKE_SOURCE_DIR}/examples/*")
  foreach(dir ${subdir_list})
  if(IS_DIRECTORY ${dir})
  @@ -29,6 +35,7 @@ foreach(dir ${subdir_list})
  add_subdirectory(examples/${DIRNAME})
  endif()
  endforeach()
  +endif()
  add_library(${PROJECT_NAME} INTERFACE)
  set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
  