2 # Once done, this will define
4 # CAPI_FOUND - system has capi-appfw-application
5 # CAPI_INCLUDE_DIRS - the capi-appfw-application include directories
6 # CAPI_LIBRARIES - link these to use capi-appfw-application
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(CAPI_PKGCONF capi-appfw-application)
14 find_path(CAPI_INCLUDE_DIR
16 PATHS ${CAPI_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(CAPI_LIBRARY
22 NAMES capi-appfw-application
23 PATHS ${CAPI_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(CAPI_PROCESS_INCLUDES CAPI_INCLUDE_DIR CAPI_INCLUDE_DIRS)
29 set(CAPI_PROCESS_LIBS CAPI_LIBRARY CAPI_LIBRARIES)