mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
common: create a static library
This commit is contained in:
parent
98678dea5d
commit
ec013d1f1a
3 changed files with 9 additions and 7 deletions
|
|
@ -8,7 +8,6 @@ include(Wayland)
|
|||
WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
${WAYLAND_CLIENT_INCLUDE_DIR}
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
${PANGO_INCLUDE_DIRS}
|
||||
|
|
@ -16,7 +15,6 @@ include_directories(
|
|||
|
||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
||||
FILE(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
|
||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
||||
|
||||
add_executable(swaybg
|
||||
${sources}
|
||||
|
|
@ -24,7 +22,7 @@ add_executable(swaybg
|
|||
${common}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} sway_common)
|
||||
|
||||
install(
|
||||
TARGETS swaybg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue