mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
This commit is contained in:
parent
f76b7f5385
commit
cce9c338c0
9 changed files with 93 additions and 78 deletions
17
wayland/CMakeLists.txt
Normal file
17
wayland/CMakeLists.txt
Normal 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}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue