1
# - try to find the GLIB libraries
2
# Once done this will define
4
# GLIB_FOUND - system has GLib
5
# GLIB2_CFLAGS - the GLib CFlags
6
# GLIB2_LIBRARIES - Link these to use GLib
8
# Copyright 2008-2010 Pino Toscano, <pino@kde.org>
10
# Redistribution and use is allowed according to the terms of the BSD license.
11
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
include(FindPackageHandleStandardArgs)
16
find_package(PkgConfig REQUIRED)
18
pkg_check_modules(GLIB2 "glib-2.0>=${GLIB_REQUIRED}" "gobject-2.0>=${GLIB_REQUIRED}")
20
find_package_handle_standard_args(GLib DEFAULT_MSG GLIB2_LIBRARIES GLIB2_CFLAGS)