diff --git a/msg/CMakeLists.txt b/msg/CMakeLists.txt index c017a78eea..1a78bc573b 100644 --- a/msg/CMakeLists.txt +++ b/msg/CMakeLists.txt @@ -86,9 +86,6 @@ set(msg_files offboard_control_mode.msg onboard_computer_status.msg optical_flow.msg - orb_test.msg - orb_test_large.msg - orb_test_medium.msg orbit_status.msg parameter_update.msg ping.msg @@ -178,6 +175,14 @@ if(NOT px4_constrained_flash_build) ) endif() +if(PX4_TESTING) + list(APPEND msg_files + orb_test.msg + orb_test_large.msg + orb_test_medium.msg + ) +endif() + list(SORT msg_files) set(deprecated_msgs