Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,18 @@ if(BUILD_TESTING)
foreach(interface_file ${interface_files})
get_filename_component(interface_ns "${interface_file}" DIRECTORY)
get_filename_component(interface_ns "${interface_ns}" NAME)
string_ends_with("${interface_file}" ".msg" is_message)
if(is_message AND interface_ns STREQUAL "msg")
list(APPEND message_files "${interface_file}")
# Only process IDL interfaces
string_ends_with("${interface_file}" ".idl" is_idl)
if(NOT is_idl)
continue()
endif()
string_ends_with("${interface_file}" ".srv" is_service)
if(is_service AND interface_ns STREQUAL "srv")
# Decide category based on interface_ns
if(interface_ns STREQUAL "msg")
list(APPEND message_files "${interface_file}")
elseif(interface_ns STREQUAL "srv")
list(APPEND service_files "${interface_file}")
continue()
endif()
string_ends_with("${interface_file}" ".idl" is_action)
if(is_action AND interface_ns STREQUAL "action")
elseif(interface_ns STREQUAL "action")
list(APPEND action_files "${interface_file}")
continue()
endif()
endforeach()

Expand Down