2021-01-15 09:30:03 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
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
|
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
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(displayserver_X11
|
2022-05-28 18:45:13 +00:00
|
|
|
PRIVATE
|
|
|
|
src
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|