mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
Gate LOD test on meshoptimizer
Keep the IfcViewer test CMake in sync with the optional meshoptimizer dependency so test_lod_builder is only added when the package is enabled. Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -36,11 +36,13 @@ add_ifcviewer_unit_test(test_bvh_accel
|
||||
SOURCES ${IFCVIEWER_SRC}/BvhAccel.cpp
|
||||
)
|
||||
|
||||
add_ifcviewer_unit_test(test_lod_builder
|
||||
SOURCES
|
||||
${IFCVIEWER_SRC}/LodBuilder.cpp
|
||||
LIBS meshoptimizer::meshoptimizer
|
||||
)
|
||||
if(WITH_MESH_OPTIMIZER)
|
||||
add_ifcviewer_unit_test(test_lod_builder
|
||||
SOURCES
|
||||
${IFCVIEWER_SRC}/LodBuilder.cpp
|
||||
LIBS meshoptimizer::meshoptimizer
|
||||
)
|
||||
endif()
|
||||
|
||||
add_ifcviewer_unit_test(test_sidecar_cache
|
||||
SOURCES ${IFCVIEWER_SRC}/SidecarCache.cpp
|
||||
|
||||
Reference in New Issue
Block a user