OpenJPEGConfig.cmake 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #-----------------------------------------------------------------------------
  2. #
  3. # OPENJPEGConfig.cmake - CMake configuration file for external projects.
  4. #
  5. # This file is configured by OPENJPEG and used by the UseOPENJPEG.cmake
  6. # module to load OPENJPEG's settings for an external project.
  7. # The OPENJPEG version number.
  8. set(OPENJPEG_MAJOR_VERSION "2")
  9. set(OPENJPEG_MINOR_VERSION "5")
  10. set(OPENJPEG_BUILD_VERSION "0")
  11. # The libraries.
  12. set(OPENJPEG_LIBRARIES "openjp2")
  13. # The CMake macros dir.
  14. set(OPENJPEG_CMAKE_DIR "lib/openjpeg-2.5")
  15. # The configuration options.
  16. set(OPENJPEG_BUILD_SHARED_LIBS "ON")
  17. # The "use" file.
  18. set(OPENJPEG_USE_FILE "")
  19. get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  20. if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
  21. # This is an install tree
  22. include(${SELF_DIR}/OpenJPEGTargets.cmake)
  23. # We find a relative path from the PKG directory to header files.
  24. set(PKG_DIR "C:/Users/ENFI/anaconda3/envs/gaussian_splatting/Library/lib/openjpeg-2.5")
  25. set(INC_DIR "C:/Users/ENFI/anaconda3/envs/gaussian_splatting/Library/include/openjpeg-2.5")
  26. file(RELATIVE_PATH PKG_TO_INC_RPATH "${PKG_DIR}" "${INC_DIR}")
  27. get_filename_component(OPENJPEG_INCLUDE_DIRS "${SELF_DIR}/${PKG_TO_INC_RPATH}" REALPATH)
  28. else()
  29. if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
  30. # This is a build tree
  31. set( OPENJPEG_INCLUDE_DIRS )
  32. include(${SELF_DIR}/OpenJPEGExports.cmake)
  33. else()
  34. message(FATAL_ERROR "ooops")
  35. endif()
  36. endif()
  37. set(OPENJPEG_USE_FILE ${SELF_DIR}/UseOPENJPEG.cmake)
  38. # Backward compatible part:
  39. set(OPENJPEG_FOUND TRUE)