diff options
| author | Christoph Gysin <christoph.gysin@gmail.com> | 2015-12-02 07:57:53 +0200 |
|---|---|---|
| committer | Christoph Gysin <christoph.gysin@gmail.com> | 2015-12-02 12:15:57 +0200 |
| commit | cce9c338c07e889aa82db806f0dddf2f997edbb6 (patch) | |
| tree | 717052d8d88f3fd14d26566daa520dbdd3a452fe /CMakeLists.txt | |
| parent | f76b7f5385f79f9e004a096ed4896725cac30f9c (diff) | |
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b9a2e37d..75c61c2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,19 @@ add_definitions(-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\") string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC) add_definitions(-DSWAY_VERSION_DATE=\"${CURRENT_DATE}\") -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) +find_package(Cairo REQUIRED) +find_package(JsonC REQUIRED) +find_package(PCRE REQUIRED) +find_package(Pango REQUIRED) +find_package(WLC REQUIRED) +find_package(Wayland REQUIRED) +find_package(XKBCommon REQUIRED) + +include_directories(include) + +add_subdirectory(protocols) +add_subdirectory(common) +add_subdirectory(wayland) add_subdirectory(sway) add_subdirectory(swaybg) |
