Forked from
Eclipse Projects / Eclipse openpass / opSimulation
1625 commits behind the upstream repository.
-
New cmake-options: - "-D WITH_COVERAGE=ON" to activate, - "-D COVERAGE_EXCLUDES=/usr/;..." for filtering Adds dependencies on: - fastcov, gcov, genhtml - Necessary Find*.cmake packages provided and conditionally activated This option adds two consecutive test targets to each test: - <test>_coverage - <test>_html Build: - "ctest" to generate and run tests and generate html coverage report - Then look for <test_bin_root>/html/index.html Signed-off-by:
Rene Paris <rene.paris@in-tech.com> Signed-off-by:
Reinhard Biegel <reinhard.biegel@in-tech.com>
New cmake-options: - "-D WITH_COVERAGE=ON" to activate, - "-D COVERAGE_EXCLUDES=/usr/;..." for filtering Adds dependencies on: - fastcov, gcov, genhtml - Necessary Find*.cmake packages provided and conditionally activated This option adds two consecutive test targets to each test: - <test>_coverage - <test>_html Build: - "ctest" to generate and run tests and generate html coverage report - Then look for <test_bin_root>/html/index.html Signed-off-by:
Rene Paris <rene.paris@in-tech.com> Signed-off-by:
Reinhard Biegel <reinhard.biegel@in-tech.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
FindFastcov.cmake 760 B
################################################################################
# Copyright (c) 2021 in-tech GmbH
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
################################################################################
#
# Find Package Adapter for "Fastcov"
#
# - FASTCOV_EXECUTABLE: The executable
# - FASTCOV_FOUND: True if fastcov was found
#
include(FindPackageHandleStandardArgs)
find_program(FASTCOV_EXECUTABLE NAMES fastcov fastcov.py "Path to the fastcov executable")
find_package_handle_standard_args(Fastcov "Unable to locate fastcov" FASTCOV_EXECUTABLE)