swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Raw File
Tip revision: 4f7fea49875b1b3c29187ee427c58289282982b6 authored by Boucman on 13 April 2013, 18:10:51 UTC
Merge remote-tracking branch 'origin/master' into lua
Tip revision: 4f7fea4
FindGIO.cmake
# - Try to find GIO 2.0
# Once done, this will define
#
#  GIO_FOUND - system has GIO
#  GIO_INCLUDE_DIRS - the GIO include directories
#  GIO_LIBRARIES - link these to use GIO

include(LibFindMacros)

# Dependencies
libfind_package(GIO Glib)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(GIO_PKGCONF gio-2.0)

# Find the library
find_library(GIO_LIBRARY
  NAMES gio-2.0
  PATHS ${GIO_PKGCONF_LIBRARY_DIRS}
)

# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS)
set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES)
libfind_process(GIO)

back to top