Skip to content

Commit

Permalink
tcp_pubsub now installs a tcp_pubsubConfigVersion.cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 26, 2024
1 parent b0393e4 commit 564c953
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tcp_pubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,15 @@ configure_package_config_file(
INSTALL_DESTINATION ${TCP_PUBSUB_INSTALL_CMAKE_DIR}
PATH_VARS TCP_PUBSUB_INSTALL_CMAKE_DIR
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/tcp_pubsubConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake_/tcp_pubsubConfig.cmake"
FILES
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/tcp_pubsubConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/tcp_pubsubConfigVersion.cmake"
DESTINATION ${TCP_PUBSUB_INSTALL_CMAKE_DIR}
COMPONENT tcp_pubsub_dev
)
Expand Down

0 comments on commit 564c953

Please sign in to comment.