# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt 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 :: ctest_coverage_collect_gcov(TARBALL [SOURCE ][BUILD ] [GCOV_COMMAND ] [GCOV_OPTIONS ...] ) Run gcov and package a tar file for CDash. The options are: ``TARBALL `` Specify the location of the ``.tar`` file to be created for later upload to CDash. Relative paths will be interpreted with respect to the top-level build directory. ``TARBALL_COMPRESSION