cmake: build common code only once

This creates (static) libraries for protocols/, common/, and wayland/.
This commit is contained in:
Christoph Gysin 2015-12-02 07:57:53 +02:00
parent f76b7f5385
commit cce9c338c0
9 changed files with 93 additions and 78 deletions

View file

@ -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
)