ECMCoverageOption¶
Allow users to easily enable GCov code coverage support.
Code coverage allows you to check how much of your codebase is covered by your tests. This module makes it easy to build with support for GCov.
When this module is included, a BUILD_COVERAGE option is added (default
OFF). Turning this option on enables GCC’s coverage instrumentation, and
links against libgcov. On Clang, the option enables
coverage compatible with GCC
using –coverage.
Clang support was added on version 6.29.
Since 1.3.0.