find_package(SDL2 QUIET)

if(NOT SDL2_FOUND)
    message(STATUS "SDL2 not found; skipping sdl plugin.")
    return()
endif()

create_fooyin_plugin_internal(
    sdl
    DEPENDS #
        Fooyin::Core
        ${SDL2_LIBRARIES}
    SOURCES #
        sdlaudiosubsystem.cpp
        sdlaudiosubsystem.h
        sdloutput.cpp
        sdloutput.h
        sdlplugin.cpp
        sdlplugin.h
)
