PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/PNG.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 21 lines | 18 code | 2 blank | 1 comment | 3 complexity | c93cb2db12af5477befbb17a262496f2 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4set(PNG_FIND_QUIETLY ON)
 5set(PNG_FIND_REQUIRED ON)
 6
 7if (STANDALONE)
 8  include(FindPNG)
 9else (STANDALONE)
10  use_prebuilt_binary(libpng)
11  if (WINDOWS)
12    set(PNG_LIBRARIES libpng15)
13    set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
14  elseif(DARWIN)
15    set(PNG_LIBRARIES png15)
16    set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
17  else()
18    set(PNG_LIBRARIES png15)
19    set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
20  endif()
21endif (STANDALONE)