2 # Once done, this will define
4 # iBus_FOUND - system has iBus
5 # iBus_INCLUDE_DIRS - the iBus include directories
6 # iBus_LIBRARIES - link these to use iBus
12 # Use pkg-config to get hints about paths
13 libfind_pkg_check_modules(iBus_PKGCONF ibus-1.0)
16 find_path(iBus_INCLUDE_DIR
18 PATHS ${iBus_PKGCONF_INCLUDE_DIRS}
21 # Finally the library itself
22 find_library(iBus_LIBRARY
24 PATHS ${iBus_PKGCONF_LIBRARY_DIRS}
27 # Set the include dir variables and the libraries and let libfind_process do the
29 # NOTE: Singular variables for this library, plural for libraries this this lib
31 set(iBus_PROCESS_INCLUDES iBus_INCLUDE_DIR)
32 set(iBus_PROCESS_LIBS iBus_LIBRARY)