wayland: Add keyboard support

Adds libxkbcommon as a dependency when enabling the Wayland backend.
This commit is contained in:
Jonas Ådahl
2014-06-29 23:09:21 +02:00
parent 2f71bfc152
commit 9ac854b7bb
5 changed files with 297 additions and 8 deletions
+5
View File
@@ -301,6 +301,11 @@ if (_GLFW_WAYLAND)
list(APPEND glfw_INCLUDE_DIRS ${WAYLAND_INCLUDE_DIR})
list(APPEND glfw_LIBRARIES ${WAYLAND_LIBRARIES} -pthread)
find_package(XKBCommon REQUIRED)
set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} libxkbcommon")
list(APPEND glfw_INCLUDE_DIRS ${XKBCOMMON_INCLUDE_DIRS})
list(APPEND glfw_LIBRARIES ${XKBCOMMON_LIBRARY})
find_library(MATH_LIBRARY m)
mark_as_advanced(MATH_LIBRARY)
if (MATH_LIBRARY)