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 8 include(LibFindMacros) 9 10 # Dependencies 11 libfind_package(GIO Glib) 12 13 # Use pkg-config to get hints about paths 14 libfind_pkg_check_modules(GIO_PKGCONF gio-2.0) 15 16 # Find the library 17 find_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. 24 set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS) 25 set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES) 26 libfind_process(GIO) 27 28