2021-01-15 09:30:03 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(displayserver_X11 LANGUAGES C)
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(DISPLAYSERVER_X11_PKGCONFIG REQUIRED
|
|
|
|
x11
|
2021-01-20 04:33:34 +00:00
|
|
|
xi
|
2021-01-15 09:30:03 +00:00
|
|
|
xfixes
|
2021-01-20 04:24:10 +00:00
|
|
|
xscrnsaver
|
2021-01-26 23:41:39 +00:00
|
|
|
xinerama
|
2021-01-15 09:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(displayserver_X11 STATIC
|
|
|
|
x11.c
|
2021-03-26 23:05:57 +00:00
|
|
|
atoms.c
|
2021-03-26 22:21:32 +00:00
|
|
|
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
|
|
|
|
${DISPLAYSERVER_X11_PKGCONFIG_LIBRARIES}
|
|
|
|
lg_common
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(displayserver_X11
|
|
|
|
PRIVATE
|
|
|
|
src
|
|
|
|
${DISPLAYSERVER_X11_PKGCONFIG_INCLUDE_DIRS}
|
|
|
|
)
|