mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
decorations: cmake: compact CMakeLists.txt by using foreach()
This commit is contained in:
parent
c6b83ac7dc
commit
00679dbeeb
1 changed files with 6 additions and 14 deletions
|
@ -6,19 +6,11 @@ target_include_directories(decoration-sdk INTERFACE ${CAIRO_INCLUDE_DIRS})
|
||||||
|
|
||||||
set(CMAKE_SHARED_MODULE_PREFIX decoration_)
|
set(CMAKE_SHARED_MODULE_PREFIX decoration_)
|
||||||
|
|
||||||
add_library(background MODULE background.c)
|
set(decorations background stack underline)
|
||||||
target_link_libraries(background decoration-sdk)
|
|
||||||
|
|
||||||
add_library(stack MODULE stack.c)
|
foreach (deco ${decorations})
|
||||||
target_link_libraries(stack decoration-sdk)
|
add_library(${deco} MODULE ${deco}.c)
|
||||||
|
target_link_libraries(${deco} decoration-sdk)
|
||||||
|
endforeach ()
|
||||||
|
|
||||||
add_library(underline MODULE underline.c)
|
install(TARGETS ${decorations} DESTINATION lib/f00bar)
|
||||||
target_link_libraries(underline decoration-sdk)
|
|
||||||
|
|
||||||
install(
|
|
||||||
TARGETS
|
|
||||||
background
|
|
||||||
stack
|
|
||||||
underline
|
|
||||||
|
|
||||||
DESTINATION lib/f00bar)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue