Adding wayland include dirs
@jweberhofer Can you have a look?
This is based on what has been already merged in master, a full diff with 1.4.12 is:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ebe088e5..939ce9b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -364,7 +364,27 @@ if(NOT GTK3_FOUND)
message(FATAL_ERROR "GTK3 library not found")
endif(NOT GTK3_FOUND)
include_directories(${GTK3_INCLUDE_DIRS})
-set(GTK_LIBRARIES ${GTK3_LIBRARY} ${GDK3_LIBRARY} ${GDKPixbuf_LIBRARY} ${Pango_LIBRARY} ${Cairo_LIBRARY} ${GObject_LIBRARY} ${GLib_LIBRARY} ${GIO_LIBRARY} ${Gmodule_LIBRARIES} ${GMODULE_LIBRARY})
+
+pkg_check_modules(wayland-client REQUIRED wayland-client)
+if(NOT wayland-client_FOUND)
+ message(FATAL_ERROR "Wayland library not found")
+endif(NOT wayland-client_FOUND)
+
+include_directories(${wayland-client_INCLUDE_DIRS})
+
+set(GTK_LIBRARIES
+ ${GTK3_LIBRARY}
+ ${GDK3_LIBRARY}
+ ${GDKPixbuf_LIBRARY}
+ ${Pango_LIBRARY}
+ ${Cairo_LIBRARY}
+ ${GObject_LIBRARY}
+ ${GLib_LIBRARY}
+ ${GIO_LIBRARY}
+ ${Gmodule_LIBRARIES}
+ ${GMODULE_LIBRARY}
+ ${wayland-client_LIBRARIES}
+)
Should fix #2427 (closed)