1 # - Try to find Tizen-Location-Manager
2 # Once done, this will define
4 # Tizen-Location-Manager_FOUND - system has location-manager
5 # Tizen-Location-Manager_INCLUDE_DIRS - the location-manager include directories
6 # Tizen-Location-Manager_LIBRARIES - link these to use location-manager
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(Tizen-Location-Manager_PKGCONF capi-location-manager)
14 find_path(Tizen-Location-Manager_INCLUDE_DIR
16 PATHS ${Tizen-Location-Manager_PKGCONF_INCLUDE_DIRS}
17 PATH_SUFFIXES location
20 # Finally the library itself
21 find_library(Tizen-Location-Manager_LIBRARY
22 NAMES capi-location-manager
23 PATHS ${Tizen-Location-Manager_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(Tizen-Location-Manager_PROCESS_INCLUDES Tizen-Location-Manager_INCLUDE_DIR Tizen-Location-Manager_INCLUDE_DIRS)
29 set(Tizen-Location-Manager_PROCESS_LIBS Tizen-Location-Manager_LIBRARY Tizen-Location-Manager_LIBRARIES)
30 libfind_process(Tizen-Location-Manager)