aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-02 05:34:18 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-02 05:34:18 -0500
commit7a1c8c2939c8581bb47323513b91a94aebf62b36 (patch)
tree717052d8d88f3fd14d26566daa520dbdd3a452fe /sway
parentf76b7f5385f79f9e004a096ed4896725cac30f9c (diff)
parentcce9c338c07e889aa82db806f0dddf2f997edbb6 (diff)
Merge pull request #291 from christophgysin/libs
cmake: build common code only once
Diffstat (limited to 'sway')
-rw-r--r--sway/CMakeLists.txt38
1 files changed, 19 insertions, 19 deletions
diff --git a/sway/CMakeLists.txt b/sway/CMakeLists.txt
index 92392354..49ed24e7 100644
--- a/sway/CMakeLists.txt
+++ b/sway/CMakeLists.txt
@@ -1,33 +1,33 @@
-find_package(XKBCommon REQUIRED)
-find_package(WLC REQUIRED)
-find_package(PCRE REQUIRED)
-find_package(Wayland REQUIRED)
-find_package(JsonC REQUIRED)
-
-include(Wayland)
-WAYLAND_ADD_PROTOCOL_SERVER(proto-desktop-shell
- ${PROJECT_SOURCE_DIR}/protocols/desktop-shell.xml
- desktop-shell
-)
-
-file(GLOB sources ${PROJECT_SOURCE_DIR}/sway/*.c)
-file(GLOB common ${PROJECT_SOURCE_DIR}/common/*.c)
-
include_directories(
+ ${PROTOCOLS_INCLUDE_DIRS}
${WLC_INCLUDE_DIRS}
${PCRE_INCLUDE_DIRS}
${JSONC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
- ${CMAKE_CURRENT_BINARY_DIR}
)
add_executable(sway
- ${sources}
- ${common}
- ${proto-desktop-shell}
+ 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
)
target_link_libraries(sway
+ sway-common
+ sway-protocols
${WLC_LIBRARIES}
${XKBCOMMON_LIBRARIES}
${PCRE_LIBRARIES}