Skip to content

Commit

Permalink
build: add version to cmake config
Browse files Browse the repository at this point in the history
  • Loading branch information
w4bremer committed Feb 19, 2024
1 parent 1a2c4a4 commit e41e155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ configure_package_config_file(
${CMAKE_CURRENT_BINARY_DIR}/olink_coreConfig.cmake
INSTALL_DESTINATION ${InstallDir}
)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/olink_coreConfigVersion.cmake
VERSION 0.2.8
COMPATIBILITY SameMinorVersion)
install(EXPORT olink_coreTargets
FILE olink_coreTargets.cmake
DESTINATION ${InstallDir})
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/olink_coreConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/olink_coreConfigVersion.cmake
DESTINATION
${InstallDir}
)

0 comments on commit e41e155

Please sign in to comment.