Permalink
Browse files

Move coverage.sh.in to the scripts directory and gitignore the genera…

…ted file
  • Loading branch information...
isaacbrodsky committed Aug 24, 2018
1 parent c6ac8de commit 6e7aa786804b94a2e0bbc2f5291057a7ba6b3d5b
Showing with 8 additions and 3 deletions.
  1. +5 −0 .gitignore
  2. +3 −3 CMakeLists.txt
  3. 0 {cmake → scripts}/coverage.sh.in
@@ -10,6 +10,9 @@
/lib/
# Travis CI build directory
/build/
# Local build directories
/Debug/
/Release/

# random temp files
.DS_Store
@@ -72,6 +75,8 @@ CMakeDoxygenDefaults.cmake
DartConfiguration.tcl
compile_commands.json
RunCoverage.cmake
# Generated coverage runner
scripts/coverage.sh

# CTest / coverage
CTestTestfile.cmake
@@ -330,13 +330,13 @@ if(BUILD_TESTING)
set(test_number 0)

if(ENABLE_COVERAGE)
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/coverage.sh"
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/cmake/coverage.sh.in")
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/scripts/coverage.sh"
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/coverage.sh.in")
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "coverage.info")
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "coverage.cleaned.info")
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "coverage")
add_custom_target(coverage
COMMAND bash "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/coverage.sh" "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
COMMAND bash "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/scripts/coverage.sh" "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_target(clean-coverage
# Before running coverage, clear all counters
COMMAND lcov --directory '${CMAKE_CURRENT_BINARY_DIR}' --zerocounters
File renamed without changes.

0 comments on commit 6e7aa78

Please sign in to comment.