diff options
author | Christoph Gysin <christoph.gysin@gmail.com> | 2015-12-02 07:57:53 +0200 |
---|---|---|
committer | Christoph Gysin <christoph.gysin@gmail.com> | 2015-12-02 12:15:57 +0200 |
commit | cce9c338c07e889aa82db806f0dddf2f997edbb6 (patch) | |
tree | 717052d8d88f3fd14d26566daa520dbdd3a452fe /protocols/CMakeLists.txt | |
parent | Merge pull request #290 from christophgysin/cmake (diff) | |
download | sway-cce9c338c07e889aa82db806f0dddf2f997edbb6.tar.gz sway-cce9c338c07e889aa82db806f0dddf2f997edbb6.tar.zst sway-cce9c338c07e889aa82db806f0dddf2f997edbb6.zip |
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
Diffstat (limited to 'protocols/CMakeLists.txt')
-rw-r--r-- | protocols/CMakeLists.txt | 22 |
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 @@ | |||
1 | include(Wayland) | ||
2 | |||
3 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-xdg-shell | ||
4 | xdg-shell.xml | ||
5 | xdg-shell | ||
6 | ) | ||
7 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-desktop-shell | ||
8 | desktop-shell.xml | ||
9 | desktop-shell | ||
10 | ) | ||
11 | WAYLAND_ADD_PROTOCOL_SERVER(proto-server-desktop-shell | ||
12 | desktop-shell.xml | ||
13 | desktop-shell | ||
14 | ) | ||
15 | |||
16 | add_library(sway-protocols | ||
17 | ${proto-client-xdg-shell} | ||
18 | ${proto-client-desktop-shell} | ||
19 | ${proto-server-desktop-shell} | ||
20 | ) | ||
21 | |||
22 | set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE) | ||