aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/PNG.cmake
blob: 23c35649140f2dbe02bcb814821f4ecbb459cee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- cmake -*-
include(Prebuilt)

set(PNG_FIND_QUIETLY ON)
set(PNG_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindPNG)
else (STANDALONE)
  use_prebuilt_binary(libpng)
  if( DARWIN )
    set(PNG_LIBRARIES png12.0)
  else( DARWIN )
    set(PNG_LIBRARIES png12)
  endif (DARWIN)
  set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include)
endif (STANDALONE)