2 # Once done, this will define
4 # VConf_FOUND - system has libvconf-0
5 # VConf_INCLUDE_DIRS - the libvconf-0 include directories
6 # VConf_LIBRARIES - link these to use libvconf-0
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(VConf_PKGCONF vconf)
14 find_path(VConf_INCLUDE_DIR
16 PATHS ${VConf_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(VConf_LIBRARY
23 PATHS ${VConf_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(VConf_PROCESS_INCLUDES VConf_INCLUDE_DIR VConf_INCLUDE_DIRS)
29 set(VConf_PROCESS_LIBS VConf_LIBRARY VConf_LIBRARIES)
30 libfind_process(VConf)