From 1c69f41e0a8c41ab44af6a52adc622d5d5fe14b2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 3 Jul 2026 13:27:26 +0200 Subject: [PATCH] Examples now also depend on helpers --- cmake/CMakeLists.txt | 9 ++++----- src/examples/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index f373240b17..150e858a02 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -539,6 +539,10 @@ add_subdirectory(../src/plugin plugin) add_subdirectory(../src/ifcparse ifcparse) set(IFCOPENSHELL_LIBRARIES IfcParse) +if(BUILD_EXAMPLES OR BUILD_BONSAIVIEWER) + add_subdirectory(../src/helpers helpers) +endif() + if(BUILD_IFCPARSE_EXPERIMENTAL_WRAPPER) add_subdirectory(../src/wrappergen wrappergen) endif() @@ -708,11 +712,6 @@ if(BUILD_BONSAIVIEWER_TESTS) endif() if(BUILD_BONSAIVIEWER) - # helpers first — schema-agnostic helpers (Unit, Geolocation, - # Placement) that IfcViewer's Federation links against. Adding here - # before ifcviewer/ so the link target exists when IfcViewer's - # CMakeLists runs. - add_subdirectory(../src/helpers helpers) # IfcViewer is the unified scene + render lib since the wgpu/ifcviewer # merge — wgpu-native is fetched inside its CMakeLists.txt. add_subdirectory(../src/ifcviewer ifcviewer) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 28cc822f72..e81617126b 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -72,7 +72,7 @@ if("2x3" IN_LIST SCHEMA_VERSIONS) build_schema_example(faces 2x3) build_schema_example(ifc_curve_rebar 2x3) build_schema_example(profiles 2x3) - build_schema_example(IfcParseExamples 2x3) + build_schema_example(IfcParseExamples 2x3 helpers) if(WITH_OPENCASCADE) build_schema_example(IfcOpenHouse 2x3 geometry_serializer)