mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 16:48:21 +00:00
891ee3e789
This implementation is a bit dodgy and needs some work but is currently functional. Consider this feature highly experiemental under X11.
32 lines
480 B
CMake
32 lines
480 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(displayserver_X11 LANGUAGES C)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(DISPLAYSERVER_X11 REQUIRED IMPORTED_TARGET
|
|
x11
|
|
xi
|
|
xfixes
|
|
xscrnsaver
|
|
xinerama
|
|
xcursor
|
|
xpresent
|
|
)
|
|
|
|
add_library(displayserver_X11 STATIC
|
|
x11.c
|
|
atoms.c
|
|
clipboard.c
|
|
)
|
|
|
|
add_definitions(-D GLX_GLXEXT_PROTOTYPES)
|
|
|
|
target_link_libraries(displayserver_X11
|
|
PkgConfig::DISPLAYSERVER_X11
|
|
lg_common
|
|
)
|
|
|
|
target_include_directories(displayserver_X11
|
|
PRIVATE
|
|
src
|
|
)
|