2 # Once done, this will define
4 # BUNDLE_FOUND - system has libbundle-0
5 # BUNDLE_INCLUDE_DIRS - the libbundle-0 include directories
6 # BUNDLE_LIBRARIES - link these to use libbundle-0
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(BUNDLE_PKGCONF bundle)
14 find_path(BUNDLE_INCLUDE_DIR
16 PATHS ${BUNDLE_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(BUNDLE_LIBRARY
23 PATHS ${BUNDLE_PKGCONF_LIBRARY_DIRS}
26 # Set the include dir variables and the libraries and let libfind_process do the rest.
27 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
28 set(BUNDLE_PROCESS_INCLUDES BUNDLE_INCLUDE_DIR BUNDLE_INCLUDE_DIRS)
29 set(BUNDLE_PROCESS_LIBS BUNDLE_LIBRARY BUNDLE_LIBRARIES)
30 libfind_process(BUNDLE)