From cce9c338c07e889aa82db806f0dddf2f997edbb6 Mon Sep 17 00:00:00 2001 From: Christoph Gysin Date: Wed, 2 Dec 2015 07:57:53 +0200 Subject: cmake: build common code only once This creates (static) libraries for protocols/, common/, and wayland/. --- protocols/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 protocols/CMakeLists.txt (limited to 'protocols') 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) -- cgit v1.2.3-70-g09d2