Skip to content
Snippets Groups Projects
CMakeLists.txt 1.85 KiB
Newer Older
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
########################################
gaudi_subdir(Generator v0r0)
set(GenAlgo_srcs 
    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
)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
set(GenAlgo_incs src)
find_package(Geant4 REQUIRED)
include(${Geant4_USE_FILE})

find_package(ROOT COMPONENTS RIO Tree TreePlayer MathCore Net Graf3d Graf Gpad EG REQUIRED)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
find_package(LCIO)
find_package(podio)
find_package(plcio)
find_package(EDM4HEP)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
find_package(HepMC)
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
find_package(CLHEP)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
if(ROOT_FOUND)
    message("found ROOT: ${ROOT_INCLUDE_DIRS} ${ROOT_LIBRARIES}")
endif(ROOT_FOUND)
if(LCIO_FOUND)
    message("found LCIO: ${LCIO_INCLUDE_DIRS} ${LCIO_LIBRARIES}")
endif(LCIO_FOUND)
if(podio_FOUND)
    message("found podio: ${podio_INCLUDE_DIRS} ${podio_LIBRARIES}")
endif(podio_FOUND)
if(plcio_FOUND)
    message("found plcio: ${plcio_INCLUDE_DIRS} ${plcio_LIBRARY_DIR}")
endif(plcio_FOUND)
if(HepMC_FOUND)
    message("found HepMC: ${HepMC_INCLUDE_DIRS} ${HepMC_LIBRARY_DIR}")
endif(HepMC_FOUND)
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
if(CLHEP_FOUND)
    message("found CLHEP: ${CLHEP_INCLUDE_DIRS} ${CLHEP_LIBRARY_DIR}")
endif(CLHEP_FOUND)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
############## for producing plcio library #############
INCLUDE_DIRECTORIES(${GenAlgo_incs})

gaudi_add_module(GenAlgo ${GenAlgo_srcs} 
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
  #   GaudiKernel
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
  #   Geant4
  #   ${LCIO_INCLUDE_DIRS}
  #   ${podio_INCLUDE_DIRS}
  #   ${plcio_INCLUDE_DIRS}
  #   ${ROOT_INCLUDE_DIRS}
  #   HepMC
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
  #   GaudiKernel 
  #   ${LCIO_LIBRARIES}
  #   ${podio_LIBRARIES}
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
  #   ${plcio_LIBRARY_DIR}/libplcio.so
  #   ${plcio_LIBRARY_DIR}/libplcioDict.so
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
    CLHEP
  #   Geant4
    EDM4HEP::edm4hep
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
#gaudi_add_test(Reader FRAMEWORK options/read.py)

###########################