Skip to content

Commit

Permalink
Merge pull request #1493 from domin144/cmake_version_file
Browse files Browse the repository at this point in the history
Add cmake version file
  • Loading branch information
rouault committed Jan 13, 2024
2 parents b0e966e + f8a3e53 commit 0e3b3bd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,15 @@ configure_package_config_file(${CMAKE_CURRENT_LIST_DIR}/cmake/OpenJPEGConfig.cma
${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake
INSTALL_DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR}
PATH_VARS CMAKE_INSTALL_INCLUDEDIR)
install( FILES ${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake
DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR}
)
write_basic_package_version_file(
${OPENJPEG_BINARY_DIR}/OpenJPEGConfigVersion.cmake
COMPATIBILITY SameMajorVersion
VERSION ${OPENJPEG_VERSION})
install(
FILES
${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake
${OPENJPEG_BINARY_DIR}/OpenJPEGConfigVersion.cmake
DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR})

#-----------------------------------------------------------------------------

Expand Down

0 comments on commit 0e3b3bd

Please sign in to comment.