mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 23:47:21 +01:00
bcdeb72189
When no type is given, it depends on BUILD_SHARED_LIBS value which is not desired in this case.
34 lines
753 B
CMake
34 lines
753 B
CMake
include(Wayland)
|
|
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-xdg-shell
|
|
xdg-shell.xml
|
|
xdg-shell
|
|
)
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-desktop-shell
|
|
desktop-shell.xml
|
|
desktop-shell
|
|
)
|
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-server-desktop-shell
|
|
desktop-shell.xml
|
|
desktop-shell
|
|
)
|
|
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-swaylock
|
|
swaylock.xml
|
|
swaylock
|
|
)
|
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock
|
|
swaylock.xml
|
|
swaylock
|
|
)
|
|
|
|
add_library(sway-protocols STATIC
|
|
${proto-client-xdg-shell}
|
|
${proto-client-desktop-shell}
|
|
${proto-server-desktop-shell}
|
|
${proto-client-swaylock}
|
|
${proto-server-swaylock}
|
|
)
|
|
|
|
set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE)
|
|
INCLUDE_DIRECTORIES(${WAYLAND_INCLUDE_DIR} ${XKBCOMMON_INCLUDE_DIRS})
|