• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include(CMakeFindDependencyMacro)
2
3find_dependency(ZLIB REQUIRED)
4
5include("${CMAKE_CURRENT_LIST_DIR}/PNGTargets.cmake")
6
7if(NOT TARGET PNG::PNG)
8  if(TARGET PNG::png_shared)
9    add_library(PNG::PNG INTERFACE IMPORTED)
10    target_link_libraries(PNG::PNG INTERFACE PNG::png_shared)
11  elseif(TARGET PNG::png_static)
12    add_library(PNG::PNG INTERFACE IMPORTED)
13    target_link_libraries(PNG::PNG INTERFACE PNG::png_static)
14  endif()
15endif()
16