Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdl2-image] Fix usage #14796

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions ports/sdl2-image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,20 @@ install(TARGETS SDL2_image

install(FILES SDL_image.h DESTINATION include/SDL2 CONFIGURATIONS Release)

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/sdl2-image-config.cmake"
[[include(CMakeFindDependencyMacro)
find_dependency(SDL2 CONFIG)
include("${CMAKE_CURRENT_LIST_DIR}/sdl2-image-targets.cmake")
]])

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdl2-image-config.cmake DESTINATION share/sdl2-image)

install(EXPORT SDL2_image
DESTINATION share/sdl2-image/
FILE sdl2-image-config.cmake
FILE sdl2-image-targets.cmake
NAMESPACE SDL2::
)


message(STATUS "Link-time dependencies:")
message(STATUS " " SDL2::SDL2)
foreach(DEPENDENCY ${DEPENDENCIES})
Expand Down
1 change: 1 addition & 0 deletions ports/sdl2-image/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: sdl2-image
Version: 2.0.5
Port-Version: 1
Build-Depends: sdl2, libpng
Homepage: https://www.libsdl.org/projects/SDL_image
Description: SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV
Expand Down