build: add BUILD_RECOVERY_CORE_TESTS, nav_test_harness only for tests

Tests used to build whenever CATKIN_ENABLE_TESTING was on. They now also
need -DBUILD_RECOVERY_CORE_TESTS=ON.

nav_test_harness is a test-only package that exists only on the
development machine. It was a catkin component, so configuring
recovery_core failed on any machine without it. It is now found inside
the test block only and declared as test_depend.
This commit is contained in:
2026-11-17 20:36:12 +07:00
parent d057b224ae
commit 0726abbe74
2 changed files with 15 additions and 7 deletions

View File

@@ -44,8 +44,8 @@
<build_depend>yaml-cpp</build_depend>
<run_depend>yaml-cpp</run_depend>
<!-- Chỉ dùng cho test: fake clock/costmap/pose/collision. Cố ý KHÔNG có run_depend và không nằm
trong catkin_package(CATKIN_DEPENDS) — consumer của recovery_core không phải kéo theo nó. -->
<build_depend>nav_test_harness</build_depend>
<!-- Chỉ dùng cho test: fake clock/costmap/pose/collision. Gói chỉ có trên máy dev, nên chỉ là
test_depend; CMake chỉ find_package nó khi bật BUILD_RECOVERY_CORE_TESTS. -->
<test_depend>nav_test_harness</test_depend>
</package>