JPEG.cmake 489 B

12345678910111213141516171819202122
  1. # -*- cmake -*-
  2. if (JPEG_CMAKE_INCLUDED)
  3. return()
  4. endif (JPEG_CMAKE_INCLUDED)
  5. set (JPEG_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. include(Prebuilt)
  8. if (USESYSTEMLIBS)
  9. set(JPEG_FIND_QUIETLY ON)
  10. set(JPEG_FIND_REQUIRED OFF)
  11. include(FindJPEG)
  12. endif (USESYSTEMLIBS)
  13. if (NOT JPEG_FOUND)
  14. use_prebuilt_binary(jpeglib)
  15. set(JPEG_LIBRARIES jpeg)
  16. set(JPEG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/jpeglib)
  17. endif (NOT JPEG_FOUND)
  18. include_directories(SYSTEM ${JPEG_INCLUDE_DIRS})