mirror of
https://github.com/swaywm/sway.git
synced 2025-12-15 08:56:30 -05:00
cmake: build common code only once
This creates (static) libraries for protocols/, common/, and wayland/.
This commit is contained in:
parent
f76b7f5385
commit
cce9c338c0
9 changed files with 93 additions and 78 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue