2023-11-09 07:31:26 +00:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2021-01-15 09:30:03 +00:00
|
|
|
project(displayserver_Wayland LANGUAGES C)
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
2021-07-24 01:47:54 +00:00
|
|
|
pkg_check_modules(DISPLAYSERVER_Wayland REQUIRED IMPORTED_TARGET
|
2022-05-28 18:45:13 +00:00
|
|
|
wayland-client
|
|
|
|
wayland-cursor
|
|
|
|
xkbcommon
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 05:30:27 +00:00
|
|
|
find_program(WAYLAND_SCANNER_EXECUTABLE NAMES wayland-scanner)
|
2021-03-06 10:47:40 +00:00
|
|
|
|
2021-01-15 09:30:03 +00:00
|
|
|
add_library(displayserver_Wayland STATIC
|
2022-05-28 18:45:13 +00:00
|
|
|
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
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 05:30:27 +00:00
|
|
|
add_subdirectory(protocol)
|
|
|
|
add_subdirectory(desktops)
|
|
|
|
|
2021-01-15 09:30:03 +00:00
|
|
|
target_link_libraries(displayserver_Wayland
|
2022-05-28 18:45:13 +00:00
|
|
|
PkgConfig::DISPLAYSERVER_Wayland
|
|
|
|
lg_common
|
2023-11-09 05:30:27 +00:00
|
|
|
wayland_protocol
|
|
|
|
wayland_desktops
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(displayserver_Wayland
|
2022-05-28 18:45:13 +00:00
|
|
|
PRIVATE
|
2023-11-09 05:30:27 +00:00
|
|
|
.
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|