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

DDCAD example: make duck test depend on assimp version

parent 2d6580e0
No related branches found
No related tags found
No related merge requests found
DDCAD/compact/Check_Shape_Collada_duck.xml
...@@ -34,7 +34,8 @@ dd4hep_set_compiler_flags() ...@@ -34,7 +34,8 @@ dd4hep_set_compiler_flags()
set(DDCAD_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/DDCAD) set(DDCAD_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/DDCAD)
dd4hep_install_dir( compact models ref DESTINATION ${DDCAD_INSTALL} ) dd4hep_install_dir( compact models ref DESTINATION ${DDCAD_INSTALL} )
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
find_package(assimp QUIET)
MESSAGE(STATUS "ASSIMP VERSION IS ${assimp_VERSION}")
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
dd4hep_configure_scripts( DDCAD DEFAULT_SETUP WITH_TESTS) dd4hep_configure_scripts( DDCAD DEFAULT_SETUP WITH_TESTS)
enable_testing () enable_testing ()
...@@ -49,6 +50,12 @@ set(CLICSiDEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/CLICSiD) ...@@ -49,6 +50,12 @@ set(CLICSiDEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/CLICSiD)
set(ClientTestsEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/ClientTests) set(ClientTestsEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/ClientTests)
# #
# Single shape tests: # Single shape tests:
#Reference for test depends on assimp version
configure_file(${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml.in
${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml @ONLY
)
list(APPEND DDCAD_Tests BHV_Boxing_Toes Collada_duck PLY_Wuson) list(APPEND DDCAD_Tests BHV_Boxing_Toes Collada_duck PLY_Wuson)
foreach (test ${DDCAD_Tests}) foreach (test ${DDCAD_Tests})
dd4hep_add_test_reg( DDCAD_Check_Shape_${test} dd4hep_add_test_reg( DDCAD_Check_Shape_${test}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<check vis="Shape1_vis"> <check vis="Shape1_vis">
<shape type="CAD_Shape" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/Collada/duck.dae" mesh="0"/> <shape type="CAD_Shape" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/Collada/duck.dae" mesh="0"/>
</check> </check>
<test type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt" create="CheckShape_create"/> <test type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt.@assimp_VERSION@" create="CheckShape_create"/>
</detector> </detector>
</detectors> </detectors>
</lccdd> </lccdd>
source diff could not be displayed: it is too large. Options to address this: view the blob.
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