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/. --- swaygrab/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'swaygrab/CMakeLists.txt') 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 @@ -file(GLOB sources *.c) -file(GLOB common ../common/*.c) - add_executable(swaygrab - ${sources} - ${common} + main.c ) target_link_libraries(swaygrab + sway-common rt ) -- cgit v1.2.3-54-g00ecf