Commit 8f643b3d authored by ibanez's avatar ibanez
Browse files

ENH: Copying .NoDartCoverage files to the binary directories where

     .cxx files are generated for code coverage. In this way those
     direcgtories will be excluded from the code coverage computation.


git-svn-id: http://svn.slicer.org/Slicer4/trunk@11387 3bd1e089-480b-0410-8dfb-8563597acbee
parent 3230566f
......@@ -399,6 +399,23 @@ install(FILES
DESTINATION ${Slicer3_INSTALL_INCLUDE_DIR} COMPONENT Development
)
#-----------------------------------------------------------------------------
# Copying .NoDartCoverage files in the binary directory
#
macro(copy_no_coverage_file_to DESTINATION)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Testing/.NoDartCoverage
${DESTINATION}/.NoDartCoverage
)
endmacro(copy_no_coverage_file_to)
copy_no_coverage_file_to("${CMAKE_CURRENT_BINARY_DIR}")
copy_no_coverage_file_to("${CMAKE_CURRENT_BINARY_DIR}/Base")
copy_no_coverage_file_to("${CMAKE_CURRENT_BINARY_DIR}/Modules")
copy_no_coverage_file_to("${CMAKE_CURRENT_BINARY_DIR}/Libs")
#-----------------------------------------------------------------------------
# Subdirectories
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment