1 # - Find JeMalloc library
2 # Find the native JeMalloc includes and library
4 # JEMALLOC_INCLUDE_DIR - where to find jemalloc.h, etc.
5 # JEMALLOC_LIBRARIES - List of libraries when using jemalloc.
6 # JEMALLOC_FOUND - True if jemalloc found.
8 find_path(JEMALLOC_INCLUDE_DIR
9 NAMES jemalloc/jemalloc.h
10 HINTS ${JEMALLOC_ROOT_DIR}/include)
12 find_library(JEMALLOC_LIBRARIES
14 HINTS ${JEMALLOC_ROOT_DIR}/lib)
16 include(FindPackageHandleStandardArgs)
17 find_package_handle_standard_args(jemalloc DEFAULT_MSG JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR)