mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04: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
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue