2 # Once done, this will define
4 # AUL_FOUND - system has libaul-1
5 # AUL_INCLUDE_DIRS - the libaul-1 include directories
6 # AUL_LIBRARIES - link these to use libaul-1
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(AUL_PKGCONF aul)
14 find_path(AUL_INCLUDE_DIR
16 PATHS ${AUL_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(AUL_LIBRARY
23 PATHS ${AUL_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(AUL_PROCESS_INCLUDES AUL_INCLUDE_DIR AUL_INCLUDE_DIRS)
29 set(AUL_PROCESS_LIBS AUL_LIBRARY AUL_LIBRARIES)