# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file LICENSE.rst or https://cmake.org/licensing for details. #[=======================================================================[.rst: CTestCoverageCollectGCOV ------------------------ .. versionadded:: 3.2 This module provides the ``ctest_coverage_collect_gcov()`` function. This function runs ``gcov`` on all ``.gcda`` files found in the binary tree and packages the resulting ``.gcov`` files into a tar file. This tarball also contains the following: * *data.json* defines the source and build directories for use by CDash. * *Labels.json* indicates any :prop_sf:`LABELS` that have been set on the source files. * The *uncovered* directory holds any uncovered files found by :variable:`CTEST_EXTRA_COVERAGE_GLOB`. After generating this tar file, it can be sent to CDash for display with the :command:`ctest_submit(CDASH_UPLOAD)` command. .. command:: ctest_coverage_collect_gcov .. code-block:: cmake ctest_coverage_collect_gcov( TARBALL [TARBALL_COMPRESSION