OpenEXR.cmake 599 B

123456789101112131415
  1. add_cmake_project(OpenEXR
  2. # GIT_REPOSITORY https://github.com/openexr/openexr.git
  3. URL https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.5.zip
  4. URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
  5. GIT_TAG v2.5.5
  6. PATCH_COMMAND COMMAND ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/OpenEXR.patch
  7. CMAKE_ARGS
  8. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  9. -DBUILD_TESTING=OFF
  10. -DPYILMBASE_ENABLE:BOOL=OFF
  11. -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
  12. -DOPENEXR_BUILD_UTILS:BOOL=OFF
  13. )
  14. set(DEP_OpenEXR_DEPENDS ZLIB)