2020-11-13 06:25:03 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-11-12 04:24:53 +08:00
|
|
|
index c01cdcb..0ad4ba4 100644
|
2020-11-13 06:25:03 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-11-12 04:24:53 +08:00
|
|
|
@@ -1033,6 +1033,12 @@ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
|
|
|
|
install(EXPORT libpng
|
|
|
|
DESTINATION lib/libpng
|
|
|
|
FILE lib${PNG_LIB_NAME}.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)
|
|
|
|
+ include(\"\${CMAKE_CURRENT_LIST_DIR}/lib${PNG_LIB_NAME}.cmake\")
|
|
|
|
+ ")
|
|
|
|
+ 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.
|