2023-11-09 07:31:26 +00:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2021-01-15 09:30:03 +00:00
|
|
|
project(displayserver_X11 LANGUAGES C)
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
2021-07-24 01:47:54 +00:00
|
|
|
pkg_check_modules(DISPLAYSERVER_X11 REQUIRED IMPORTED_TARGET
|
2022-05-28 18:45:13 +00:00
|
|
|
x11
|
|
|
|
xi
|
|
|
|
xfixes
|
|
|
|
xscrnsaver
|
|
|
|
xinerama
|
|
|
|
xcursor
|
|
|
|
xpresent
|
2022-06-30 05:09:03 +00:00
|
|
|
xkbcommon
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(displayserver_X11 STATIC
|
2022-05-28 18:45:13 +00:00
|
|
|
x11.c
|
|
|
|
atoms.c
|
|
|
|
clipboard.c
|
2023-09-13 11:51:53 +00:00
|
|
|
cursor.c
|
2023-09-11 15:19:06 +00:00
|
|
|
|
|
|
|
wm/default.c
|
|
|
|
wm/i3.c
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
2021-01-27 10:27:26 +00:00
|
|
|
add_definitions(-D GLX_GLXEXT_PROTOTYPES)
|
|
|
|
|
2021-01-15 09:30:03 +00:00
|
|
|
target_link_libraries(displayserver_X11
|
2022-05-28 18:45:13 +00:00
|
|
|
PkgConfig::DISPLAYSERVER_X11
|
|
|
|
lg_common
|
2023-09-13 11:51:53 +00:00
|
|
|
lg_resources
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(displayserver_X11
|
2022-05-28 18:45:13 +00:00
|
|
|
PRIVATE
|
2023-09-11 15:19:06 +00:00
|
|
|
.
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|