/+junk/libgego

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/libgego

« back to all changes in this revision

Viewing changes to cmake/FindGLIB.cmake

  • Committer: Gustav Hartvigsson
  • Date: 2015-06-01 20:38:00 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150601203800-ymkb9tmijhd4dkby
* Initial code.
* Bulding does not work.

Show diffs side-by-side

added added

removed removed

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