Revision 128a1fa0aaed582076192e1bdf11d4f15ced2288 authored by Ulrich Pegelow on 28 October 2016, 09:50:36 UTC, committed by Ulrich Pegelow on 28 October 2016, 09:50:36 UTC
1 parent 9eecebc
Raw File
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
  HINTS ${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.
libfind_process(GIO)

back to top