summaryrefslogtreecommitdiff
path: root/indra/cmake/PNG.cmake
blob: 044262bc8d8607e262be9a7f8e4f1531cd08baa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- cmake -*-
include(Prebuilt)

include_guard()
add_library( ll::libpng INTERFACE IMPORTED )

use_system_binary(libpng)
use_prebuilt_binary(libpng)
if (WINDOWS)
  target_link_libraries(ll::libpng INTERFACE libpng16)
else()
  target_link_libraries(ll::libpng INTERFACE png16 )
endif()
target_include_directories( ll::libpng SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/libpng16)