Commit 4c2c59a4 authored by Bart van der Velden's avatar Bart van der Velden

Find packages Lcov and gcovr, but silently (#57)

parent 303eff12
......@@ -72,10 +72,8 @@ set(TEST_DATA_PATH ${CMAKE_CURRENT_SOURCE_DIR}/data/testdata)
#-----------------------------------------------------------------------------
# Enable modules
#-----------------------------------------------------------------------------
# Global compiler flags
include(PedanticCompilerWarnings)
include(EnableCoverageReport) # Enable settings for coverage calculation
include(PedanticCompilerWarnings) # Global compiler flags
#-----------------------------------------------------------------------------
# Fix for compiling Google Mock and Test with Visual Studio 2012, see:
......
# - Creates a special coverage build type and target on GCC.
#
# Defines a function ENABLE_COVERAGE_REPORT which generates the coverage target
# for selected targets. Optional arguments to this function are used to filter
# unwanted results using globbing expressions. Moreover targets with tests for
# the source code can be specified to trigger regenerating the report if the
# test has changed
#
# ENABLE_COVERAGE_REPORT(TARGETS target... [FILTER filter...] [TESTS test targets...])
#
# To generate a coverage report first build the project with
# CMAKE_BUILD_TYPE=coverage, then call make test and afterwards make coverage.
#
# The coverage report is based on gcov. Depending on the availability of lcov
# a HTML report will be generated and/or an XML report of gcovr is found.
# The generated coverage target executes all found solutions. Special targets
# exist to create e.g. only the xml report: coverage-xml.
#
# Copyright (C) 2010 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de>
#
# This file may be licensed under the terms of the
# GNU Lesser General Public License Version 3 (the ``LGPL''),
# or (at your option) any later version.
#
# Software distributed under the License is distributed
# on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
# express or implied. See the LGPL for the specific language
# governing rights and limitations.
#
# You should have received a copy of the LGPL along with this
# program. If not, go to http://www.gnu.org/licenses/lgpl.html
# or write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# The development of this software was supported by:
# CoR-Lab, Research Institute for Cognition and Robotics
# Bielefeld University
#
# Adapted by Bart van der Velden (bart@muckingabout.eu)
find_package(Lcov QUIET)
find_package(gcovr QUIET)
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