mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +00:00
43 lines
729 B
CMake
43 lines
729 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
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
|
|
.
|
|
)
|