looper/cmake/built_sdl_image/sdl2_image-config.cmake

18 lines
621 B
CMake
Raw Normal View History

2024-04-25 11:23:38 -07:00
# sdl2_image cmake project-config input for ./configure scripts
include(FeatureSummary)
set_package_properties(SDL2_image PROPERTIES
URL "https://www.libsdl.org/projects/SDL_image/"
DESCRIPTION "SDL_image is an image file loading library"
)
if (NOT DEFINED SDL2_image_FOUND)
set(SDL2_image_FOUND TRUE)
set(SDL2IMAGE_VENDORED FALSE)
if (NOT TARGET SDL2_image::SDL2_image AND TARGET SDL2_image::SDL2_image-static)
add_library(SDL2_image::SDL2_image INTERFACE IMPORTED)
target_link_libraries(SDL2_image::SDL2_image INTERFACE SDL2_image::SDL2_image-static)
endif()
endif()