Skip to content

Commit

Permalink
Only process idl interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
  • Loading branch information
MiguelCompany authored Sep 26, 2024
1 parent fc44c3a commit 0eddfa9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,21 @@ if(BUILD_TESTING)
foreach(interface_file ${interface_files})
get_filename_component(interface_ns "${interface_file}" DIRECTORY)
get_filename_component(interface_ns "${interface_ns}" NAME)
# Only process IDL interfaces
string_ends_with("${interface_file}" ".idl" is_idl)
if(is_idl AND interface_ns STREQUAL "msg")
if(NOT is_idl)
continue()
endif()
# Decide category based on interface_ns
if(interface_ns STREQUAL "msg")
list(APPEND message_files "${interface_file}")
continue()
endif()
string_ends_with("${interface_file}" ".srv" is_service)
if(is_service AND interface_ns STREQUAL "srv")
if(interface_ns STREQUAL "srv")
list(APPEND service_files "${interface_file}")
continue()
endif()
if(is_idl AND interface_ns STREQUAL "action")
if(interface_ns STREQUAL "action")
list(APPEND action_files "${interface_file}")
continue()
endif()
Expand Down

0 comments on commit 0eddfa9

Please sign in to comment.