2013-04-17 00:00:43 -04:00
|
|
|
# Find Valgrind.
|
|
|
|
#
|
|
|
|
# This module defines:
|
|
|
|
# VALGRIND_INCLUDE_DIR, where to find valgrind/memcheck.h, etc.
|
|
|
|
# VALGRIND_PROGRAM, the valgrind executable.
|
|
|
|
# VALGRIND_FOUND, If false, do not try to use valgrind.
|
|
|
|
#
|
|
|
|
# If you have valgrind installed in a non-standard place, you can define
|
|
|
|
# VALGRIND_PREFIX to tell cmake where it is.
|
|
|
|
|
2013-04-17 00:00:57 -04:00
|
|
|
find_path(VALGRIND_INCLUDE_DIR valgrind/memcheck.h)
|
|
|
|
find_program(VALGRIND_PROGRAM NAMES valgrind)
|
2013-04-17 00:00:43 -04:00
|
|
|
|
|
|
|
find_package_handle_standard_args(VALGRIND DEFAULT_MSG
|
|
|
|
VALGRIND_INCLUDE_DIR
|
|
|
|
VALGRIND_PROGRAM)
|
|
|
|
|
2013-04-17 00:00:54 -04:00
|
|
|
mark_as_advanced(VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM)
|