1 # - Try to find GooglePerfTools headers and libraries
3 # Usage of this module as follows:
5 # find_package(GooglePerfTools)
7 # Variables used by this module, they can change the default behaviour and need
8 # to be set before calling find_package:
10 # GooglePerfTools_ROOT_DIR Set this variable to the root installation of
11 # GooglePerfTools if the module has problems finding
12 # the proper installation path.
14 # Variables defined by this module:
16 # GooglePerfTools_FOUND System has GooglePerfTools libs/headers
17 # GooglePerfTools_LIBRARIES The GooglePerfTools libraries
18 # GooglePerfTools_INCLUDE_DIR The location of GooglePerfTools headers
20 find_path(GooglePerfTools_ROOT_DIR
21 NAMES include/google/profiler.h
24 find_path(GooglePerfTools_INCLUDE_DIR
25 NAMES google/profiler.h
26 HINTS ${GooglePerfTools_ROOT_DIR}
29 find_library(GooglePerfTools_PROFILER_LIBRARY
31 HINTS ${GooglePerfTools_ROOT_DIR}
34 set(GooglePerfTools_LIBRARIES ${GooglePerfTools_PROFILER_LIBRARY})
36 include(FindPackageHandleStandardArgs)
37 find_package_handle_standard_args(GooglePerfTools
38 "Try setting GooglePerfTools_ROOT_DIR to root of your gperftools installation"
39 GooglePerfTools_LIBRARIES
40 GooglePerfTools_INCLUDE_DIR
44 GooglePerfTools_ROOT_DIR
45 GooglePerfTools_LIBRARIES
46 GooglePerfTools_PROFILER_LIBRARY
47 GooglePerfTools_INCLUDE_DIR