Skip to content
Snippets Groups Projects
Commit bb9997f2 authored by Andre Sailer's avatar Andre Sailer
Browse files

DDCad: test: use newer duck for newer assimp versions

parent f00165dd
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,11 @@ set(ClientTestsEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/ClientTests)
# Single shape tests:
#Reference for test depends on assimp version
if(assimp_VERSION VERSION_GREATER_EQUAL 5.2.0)
set(assimp_duck_VERSION 5.2.0)
else()
set(assimp_duck_VERSION 5.0.0)
endif()
configure_file(${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml.in
${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml @ONLY
)
......
......@@ -20,7 +20,7 @@
<check vis="Shape1_vis">
<shape type="CAD_Shape" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/Collada/duck.dae" mesh="0"/>
</check>
<test type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt.@assimp_VERSION@" create="CheckShape_create"/>
<test type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt.@assimp_duck_VERSION@" create="CheckShape_create"/>
</detector>
</detectors>
</lccdd>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment