2015-12-01 20:25:22 +00:00
|
|
|
include_directories(
|
2015-12-02 05:57:53 +00:00
|
|
|
${PROTOCOLS_INCLUDE_DIRS}
|
2015-12-01 20:25:22 +00:00
|
|
|
${WLC_INCLUDE_DIRS}
|
|
|
|
${PCRE_INCLUDE_DIRS}
|
|
|
|
${JSONC_INCLUDE_DIRS}
|
|
|
|
${XKBCOMMON_INCLUDE_DIRS}
|
2016-01-22 04:17:33 +00:00
|
|
|
${LIBINPUT_INCLUDE_DIRS}
|
2015-12-01 20:25:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(sway
|
2015-12-02 05:57:53 +00:00
|
|
|
commands.c
|
|
|
|
config.c
|
|
|
|
container.c
|
|
|
|
criteria.c
|
|
|
|
debug_log.c
|
|
|
|
extensions.c
|
|
|
|
focus.c
|
|
|
|
handlers.c
|
2016-01-17 10:53:37 +00:00
|
|
|
input.c
|
2015-12-02 05:57:53 +00:00
|
|
|
input_state.c
|
|
|
|
ipc-server.c
|
|
|
|
layout.c
|
|
|
|
main.c
|
|
|
|
output.c
|
|
|
|
resize.c
|
|
|
|
workspace.c
|
2015-12-01 20:25:22 +00:00
|
|
|
)
|
|
|
|
|
2016-01-21 20:04:52 +00:00
|
|
|
add_definitions(
|
|
|
|
-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}"
|
|
|
|
)
|
|
|
|
|
2015-12-01 20:25:22 +00:00
|
|
|
target_link_libraries(sway
|
2015-12-02 05:57:53 +00:00
|
|
|
sway-common
|
|
|
|
sway-protocols
|
2015-12-01 20:25:22 +00:00
|
|
|
${WLC_LIBRARIES}
|
|
|
|
${XKBCOMMON_LIBRARIES}
|
|
|
|
${PCRE_LIBRARIES}
|
|
|
|
${JSONC_LIBRARIES}
|
|
|
|
${WAYLAND_SERVER_LIBRARIES}
|
2016-01-17 10:53:37 +00:00
|
|
|
${LIBINPUT_LIBRARIES}
|
2015-12-22 11:36:20 +00:00
|
|
|
m
|
2015-12-01 20:25:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS sway
|
|
|
|
RUNTIME
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT runtime
|
|
|
|
)
|
|
|
|
install(
|
2015-12-01 21:57:03 +00:00
|
|
|
FILES ${PROJECT_SOURCE_DIR}/config
|
2015-12-23 11:22:48 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/
|
2015-12-01 20:25:22 +00:00
|
|
|
COMPONENT configuration
|
|
|
|
)
|
2015-12-02 10:47:34 +00:00
|
|
|
|
|
|
|
add_manpage(sway 1)
|
|
|
|
add_manpage(sway 5)
|
2016-01-22 18:15:03 +00:00
|
|
|
add_manpage(sway-input 5)
|