PageRenderTime 27ms CodeModel.GetById 18ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. set(PNG_FIND_QUIETLY ON)
  4. set(PNG_FIND_REQUIRED ON)
  5. if (STANDALONE)
  6. include(FindPNG)
  7. else (STANDALONE)
  8. use_prebuilt_binary(libpng)
  9. if (WINDOWS)
  10. set(PNG_LIBRARIES libpng15)
  11. set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
  12. elseif(DARWIN)
  13. set(PNG_LIBRARIES png15)
  14. set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
  15. else()
  16. set(PNG_LIBRARIES png15)
  17. set(PNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/libpng15)
  18. endif()
  19. endif (STANDALONE)