aboutsummaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-12-02 07:57:53 +0200
committerFurkan Sahin <furkan-dev@proton.me>2015-12-02 07:57:53 +0200
commit143aaac291d88c1dabd9323d16139ee3c10cb743 (patch)
tree717052d8d88f3fd14d26566daa520dbdd3a452fe /protocols
parentee4d54e48ec145350f045896ebc6af6154a3ea2e (diff)
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt
new file mode 100644
index 00000000..07becc36
--- /dev/null
+++ b/protocols/CMakeLists.txt
@@ -0,0 +1,22 @@
+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
+)
+
+add_library(sway-protocols
+ ${proto-client-xdg-shell}
+ ${proto-client-desktop-shell}
+ ${proto-server-desktop-shell}
+ )
+
+set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE)