From 4597be7fdaa5e55fc2827c114be689238ebcd39d Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 4 May 2026 12:21:50 +1000 Subject: [PATCH] ifcviewer: link Placement.cpp into test_federation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit f7add7f4 split getAxis2Placement out of an anonymous helper in Geolocation.cpp into a shared Placement.{h,cpp}, but the test_federation target's source list wasn't updated. The test binary failed to link with `undefined reference to getAxis2Placement(express::Base const&)` from Geolocation::getWcs. Add Placement.cpp to the explicit-source list — it has no Qt dependency, only ifcparse. Co-Authored-By: Claude Opus 4.7 --- src/ifcviewer/tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifcviewer/tests/CMakeLists.txt b/src/ifcviewer/tests/CMakeLists.txt index c07512d66d..b32154f3aa 100644 --- a/src/ifcviewer/tests/CMakeLists.txt +++ b/src/ifcviewer/tests/CMakeLists.txt @@ -62,9 +62,11 @@ add_executable(test_federation # Geolocation helpers (helmertMetersFromParameters, getWcs, getMapUnit) # for computeModelGeoref; compile both directly so the test doesn't # have to link the whole IfcViewer library (which would drag in - # Qt6::OpenGL, OpenCASCADE, etc.). + # Qt6::OpenGL, OpenCASCADE, etc.). Placement.cpp provides + # getAxis2Placement, called from Geolocation::getWcs. ${IFCVIEWER_SRC}/Unit.cpp ${IFCVIEWER_SRC}/Geolocation.cpp + ${IFCVIEWER_SRC}/Placement.cpp ) set_target_properties(test_federation PROPERTIES AUTOMOC ON) target_include_directories(test_federation PRIVATE ${IFCVIEWER_SRC})