1 # - Try to find Geoclue
2 # Once done, this will define
4 # Geoclue_FOUND - system has libgeoclue
5 # Geoclue_INCLUDE_DIRS - the libgeoclue include directories
6 # Geoclue_LIBRARIES - link these to use libfms-util
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(Geoclue_PKGCONF geoclue)
14 find_path(Geoclue_INCLUDE_DIR
15 NAMES geoclue-master.h
16 PATHS ${Geoclue_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(Geoclue_LIBRARY
23 PATHS ${Geoclue_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(Geoclue_PROCESS_INCLUDES Geoclue_INCLUDE_DIR Geoclue_INCLUDE_DIRS)
29 set(Geoclue_PROCESS_LIBS Geoclue_LIBRARY Geoclue_LIBRARIES)
30 libfind_process(Geoclue)