TIFF.cmake 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. find_package(OpenGL QUIET REQUIRED)
  2. if (APPLE)
  3. message(STATUS "Compiling TIFF for macos ${CMAKE_SYSTEM_VERSION}.")
  4. if (${CMAKE_OSX_ARCHITECTURES} MATCHES "arm")
  5. prusaslicer_add_cmake_project(TIFF
  6. URL https://gitlab.com/libtiff/libtiff/-/archive/v4.3.0/libtiff-v4.3.0.zip
  7. URL_HASH SHA256=4fca1b582c88319f3ad6ecd5b46320eadaf5eb4ef6f6c32d44caaae4a03d0726
  8. DEPENDS ${ZLIB_PKG} ${PNG_PKG} dep_JPEG
  9. CMAKE_ARGS
  10. -Dlzma:BOOL=OFF
  11. -Dwebp:BOOL=OFF
  12. -Djbig:BOOL=OFF
  13. -Dzstd:BOOL=OFF
  14. -Dpixarlog:BOOL=OFF
  15. )
  16. else()
  17. prusaslicer_add_cmake_project(TIFF
  18. URL https://gitlab.com/libtiff/libtiff/-/archive/v4.3.0/libtiff-v4.3.0.zip
  19. URL_HASH SHA256=4fca1b582c88319f3ad6ecd5b46320eadaf5eb4ef6f6c32d44caaae4a03d0726
  20. DEPENDS ${ZLIB_PKG} ${PNG_PKG} dep_JPEG
  21. CMAKE_ARGS
  22. -Dlzma:BOOL=OFF
  23. -Dwebp:BOOL=OFF
  24. -Djbig:BOOL=OFF
  25. -Dzstd:BOOL=OFF
  26. -Dpixarlog:BOOL=OFF
  27. )
  28. endif()
  29. else()
  30. prusaslicer_add_cmake_project(TIFF
  31. URL https://gitlab.com/libtiff/libtiff/-/archive/v4.1.0/libtiff-v4.1.0.zip
  32. URL_HASH SHA256=c56edfacef0a60c0de3e6489194fcb2f24c03dbb550a8a7de5938642d045bd32
  33. DEPENDS ${ZLIB_PKG} ${PNG_PKG} dep_JPEG
  34. CMAKE_ARGS
  35. -Dlzma:BOOL=OFF
  36. -Dwebp:BOOL=OFF
  37. -Djbig:BOOL=OFF
  38. -Dzstd:BOOL=OFF
  39. -Dpixarlog:BOOL=OFF
  40. )
  41. endif()