summaryrefslogtreecommitdiff
path: root/lib/renderers/wayland/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/renderers/wayland/CMakeLists.txt')
-rw-r--r--lib/renderers/wayland/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/renderers/wayland/CMakeLists.txt b/lib/renderers/wayland/CMakeLists.txt
index 01c3f09..4f93d18 100644
--- a/lib/renderers/wayland/CMakeLists.txt
+++ b/lib/renderers/wayland/CMakeLists.txt
@@ -3,8 +3,10 @@ FIND_PACKAGE(Wayland)
if (WAYLAND_FOUND)
FIND_PACKAGE(Cairo REQUIRED)
FIND_PACKAGE(XKBCommon REQUIRED)
- INCLUDE_DIRECTORIES(${WAYLAND_CLIENT_INCLUDE_DIR} ${XKBCOMMON_INCLUDE_DIR} ${CAIRO_INCLUDE_DIRECTORIES})
- ADD_LIBRARY(bemenu-renderer-wayland SHARED wayland.c)
+ INCLUDE(Wayland)
+ WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell)
+ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${WAYLAND_CLIENT_INCLUDE_DIR} ${XKBCOMMON_INCLUDE_DIR} ${CAIRO_INCLUDE_DIRECTORIES})
+ ADD_LIBRARY(bemenu-renderer-wayland SHARED wayland.c registry.c window.c ${proto-xdg-shell})
SET_TARGET_PROPERTIES(bemenu-renderer-wayland PROPERTIES PREFIX "")
TARGET_LINK_LIBRARIES(bemenu-renderer-wayland ${WAYLAND_CLIENT_LIBRARIES} ${XKBCOMMON_LIBRARIES} ${CAIRO_LIBRARIES})
INSTALL(TARGETS bemenu-renderer-wayland DESTINATION lib/bemenu)