sway-patched-tray-menu/sway/CMakeLists.txt

77 lines
1.2 KiB
Text
Raw Normal View History

2015-12-01 21:25:22 +01:00
include_directories(
${PROTOCOLS_INCLUDE_DIRS}
2015-12-01 21:25:22 +01:00
${WLC_INCLUDE_DIRS}
${PCRE_INCLUDE_DIRS}
${JSONC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
2016-01-22 05:17:33 +01:00
${LIBINPUT_INCLUDE_DIRS}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${WAYLAND_INCLUDE_DIR}
2015-12-01 21:25:22 +01:00
)
2016-09-02 04:39:08 +02:00
file(GLOB cmds
"commands/*.c"
"commands/bar/*.c"
"commands/input/*.c"
)
2015-12-01 21:25:22 +01:00
add_executable(sway
commands.c
2016-09-02 04:39:08 +02:00
${cmds}
config.c
container.c
criteria.c
debug_log.c
extensions.c
focus.c
handlers.c
2016-01-17 11:53:37 +01:00
input.c
input_state.c
2016-07-04 20:34:44 +02:00
ipc-json.c
ipc-server.c
layout.c
main.c
output.c
workspace.c
border.c
2016-12-02 01:58:11 +01:00
security.c
2015-12-01 21:25:22 +01:00
)
add_definitions(
-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}"
)
2015-12-01 21:25:22 +01:00
target_link_libraries(sway
sway-common
sway-protocols
sway-wayland
2015-12-01 21:25:22 +01:00
${WLC_LIBRARIES}
${XKBCOMMON_LIBRARIES}
${PCRE_LIBRARIES}
${JSONC_LIBRARIES}
${WAYLAND_SERVER_LIBRARIES}
2016-01-17 11:53:37 +01:00
${LIBINPUT_LIBRARIES}
${PANGO_LIBRARIES}
${JSONC_LIBRARIES}
m
2015-12-01 21:25:22 +01:00
)
install(
TARGETS sway
RUNTIME
DESTINATION bin
COMPONENT runtime
)
install(
2015-12-01 22:57:03 +01:00
FILES ${PROJECT_SOURCE_DIR}/config
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/
2015-12-01 21:25:22 +01:00
COMPONENT configuration
)
2015-12-02 11:47:34 +01:00
add_manpage(sway 1)
add_manpage(sway 5)
2016-01-22 19:15:03 +01:00
add_manpage(sway-input 5)
add_manpage(sway-bar 5)
2016-12-02 16:05:43 +01:00
add_manpage(sway-security 7)