Skip to content

Commit

Permalink
{cmake} Generating a package version file (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunBlack authored Dec 3, 2024
1 parent 5eba23d commit 9c864c2
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 9c864c2

Please sign in to comment.