looper/web/cmake/SDL2Config.cmake

31 lines
935 B
CMake
Raw Normal View History

2024-04-24 09:59:51 -07:00
# 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)