Skip to content

Commit

Permalink
Export version for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
SunBlack committed Dec 3, 2024
1 parent 5eba23d commit a435dd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,17 @@ install(
"${E57_INSTALL_CMAKEDIR}"
)

include(CMakePackageConfigHelpers)
write_basic_package_version_file (
e57format-config-version.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)

install(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/cmake/e57format-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/e57format-config-version.cmake
DESTINATION
"${E57_INSTALL_CMAKEDIR}"
)

0 comments on commit a435dd6

Please sign in to comment.