2015-12-02 07:25:22 +11:00
|
|
|
include_directories(
|
2015-12-02 16:57:53 +11:00
|
|
|
${PROTOCOLS_INCLUDE_DIRS}
|
2015-12-02 07:25:22 +11:00
|
|
|
${WLC_INCLUDE_DIRS}
|
|
|
|
${PCRE_INCLUDE_DIRS}
|
|
|
|
${JSONC_INCLUDE_DIRS}
|
|
|
|
${XKBCOMMON_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(sway
|
2015-12-02 16:57:53 +11:00
|
|
|
commands.c
|
|
|
|
config.c
|
|
|
|
container.c
|
|
|
|
criteria.c
|
|
|
|
debug_log.c
|
|
|
|
extensions.c
|
|
|
|
focus.c
|
|
|
|
handlers.c
|
|
|
|
input_state.c
|
|
|
|
ipc-server.c
|
|
|
|
layout.c
|
|
|
|
main.c
|
|
|
|
output.c
|
|
|
|
resize.c
|
|
|
|
util.c
|
|
|
|
workspace.c
|
2015-12-02 07:25:22 +11:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sway
|
2015-12-02 16:57:53 +11:00
|
|
|
sway-common
|
|
|
|
sway-protocols
|
2015-12-02 07:25:22 +11:00
|
|
|
${WLC_LIBRARIES}
|
|
|
|
${XKBCOMMON_LIBRARIES}
|
|
|
|
${PCRE_LIBRARIES}
|
|
|
|
${JSONC_LIBRARIES}
|
|
|
|
${WAYLAND_SERVER_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS sway
|
|
|
|
RUNTIME
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT runtime
|
|
|
|
)
|
|
|
|
install(
|
2015-12-02 08:57:03 +11:00
|
|
|
FILES ${PROJECT_SOURCE_DIR}/config
|
2015-12-02 07:25:22 +11:00
|
|
|
DESTINATION ${FALLBACK_CONFIG_DIR}
|
|
|
|
COMPONENT configuration
|
|
|
|
)
|