18 lines
621 B
CMake
18 lines
621 B
CMake
|
# 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()
|