ugfx/drivers/multiple/SDL/driver.cmake

25 lines
319 B
CMake
Raw Normal View History

2021-10-12 15:44:54 +00:00
set(ROOT_PATH ${UGFX_ROOT}/drivers/multiple/SDL)
list(APPEND ugfx_INCLUDE_DIRS
${ROOT_PATH}
)
list(APPEND ugfx_SOURCES
${ROOT_PATH}/gdisp_lld_SDL.c
)
list(APPEND ugfx_DEFS
GFX_OS_PRE_INIT_FUNCTION=sdl_driver_init
)
2021-10-28 14:15:02 +00:00
list(APPEND ugfx_LIBS
SDL2::SDL2
)
2021-10-12 15:44:54 +00:00
# Find SDL2
find_package(
SDL2
REQUIRED
)