[client] ds: make SDL display server optional

This commit also moved the SDL dependencies into the SDL backend so that
-DENABLE_SDL=NO builds do not link against SDL.
This commit is contained in:
Quantum
2021-02-25 18:07:56 -05:00
committed by Geoffrey McRae
parent f3b46e6d4f
commit c34fe10f23
3 changed files with 14 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.0)
project(displayserver_SDL LANGUAGES C)
#find_package(PkgConfig)
#pkg_check_modules(DISPLAYSERVER_SDL_PKGCONFIG REQUIRED
# #sdl2
#)
find_package(PkgConfig)
pkg_check_modules(DISPLAYSERVER_SDL_PKGCONFIG REQUIRED
sdl2
)
add_library(displayserver_SDL STATIC
sdl.c