Skip to content
Snippets Groups Projects
Forked from cepc / CEPCSW
725 commits behind the upstream repository.
CMakeLists.txt 1.41 KiB
########################################

find_package(Geant4 REQUIRED)
include(${Geant4_USE_FILE})

gaudi_add_module(GenAlgo
                 SOURCES src/IGenTool.cpp 
                         src/GenAlgo.cpp 
                         src/GenEvent.cpp 
                         src/GenReader.cpp 
                         src/StdHepRdr.cpp 
                         src/GenPrinter.cpp
                         # src/LCAscHepRdr.cc
                         # src/HepevtRdr.cpp
                         src/SLCIORdr.cpp
                         src/HepMCRdr.cpp
                         src/GtGunTool.cpp
                         # ------- Beam Background -------
                         src/GtBeamBackgroundTool.cpp
                         src/BeamBackgroundFileParserV0.cpp
                 LINK ${ROOT_LIBRARIES}
                      k4FWCore::k4FWCore 
                      Gaudi::GaudiAlgLib
                      Gaudi::GaudiKernel
                      ${HEPMC_LIBRARIES}
                      ${CLHEP_LIBRARIES}
                      ${LCIO_LIBRARIES}
                      EDM4HEP::edm4hep EDM4HEP::edm4hepDict
                      ROOT::EG
)

target_include_directories(GenAlgo
  PUBLIC ${LCIO_INCLUDE_DIRS}
  PUBLIC ${HEPMC_INCLUDE_DIRS}
)

install(TARGETS GenAlgo
  EXPORT CEPCSWTargets
  RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
  LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
  COMPONENT dev)