From 29072104e242235829cd467f4dbca2d7d4e75ae8 Mon Sep 17 00:00:00 2001 From: GuillaumeLaine Date: Wed, 20 Nov 2024 09:26:24 +0100 Subject: [PATCH] CMakeLists: include versioned msg path Signed-off-by: GuillaumeLaine --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fc6edc2..2aeb390b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,11 +18,11 @@ find_package(rosidl_default_generators REQUIRED) # get all msg files set(MSGS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/msg") -file(GLOB PX4_MSGS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${MSGS_DIR}/*.msg") +file(GLOB PX4_MSGS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${MSGS_DIR}/*.msg" "${MSGS_DIR}/versioned/*.msg") # get all srv files set(SRVS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/srv") -file(GLOB PX4_SRVS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${SRVS_DIR}/*.srv") +file(GLOB PX4_SRVS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${SRVS_DIR}/*.srv" "${SRVS_DIR}/versioned/*.msg") # Generate introspection typesupport for C and C++ and IDL files rosidl_generate_interfaces(${PROJECT_NAME}