summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2010-03-23 00:13:21 +0100
committerPino Toscano <pino@kde.org>2010-03-23 00:13:21 +0100
commitaf21b5ab366bfdda203c26a77f4ae6ed0e70f64e (patch)
treedf2b8375341aa3ed22586b7aafa50cf1e2ca9b68 /cmake
parent9b93ed5ce6712ec4cdf58148628e95685c289ef5 (diff)
[CMake] remove the (now) unneeded stuff from Find{GLIB,GDK,GTK}.cmake, and search for them
this way each bit (GLIB, GDK, and GTK) can be enabled/disabled independently from the others
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindGDK.cmake14
-rw-r--r--cmake/modules/FindGLIB.cmake14
-rw-r--r--cmake/modules/FindGTK.cmake14
3 files changed, 3 insertions, 39 deletions
diff --git a/cmake/modules/FindGDK.cmake b/cmake/modules/FindGDK.cmake
index 6b398768..cd642cf2 100644
--- a/cmake/modules/FindGDK.cmake
+++ b/cmake/modules/FindGDK.cmake
@@ -1,18 +1,10 @@
-# - try to find GLIB, GDK and GTK libraries
+# - try to find GDK libraries
# Once done this will define
#
-# GLIB_FOUND - system has GLib
-# GLIB2_CFLAGS - the GLib CFlags
-# GLIB2_LIBRARIES - Link these to use GLib
-#
# GDK_FOUND - system has GDK
# GDK2_CFLAGS - the GDK CFlags
# GDK2_LIBRARIES - Link these to use GDK
#
-# GTK_FOUND - system has GTK
-# GTK2_CFLAGS - the GTK CFlags
-# GTK2_LIBRARIES - Link these to use GTK
-#
# Copyright 2008-2010 Pino Toscano, <pino@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
@@ -23,12 +15,8 @@ include(FindPackageHandleStandardArgs)
if (NOT WIN32)
find_package(PkgConfig REQUIRED)
- pkg_check_modules(GLIB2 "glib-2.0>=${GLIB_REQUIRED}" "gobject-2.0>=${GLIB_REQUIRED}")
pkg_check_modules(GDK2 "gdk-2.0")
- pkg_check_modules(GTK2 "gtk+-2.0>=2.14" "gdk-pixbuf-2.0" "gthread-2.0" "gio-2.0")
- find_package_handle_standard_args(GLib DEFAULT_MSG GLIB2_LIBRARIES GLIB2_CFLAGS)
find_package_handle_standard_args(GDK DEFAULT_MSG GDK2_LIBRARIES GDK2_CFLAGS)
- find_package_handle_standard_args(GTK DEFAULT_MSG GTK2_LIBRARIES GTK2_CFLAGS)
endif(NOT WIN32)
diff --git a/cmake/modules/FindGLIB.cmake b/cmake/modules/FindGLIB.cmake
index 6b398768..15fb0c75 100644
--- a/cmake/modules/FindGLIB.cmake
+++ b/cmake/modules/FindGLIB.cmake
@@ -1,18 +1,10 @@
-# - try to find GLIB, GDK and GTK libraries
+# - try to find the GLIB libraries
# Once done this will define
#
# GLIB_FOUND - system has GLib
# GLIB2_CFLAGS - the GLib CFlags
# GLIB2_LIBRARIES - Link these to use GLib
#
-# GDK_FOUND - system has GDK
-# GDK2_CFLAGS - the GDK CFlags
-# GDK2_LIBRARIES - Link these to use GDK
-#
-# GTK_FOUND - system has GTK
-# GTK2_CFLAGS - the GTK CFlags
-# GTK2_LIBRARIES - Link these to use GTK
-#
# Copyright 2008-2010 Pino Toscano, <pino@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
@@ -24,11 +16,7 @@ if (NOT WIN32)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB2 "glib-2.0>=${GLIB_REQUIRED}" "gobject-2.0>=${GLIB_REQUIRED}")
- pkg_check_modules(GDK2 "gdk-2.0")
- pkg_check_modules(GTK2 "gtk+-2.0>=2.14" "gdk-pixbuf-2.0" "gthread-2.0" "gio-2.0")
find_package_handle_standard_args(GLib DEFAULT_MSG GLIB2_LIBRARIES GLIB2_CFLAGS)
- find_package_handle_standard_args(GDK DEFAULT_MSG GDK2_LIBRARIES GDK2_CFLAGS)
- find_package_handle_standard_args(GTK DEFAULT_MSG GTK2_LIBRARIES GTK2_CFLAGS)
endif(NOT WIN32)
diff --git a/cmake/modules/FindGTK.cmake b/cmake/modules/FindGTK.cmake
index 6b398768..4d66bd3a 100644
--- a/cmake/modules/FindGTK.cmake
+++ b/cmake/modules/FindGTK.cmake
@@ -1,14 +1,6 @@
-# - try to find GLIB, GDK and GTK libraries
+# - try to find GTK libraries
# Once done this will define
#
-# GLIB_FOUND - system has GLib
-# GLIB2_CFLAGS - the GLib CFlags
-# GLIB2_LIBRARIES - Link these to use GLib
-#
-# GDK_FOUND - system has GDK
-# GDK2_CFLAGS - the GDK CFlags
-# GDK2_LIBRARIES - Link these to use GDK
-#
# GTK_FOUND - system has GTK
# GTK2_CFLAGS - the GTK CFlags
# GTK2_LIBRARIES - Link these to use GTK
@@ -23,12 +15,8 @@ include(FindPackageHandleStandardArgs)
if (NOT WIN32)
find_package(PkgConfig REQUIRED)
- pkg_check_modules(GLIB2 "glib-2.0>=${GLIB_REQUIRED}" "gobject-2.0>=${GLIB_REQUIRED}")
- pkg_check_modules(GDK2 "gdk-2.0")
pkg_check_modules(GTK2 "gtk+-2.0>=2.14" "gdk-pixbuf-2.0" "gthread-2.0" "gio-2.0")
- find_package_handle_standard_args(GLib DEFAULT_MSG GLIB2_LIBRARIES GLIB2_CFLAGS)
- find_package_handle_standard_args(GDK DEFAULT_MSG GDK2_LIBRARIES GDK2_CFLAGS)
find_package_handle_standard_args(GTK DEFAULT_MSG GTK2_LIBRARIES GTK2_CFLAGS)
endif(NOT WIN32)