FindGTK.cmake 578 Bytes
Newer Older
1
# - try to find GTK libraries
2 3
# Once done this will define
#
4
#  GTK_FOUND - system has GTK
Albert Astals Cid's avatar
Albert Astals Cid committed
5 6
#  GTK3_CFLAGS - the GTK CFlags
#  GTK3_LIBRARIES - Link these to use GTK
7 8
#
# Copyright 2008-2010 Pino Toscano, <pino@kde.org>
9 10 11 12 13 14
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

include(FindPackageHandleStandardArgs)

15
find_package(PkgConfig REQUIRED)
16

17
pkg_check_modules(GTK3 "gtk+-3.0>=3.8" "gdk-pixbuf-2.0>=2.8")
18

19
find_package_handle_standard_args(GTK DEFAULT_MSG GTK3_LIBRARIES GTK3_CFLAGS)