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

ReadEDM4hep: only when we have podioIO target (podio > 1.0)

parent 6e580c3b
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,19 @@ ENDIF()
IF(TARGET EDM4HEP::edm4hep)
dd4hep_add_plugin(DDG4EDM4HEP
SOURCES edm4hep/*.cpp
USES DD4hep::DDG4 EDM4HEP::edm4hep EDM4HEP::edm4hepDict podio::podio podio::podioDict podio::podioRootIO podio::podioIO
SOURCES edm4hep/Geant4Output2EDM4hep.cpp
USES DD4hep::DDG4 EDM4HEP::edm4hep EDM4HEP::edm4hepDict podio::podio podio::podioDict podio::podioRootIO
)
install(TARGETS DDG4EDM4HEP EXPORT DD4hep LIBRARY DESTINATION lib)
set_target_properties(DDG4EDM4HEP PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
if(TARGET(podio::podioIO))
dd4hep_add_plugin(DDG4EDM4HEPReader
SOURCES edm4hep/EDM4hepFileReader.cpp
USES DD4hep::DDG4 EDM4HEP::edm4hep EDM4HEP::edm4hepDict podio::podio podio::podioDict podio::podioIO
)
install(TARGETS DDG4EDM4HEPReader EXPORT DD4hep LIBRARY DESTINATION lib)
set_target_properties(DDG4EDM4HEPReader PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
endif()
ENDIF()
IF(DD4HEP_USE_HEPMC3)
......
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