2020-11-13 06:25:03 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-02-27 16:17:51 +08:00
|
|
|
index eaba327..dbd31d7 100644
|
2020-11-13 06:25:03 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-02-27 16:17:51 +08:00
|
|
|
@@ -1126,6 +1126,12 @@ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
|
2022-11-12 04:24:53 +08:00
|
|
|
install(EXPORT libpng
|
2024-02-27 16:17:51 +08:00
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpng
|
2023-11-22 10:24:19 +08:00
|
|
|
FILE libpng${PNGLIB_ABI_VERSION}.cmake)
|
2022-04-19 05:33:43 +08:00
|
|
|
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" "
|
2022-11-12 04:24:53 +08:00
|
|
|
+ include(CMakeFindDependencyMacro)
|
|
|
|
+ find_dependency(ZLIB)
|
2023-11-22 10:24:19 +08:00
|
|
|
+ include(\"\${CMAKE_CURRENT_LIST_DIR}/libpng${PNGLIB_ABI_VERSION}.cmake\")
|
2022-11-12 04:24:53 +08:00
|
|
|
+ ")
|
2023-11-22 10:24:19 +08:00
|
|
|
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/libpng")
|
2020-11-13 06:25:03 +08:00
|
|
|
endif()
|
|
|
|
|
2022-11-12 04:24:53 +08:00
|
|
|
# TODO: Create MSVC import lib for MinGW-compiled shared lib.
|