aboutsummaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-02 05:34:18 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-02 05:34:18 -0500
commit7a1c8c2939c8581bb47323513b91a94aebf62b36 (patch)
tree717052d8d88f3fd14d26566daa520dbdd3a452fe /protocols
parentf76b7f5385f79f9e004a096ed4896725cac30f9c (diff)
parentcce9c338c07e889aa82db806f0dddf2f997edbb6 (diff)
Merge pull request #291 from christophgysin/libs
cmake: build common code only once
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)