summaryrefslogtreecommitdiff
path: root/Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake')
-rw-r--r--Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake b/Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake
new file mode 100644
index 00000000000..3b6f646de7b
--- /dev/null
+++ b/Build/source/libs/libpng/libpng-src/scripts/cmake/PNGConfig.cmake
@@ -0,0 +1,15 @@
+include(CMakeFindDependencyMacro)
+
+find_dependency(ZLIB REQUIRED)
+
+include("${CMAKE_CURRENT_LIST_DIR}/PNGTargets.cmake")
+
+if(NOT TARGET PNG::PNG)
+ if(TARGET PNG::png_shared)
+ add_library(PNG::PNG INTERFACE IMPORTED)
+ target_link_libraries(PNG::PNG INTERFACE PNG::png_shared)
+ elseif(TARGET PNG::png_static)
+ add_library(PNG::PNG INTERFACE IMPORTED)
+ target_link_libraries(PNG::PNG INTERFACE PNG::png_static)
+ endif()
+endif()