Debian Codegraph @

cmake/Findgcovr.cmake

raw
1 # - Find gcovr scrip
2 # Will define:
3 #
4 # GCOVR_EXECUTABLE - the gcovr script
5 #
6 # Uses:
7 #
8 # GCOVR_ROOT - root to search for the script
9 #
10 # Copyright (C) 2011 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de>
11 #
12 # This program is free software; you can redistribute it
13 # and/or modify it under the terms of the GNU General
14 # Public License as published by the Free Software Foundation;
15 # either version 2, or (at your option)
16 # any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23
24 INCLUDE(FindPackageHandleStandardArgs)
25
26 FIND_PROGRAM(GCOVR_EXECUTABLE gcovr HINTS ${GCOVR_ROOT} "${GCOVR_ROOT}/bin")
27
28 FIND_PACKAGE_HANDLE_STANDARD_ARGS(gcovr DEFAULT_MSG GCOVR_EXECUTABLE)
29
30 # only visible in advanced view
31 MARK_AS_ADVANCED(GCOVR_EXECUTABLE)