2021-01-15 09:30:03 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(displayserver_SDL LANGUAGES C)
|
|
|
|
|
2021-02-25 23:07:56 +00:00
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(DISPLAYSERVER_SDL_PKGCONFIG REQUIRED
|
|
|
|
sdl2
|
|
|
|
)
|
2021-01-15 09:30:03 +00:00
|
|
|
|
|
|
|
add_library(displayserver_SDL STATIC
|
|
|
|
sdl.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(displayserver_SDL
|
|
|
|
${DISPLAYSERVER_SDL_PKGCONFIG_LIBRARIES}
|
|
|
|
${DISPLAYSERVER_SDL_OPT_PKGCONFIG_LIBRARIES}
|
|
|
|
lg_common
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(displayserver_SDL
|
|
|
|
PRIVATE
|
|
|
|
src
|
|
|
|
${DISPLAYSERVER_SDL_PKGCONFIG_INCLUDE_DIRS}
|
|
|
|
${DISPLAYSERVER_SDL_OPT_PKGCONFIG_INCLUDE_DIRS}
|
|
|
|
)
|