looper/cmake/built_sdl/SDL2Config.cmake

38 lines
1.4 KiB
CMake
Raw Permalink Normal View History

2024-04-25 11:23:38 -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 CACHE INTERNAL "")
set(SDL2_SDL2_FOUND TRUE CACHE INTERNAL "")
set(SDL2_SDL2-static_FOUND TRUE CACHE INTERNAL "")
set(SDL2_SDL2test_FOUND OFF CACHE INTERNAL "")
if (NOT DEFINED SDL2_FOUND)
if (SDL2::SDL2main)
set(SDL2_SDL2main_FOUND ON)
else()
set(SDL2_SDL2main_FOUND OFF)
endif()
set(SDL2_LIBRARY SDL2::SDL2 CACHE INTERNAL "")
set(SDL2_INCLUDE_DIR CACHE INTERNAL "")
set(SDL2_LIBRARIES SDL2::SDL2 CACHE INTERNAL "")
set(SDL2_STATIC_LIBRARIES SDL2::SDL2 CACHE INTERNAL "")
set(SDL2_STATIC_PRIVATE_LIBS "" CACHE INTERNAL "")
set(SDL2_INCLUDE_DIRS "" CACHE INTERNAL "")
#get_target_property(SDL2_STATIC_PRIVATE_LIBS SDL2-static LINK_LIBRARIES)
get_target_property(_SDL2_INCLUDE_DIRS SDL2::SDL2-static INCLUDE_DIRECTORIES)
set(SDL2_INCLUDE_DIRS ${_SDL2_INCLUDE_DIRS} CACHE INTERNAL "")
unset(_SDL2_INCLUDE_DIRS)
if(SDL2_SDL2main_FOUND)
set(SDL2MAIN_LIBRARY SDL2::SDL2main CACHE INTERNAL "")
else()
set(SDL2MAIN_LIBRARY CACHE INTERNAL "")
endif()
endif()