Skip to content

Commit

Permalink
DDG4: re-arrange to use new dd4hep_add_dictionary with TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Mar 11, 2024
1 parent 889969b commit d328a60
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions DDG4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ if(NOT Geant4_gdml_FOUND)
else()
dd4hep_print("|++> Geant4 GDML library present....build G4 GDML components")
endif()
#-----------------------------------------------------------------------------------
dd4hep_add_dictionary( G__DDG4
SOURCES python/DDG4Dict.C
USES DD4hep::DDCore DD4hep::DDParsers DD4hep::DDG4 Geant4::Interface
)
#--------------------------- Plugin library for the simulation framework ---------
dd4hep_add_plugin(DDG4Plugins
SOURCES plugins/*.cpp
GENERATED G__DDG4.cxx
USES DD4hep::DDG4 DD4hep::DDParsers ${XML_LIBRARIES} ROOT::Core ${CLHEP}
)
dd4hep_add_dictionary( G__DDG4
TARGET DDG4Plugins
SOURCES python/DDG4Dict.C
USES DD4hep::DDCore DD4hep::DDParsers DD4hep::DDG4 Geant4::Interface
)
#--------------------------- Plugin library for the simulation framework ---------

if(TARGET Python::Python AND TARGET ${DD4HEP_ROOT_PYTHON})
dd4hep_print("|++> Python found, creating DDG4Python Dictionary")
Expand Down

0 comments on commit d328a60

Please sign in to comment.