Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGiovanni Panozzo <giovanni@panozzo.it>2018-02-16 01:40:31 +0300
committerGiovanni Panozzo <giovanni@panozzo.it>2018-02-16 01:40:31 +0300
commit644cd140a387c7b5d3805b8af9554e241d5d2954 (patch)
tree41f5eee65da1dddf2f9d76af97a8c83a1337ff01 /cmake
parent566cdf63ffc9a9642ac1a9070e0b854dc85f6b20 (diff)
Search for wayland-client.h include dir
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindGTK3.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake
index 6e32c7355..f69a3349c 100644
--- a/cmake/FindGTK3.cmake
+++ b/cmake/FindGTK3.cmake
@@ -1,6 +1,7 @@
# Remmina - The GTK+ Remote Desktop Client
#
# Copyright (C) 2011 Marc-Andre Moreau
+# Copyright (C) 2018 Antenore Gatta, Giovanni Panozzo
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -51,6 +52,12 @@ find_path(GDKPIXBUF_INCLUDE_DIR gdk-pixbuf/gdk-pixbuf.h
find_library(GDKPIXBUF_LIBRARY NAMES gdk_pixbuf-2.0
HINTS ${PC_GDKPIXBUF_LIBDIR} ${PC_GDKPIXBUF_LIBRARY_DIRS})
+# Wayland client, if GTK3's pkg-config suggests it. We only need
+# the include dir
+
+find_path(WAYLAND_INCLUDE_DIR wayland-client.h
+ PATHS ${PC_GTK3_INCLUDE_DIRS})
+
# Glib
find_required_package(GLIB2)
@@ -108,6 +115,9 @@ if(_GTK3_found_all)
set(GTK3_LIBRARIES ${GTK3_LIBRARY} ${GDK3_LIBRARY} ${GLIB2_LIBRARIES} ${PANGO_LIBRARY} ${CAIRO_LIBRARY} ${GDKPIXBUF_LIBRARY} ${ATK_LIBRARY})
set(GTK3_INCLUDE_DIRS ${GTK3_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ${PANGO_INCLUDE_DIR} ${CAIRO_INCLUDE_DIR} ${GDKPIXBUF_INCLUDE_DIR} ${ATK_INCLUDE_DIR})
+ if (WAYLAND_INCLUDE_DIR)
+ set(GTK3_INCLUDE_DIRS ${GTK3_INCLUDE_DIRS} ${WAYLAND_INCLUDE_DIR})
+ endif()
mark_as_advanced(GTK3_INCLUDE_DIR GTK3_LIBRARY)