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/. --- swaymsg/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'swaymsg') 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 -- cgit v1.2.3