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

17
wayland/CMakeLists.txt Normal file
View file

@ -0,0 +1,17 @@
include_directories(
${PROTOCOLS_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
)
add_library(sway-wayland
buffers.c
pango.c
registry.c
window.c
)
target_link_libraries(sway-wayland
sway-common
sway-protocols
${PANGO_LIBRARIES}
)