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 /swaygrab/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 'swaygrab/CMakeLists.txt')
-rw-r--r-- | swaygrab/CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/swaygrab/CMakeLists.txt b/swaygrab/CMakeLists.txt index 77d96412..d5468cda 100644 --- a/swaygrab/CMakeLists.txt +++ b/swaygrab/CMakeLists.txt | |||
@@ -1,12 +1,9 @@ | |||
1 | file(GLOB sources *.c) | ||
2 | file(GLOB common ../common/*.c) | ||
3 | |||
4 | add_executable(swaygrab | 1 | add_executable(swaygrab |
5 | ${sources} | 2 | main.c |
6 | ${common} | ||
7 | ) | 3 | ) |
8 | 4 | ||
9 | target_link_libraries(swaygrab | 5 | target_link_libraries(swaygrab |
6 | sway-common | ||
10 | rt | 7 | rt |
11 | ) | 8 | ) |
12 | 9 | ||