From 564c953ac89a198e630f2055d990ea05888b0a87 Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:55:47 +0200 Subject: [PATCH] tcp_pubsub now installs a tcp_pubsubConfigVersion.cmake file --- tcp_pubsub/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tcp_pubsub/CMakeLists.txt b/tcp_pubsub/CMakeLists.txt index 431c585..754d236 100644 --- a/tcp_pubsub/CMakeLists.txt +++ b/tcp_pubsub/CMakeLists.txt @@ -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 )