1# - Try to find GIO 2.0 2# Once done, this will define 3# 4# GIO_FOUND - system has GIO 5# GIO_INCLUDE_DIRS - the GIO include directories 6# GIO_LIBRARIES - link these to use GIO 7 8include(LibFindMacros) 9 10# Dependencies 11libfind_package(GIO Glib) 12 13# Use pkg-config to get hints about paths 14libfind_pkg_check_modules(GIO_PKGCONF gio-2.0) 15 16# Find the library 17find_library(GIO_LIBRARY 18 NAMES gio-2.0 19 PATHS ${GIO_PKGCONF_LIBRARY_DIRS} 20) 21 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. 24set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS) 25set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES) 26libfind_process(GIO) 27 28