1 # - Try to find GIO 2.0
2 # Once done, this will define
4 # GIO_FOUND - system has GIO
5 # GIO_INCLUDE_DIRS - the GIO include directories
6 # GIO_LIBRARIES - link these to use GIO
11 libfind_package(GIO Glib)
13 # Use pkg-config to get hints about paths
14 libfind_pkg_check_modules(GIO_PKGCONF gio-2.0)
17 find_library(GIO_LIBRARY
19 PATHS ${GIO_PKGCONF_LIBRARY_DIRS}
22 # Set the include dir variables and the libraries and let libfind_process do the rest.
23 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
24 set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS)
25 set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES)