mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
* initial attempt * forgot to add linux to the deps * little more cleanup * cleanup * remove imgui * include dirs * windows * metal stuff * metal * windows * try just moving this for now * makeavailable is working now
15 lines
416 B
CMake
15 lines
416 B
CMake
find_package(SDL2 QUIET)
|
|
if (NOT ${SDL2_FOUND})
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
SDL2
|
|
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
|
|
GIT_TAG release-2.28.1
|
|
)
|
|
message("SDL2 not found. Downloading now...")
|
|
FetchContent_MakeAvailable(SDL2)
|
|
message("SDL2 downloaded to " ${FETCHCONTENT_BASE_DIR}/sdl2-src)
|
|
endif()
|
|
|
|
target_link_libraries(ImGui PUBLIC SDL2::SDL2)
|