diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2021-03-03 13:23:03 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2021-03-03 13:23:03 +0300 |
commit | 9945363202c92cf749ef6fd17f25b758e10d3f78 (patch) | |
tree | e59bbd63ac5304b8c21b6c7761f2c1fe1de7c655 /CMakeLists.txt | |
parent | 0ad90e24065c80b9941b6db5147cd5708a63c4f1 (diff) |
Adding wayland libs as a build dependency
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ebe088e54..a64b8a7e8 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) +pkg_check_modules(wayland-cursor REQUIRED wayland-cursor) +pkg_check_modules(wayland-egl REQUIRED wayland-egl) +include_directories(${wayland-client_INCLUDE_DIR}) + +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} + ${wayland-cursor_LIBRARIES} + ${wayland-egl_LIBRARIES} +) set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |