From 7cc5ef0d74da50febfae9fc6a3fe0de1b5803430 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Tue, 22 Oct 2024 09:25:35 +0200 Subject: [PATCH] Examples: RICH: Needs DDG4 for the test --- examples/RICH/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/RICH/CMakeLists.txt b/examples/RICH/CMakeLists.txt index 16be1d911..711140c03 100644 --- a/examples/RICH/CMakeLists.txt +++ b/examples/RICH/CMakeLists.txt @@ -39,6 +39,10 @@ install(TARGETS RICHExample LIBRARY DESTINATION lib) install(DIRECTORY compact scripts DESTINATION ${RICH_INSTALL} ) dd4hep_configure_scripts( RICH DEFAULT_SETUP WITH_TESTS) +if(NOT TARGET DD4hep::DDG4) + return() +endif() + # ---Test: run simulation dd4hep_add_test_reg( RICH_simulation COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_RICH.sh" -- GitLab