From e9c95846c043286c7165df83988c764cbae54cda Mon Sep 17 00:00:00 2001 From: Claude Code Agent Date: Tue, 23 Jun 2026 06:25:56 -0400 Subject: [PATCH] build: export datum_config target for downstream linkage (#28) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolve_datum/load_datum_config live in the datum_config library, which was installed bare (not in the export set) — find_package(mru_transform) yielded no linkable imported target. Add datum_config to export_${PROJECT_NAME} and export the transitive yaml-cpp dependency so cube_bathymetry's chart-prior importer (rolker/unh_marine_autonomy#163) can reuse the datum core. Pure packaging change; no source change. Verified: install now emits mru_transform::datum_config + yaml-cpp in exported deps. Closes #28 Co-Authored-By: Claude Opus 4.8 --- mru_transform/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mru_transform/CMakeLists.txt b/mru_transform/CMakeLists.txt index fa5a568..7a3b54a 100644 --- a/mru_transform/CMakeLists.txt +++ b/mru_transform/CMakeLists.txt @@ -47,7 +47,16 @@ target_include_directories(datum_config PUBLIC "$" ) target_link_libraries(datum_config ${YAML_CPP_TARGET}) -install(TARGETS datum_config LIBRARY DESTINATION lib) +# Export datum_config so downstream packages (e.g. cube_bathymetry's chart-prior +# importer, rolker/unh_marine_autonomy#163) can link resolve_datum/load_datum_config +# via find_package(mru_transform). Shares the package export set; header is installed +# by the install(DIRECTORY include/ ...) below. (#28) +install(TARGETS datum_config + EXPORT export_${PROJECT_NAME} + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + RUNTIME DESTINATION bin +) ############# @@ -114,6 +123,7 @@ ament_export_dependencies( tf2_geometry_msgs tf2_msgs tf2_ros + yaml-cpp ) #############