As before for shared_autonomy_msgs it is enough if they are listed in build_depend.