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

set(PNG_FIND_QUIETLY ON)
set(PNG_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindPNG)
else (STANDALONE)
  use_prebuilt_binary(libpng)
  set(PNG_LIBRARIES png12)
  set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng12)
endif (STANDALONE)