Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | exclude_from_source_package( | ||||
"arcanist/" | "arcanist/" | ||||
"depends/" | "depends/" | ||||
# Files | # Files | ||||
"[^.]+[.]md$" | "[^.]+[.]md$" | ||||
"Dockerfile-doxygen" | "Dockerfile-doxygen" | ||||
) | ) | ||||
option(ENABLE_COVERAGE "Enable coverage" OFF) | |||||
deadalnix: You decided this was a build type. | |||||
option(ENABLE_BRANCH_COVERAGE "Enable branch coverage" OFF) | |||||
if(ENABLE_COVERAGE) | |||||
include(Coverage) | |||||
enable_coverage(${ENABLE_BRANCH_COVERAGE}) | |||||
set(CMAKE_BUILD_TYPE Coverage CACHE STRING | |||||
"Select the configuration for the build" FORCE) | |||||
exclude_from_coverage( | |||||
"depends" | |||||
"src/bench" | |||||
"src/crypto/ctaes" | |||||
"src/leveldb" | |||||
"src/secp256k1" | |||||
deadalnixUnsubmitted Not Done Inline ActionsIf it interfers, then it probably worth reconsidering. deadalnix: If it interfers, then it probably worth reconsidering. | |||||
"src/seeder" | |||||
"src/univalue" | |||||
) | |||||
add_custom_target_coverage(check) | |||||
add_custom_target_coverage(check-all) | |||||
add_custom_target_coverage(check-extended) | |||||
add_custom_target_coverage(check-upgrade-activated) | |||||
add_custom_target_coverage(check-upgrade-activated-extended) | |||||
endif() | |||||
add_subdirectory(src) | add_subdirectory(src) | ||||
add_subdirectory(test) | add_subdirectory(test) | ||||
add_subdirectory(contrib) | add_subdirectory(contrib) | ||||
add_subdirectory(doc) | add_subdirectory(doc) | ||||
include(PackageOptions.cmake) | include(PackageOptions.cmake) |
You decided this was a build type.