ugfx/drivers/multiple/SDL/driver.cmake

29 lines
440 B
CMake

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
)
# Find SDL2
find_package(
SDL2
REQUIRED
)
# Setup target
function(ugfx_driver_setup_SDL TARGET)
target_link_libraries(
${TARGET}
PRIVATE
SDL2::SDL2
)
endfunction()