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 /swaymsg | |
parent | f76b7f5385f79f9e004a096ed4896725cac30f9c (diff) |
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/swaymsg/CMakeLists.txt b/swaymsg/CMakeLists.txt index 7616d942..2481b280 100644 --- a/swaymsg/CMakeLists.txt +++ b/swaymsg/CMakeLists.txt @@ -1,11 +1,11 @@ -file(GLOB sources *.c) -file(GLOB common ../common/*.c) - add_executable(swaymsg - ${sources} - ${common} + main.c ) +target_link_libraries(swaymsg + sway-common + ) + install( TARGETS swaymsg RUNTIME |