From 27504019ea9e9ba86bec3d3030a243372df0bf8c Mon Sep 17 00:00:00 2001 From: Markus Frank <markus.frank@cern.ch> Date: Wed, 2 Mar 2016 15:36:01 +0000 Subject: [PATCH] Fix bug linking teveLCIO --- UtilityApps/CMakeLists.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/UtilityApps/CMakeLists.txt b/UtilityApps/CMakeLists.txt index e09626807..88368cb92 100644 --- a/UtilityApps/CMakeLists.txt +++ b/UtilityApps/CMakeLists.txt @@ -30,14 +30,21 @@ dd4hep_add_executable(test_surfaces OPTIONAL [LCIO REQUIRED SOURCES src/test_surfaces.cpp]) #----------------------------------------------------------------------------------- dd4hep_add_dictionary( G__teve - SOURCES src/EvNavHand*.h + SOURCES src/EvNavHandler.h LINKDEF src/LinkDef.h ) + +#----------------------------------------------------------------------------------- +if ( ${DD4HEP_USE_LCIO} ) + dd4hep_add_executable( teveLCIO + USES [ROOT REQUIRED COMPONENTS TEve] + [LCIO REQUIRED] + DDRec + SOURCES G__teve.cxx src/teve_display.cpp src/next_event_lcio.cpp + ) +endif() + #----------------------------------------------------------------------------------- dd4hep_add_executable( teveDisplay USES [ROOT REQUIRED COMPONENTS TEve] DDRec SOURCES src/teve_display.cpp src/next_event_dummy.cpp G__teve.cxx ) -#----------------------------------------------------------------------------------- -dd4hep_add_executable( teveLCIO - USES [ROOT REQUIRED COMPONENTS TEve] DDRec - OPTIONAL [LCIO REQUIRED SOURCES src/teve_display.cpp src/next_event_lcio.cpp G__teve.cxx] ) -- GitLab