mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 10:08:24 +00:00
aa9dbe654d
This allows us to build with libdecor enabled as the selection to use it is decided upon at runtime if the compositor `gnome-shell` is detected. If the libdecor development headers are installed, by default it will now be compiled in unless overridden by the user at compile time.
43 lines
729 B
CMake
43 lines
729 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(displayserver_Wayland LANGUAGES C)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(DISPLAYSERVER_Wayland REQUIRED IMPORTED_TARGET
|
|
wayland-client
|
|
wayland-cursor
|
|
xkbcommon
|
|
)
|
|
|
|
find_program(WAYLAND_SCANNER_EXECUTABLE NAMES wayland-scanner)
|
|
|
|
add_library(displayserver_Wayland STATIC
|
|
activation.c
|
|
clipboard.c
|
|
cursor.c
|
|
gl.c
|
|
idle.c
|
|
input.c
|
|
output.c
|
|
poll.c
|
|
presentation.c
|
|
state.c
|
|
registry.c
|
|
wayland.c
|
|
window.c
|
|
)
|
|
|
|
add_subdirectory(protocol)
|
|
add_subdirectory(desktops)
|
|
|
|
target_link_libraries(displayserver_Wayland
|
|
PkgConfig::DISPLAYSERVER_Wayland
|
|
lg_common
|
|
wayland_protocol
|
|
wayland_desktops
|
|
)
|
|
|
|
target_include_directories(displayserver_Wayland
|
|
PRIVATE
|
|
.
|
|
)
|