diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-09-11 10:54:20 -0700 |
---|---|---|
committer | Mathias Preiner <mathias.preiner@gmail.com> | 2018-09-22 16:30:59 -0700 |
commit | 6f564edc3baed8cf1c4bbd0467c29dfca3a120b6 (patch) | |
tree | 088b5276e6322eb893164ea95ea9587fab183e53 /cmake | |
parent | 7be22fb6cac25031efc242708719555624f54791 (diff) |
cmake: Add module finder for Valgrind.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindValgrind.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindValgrind.cmake b/cmake/FindValgrind.cmake new file mode 100644 index 000000000..4c5cb1d28 --- /dev/null +++ b/cmake/FindValgrind.cmake @@ -0,0 +1,11 @@ +# Find Valgrind +# Valgrind_FOUND - system has Valgrind lib +# Valgrind_INCLUDE_DIR - the Valgrind include directory +# +# Note: We only require the valgrind/memcheck.h header, so we don't check if +# the valgrind executable is installed. + +find_path(Valgrind_INCLUDE_DIR NAMES valgrind/memcheck.h) + +find_package_handle_standard_args(Valgrind REQUIRED_VARS Valgrind_INCLUDE_DIR) +mark_as_advanced(Valgrind_INCLUDE_DIR) |