looper/web/cmake/SDL2Config.cmake

30 lines
935 B
CMake

# sdl2 cmake project-config input for CMakeLists.txt script
include(FeatureSummary)
set_package_properties(SDL2 PROPERTIES
URL "https://www.libsdl.org/"
DESCRIPTION "low level access to audio, keyboard, mouse, joystick, and graphics hardware"
)
########################################################################
set(SDL2_FOUND TRUE)
set(SDL2_SDL2_FOUND TRUE)
set(SDL2_SDL2-static_FOUND TRUE)
set(SDL2_SDL2main_FOUND TRUE)
set(SDL2_SDL2test_FOUND TRUE)
add_library(SDL2::SDL2 INTERFACE IMPORTED)
target_link_options(SDL2::SDL2 INTERFACE "-sUSE_SDL=2")
target_compile_options(SDL2::SDL2 INTERFACE "-sUSE_SDL=2")
add_library(SDL2::SDL2-static INTERFACE IMPORTED)
target_link_options(SDL2::SDL2-static INTERFACE "-sUSE_SDL=2")
target_compile_options(SDL2::SDL2-static INTERFACE "-sUSE_SDL=2")
set(SDL2_LIBRARIES SDL2::SDL2)
set(SDL2_STATIC_LIBRARIES SDL2::SDL2-static)
set(SDL2_STATIC_PRIVATE_LIBS)
set(SDL2MAIN_LIBRARY)