]>
Commit | Line | Data |
---|---|---|
1 | # Copyright Louis Dionne 2013-2016 | |
2 | # Distributed under the Boost Software License, Version 1.0. | |
3 | # (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
4 | # | |
5 | # | |
6 | # This CMake module finds the Valgrind executable. This module sets the | |
7 | # following CMake variables: | |
8 | # | |
9 | # Valgrind_FOUND | |
10 | # Set to 1 when Valgrind is found, 0 otherwise. | |
11 | # | |
12 | # Valgrind_EXECUTABLE | |
13 | # If the Valgrind executable is found, this is set to its full path. | |
14 | # Otherwise this is not set. | |
15 | # | |
16 | # | |
17 | # The following variables can be used to give hints about search locations: | |
18 | # | |
19 | # Valgrind_EXECUTABLE | |
20 | # The path to the Valgrind executable. | |
21 | ||
22 | if (NOT EXISTS "${Valgrind_EXECUTABLE}") | |
23 | find_program(Valgrind_EXECUTABLE NAMES valgrind | |
24 | DOC "Full path to the Valgrind executable.") | |
25 | endif() | |
26 | ||
27 | include(FindPackageHandleStandardArgs) | |
28 | find_package_handle_standard_args(Valgrind | |
29 | FOUND_VAR Valgrind_FOUND | |
30 | REQUIRED_VARS Valgrind_EXECUTABLE) |