mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00

Co-authored-by: Cosmin Truta <ctruta@gmail.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
16 lines
455 B
CMake
16 lines
455 B
CMake
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()
|