mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
cmake: style consistency
This commit is contained in:
parent
2429266e3e
commit
905966bcae
5 changed files with 90 additions and 44 deletions
|
|
@ -6,8 +6,14 @@ find_package(Pango REQUIRED)
|
|||
|
||||
include(Wayland)
|
||||
set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
|
||||
WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml" xdg-shell)
|
||||
WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell "${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml" desktop-shell)
|
||||
WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell
|
||||
"${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml"
|
||||
xdg-shell
|
||||
)
|
||||
WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell
|
||||
"${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml"
|
||||
desktop-shell
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${WAYLAND_CLIENT_INCLUDE_DIR}
|
||||
|
|
@ -28,9 +34,17 @@ add_executable(swaybar
|
|||
${proto-desktop-shell}
|
||||
)
|
||||
|
||||
target_link_libraries(swaybar ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m)
|
||||
target_link_libraries(swaybar
|
||||
${WAYLAND_CLIENT_LIBRARIES}
|
||||
${WAYLAND_CURSOR_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
${PANGO_LIBRARIES}
|
||||
m
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS swaybar
|
||||
RUNTIME DESTINATION bin
|
||||
COMPONENT runtime)
|
||||
TARGETS swaybar
|
||||
RUNTIME
|
||||
DESTINATION bin
|
||||
COMPONENT runtime
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue