2 # Once done, this will define
4 # EFREET_FOUND - system has efreet
5 # EFREET_INCLUDE_DIRS - the efreet include directories
6 # EFREET_LIBRARIES - link these to use efreet
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(EFREET_PKGCONF efreet)
14 find_path(EFREET_INCLUDE_DIR
16 PATHS ${EFREET_PKGCONF_INCLUDE_DIRS}
19 # Finally the library itself
20 find_library(EFREET_LIBRARY
22 PATHS ${EFREET_PKGCONF_LIBRARY_DIRS}
25 # Set the include dir variables and the libraries and let libfind_process do the rest.
26 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
27 set(EFREET_PROCESS_INCLUDES EFREET_INCLUDE_DIR EFREET_INCLUDE_DIRS)
28 set(EFREET_PROCESS_LIBS EFREET_LIBRARY EFREET_LIBRARIES)
29 libfind_process(EFREET)