mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
make gdk-pixbuf dependency really optional
This commit is contained in:
parent
66554698a0
commit
21014e606b
9 changed files with 62 additions and 13 deletions
|
|
@ -3,7 +3,6 @@ include_directories(
|
|||
${WAYLAND_CLIENT_INCLUDE_DIR}
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
${PANGO_INCLUDE_DIRS}
|
||||
${GDK_PIXBUF_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_executable(swaybg
|
||||
|
|
@ -17,10 +16,18 @@ target_link_libraries(swaybg
|
|||
${WAYLAND_CURSOR_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
${PANGO_LIBRARIES}
|
||||
${GDK_PIXBUF_LIBRARIES}
|
||||
m
|
||||
)
|
||||
|
||||
if (WITH_GDK_PIXBUF)
|
||||
include_directories(
|
||||
${GDK_PIXBUF_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(swaybg
|
||||
${GDK_PIXBUF_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS swaybg
|
||||
RUNTIME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue