2020-11-13 06:25:03 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-04-19 05:33:43 +08:00
|
|
|
index 3931f12..b570fa8 100644
|
2020-11-13 06:25:03 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-04-19 05:33:43 +08:00
|
|
|
@@ -909,6 +909,12 @@ endif()
|
2020-11-13 06:25:03 +08:00
|
|
|
# Create an export file that CMake users can include() to import our targets.
|
|
|
|
if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
|
2022-04-19 05:33:43 +08:00
|
|
|
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake)
|
|
|
|
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" "
|
|
|
|
+include(CMakeFindDependencyMacro)
|
2020-11-13 06:25:03 +08:00
|
|
|
+find_dependency(ZLIB)
|
2022-04-19 05:33:43 +08:00
|
|
|
+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()
|
|
|
|
|
|
|
|
# what's with libpng-manual.txt and all the extra files?
|