Skip to content
Snippets Groups Projects
CMakeLists.txt 1.5 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)
fangwx@ihep.ac.cn's avatar
V3  
fangwx@ihep.ac.cn committed
find_package(ROOT COMPONENTS RIO Tree TreePlayer MathCore Net Graf3d Graf Gpad REQUIRED)
find_package(LCIO)
find_package(podio)
find_package(plcio)
find_package(HepMC)
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)
############## for producing plcio library #############
INCLUDE_DIRECTORIES(${GenAlgo_incs})

gaudi_add_module(GenAlgo ${GenAlgo_srcs} 
INCLUDE_DIRS 
GaudiKernel
FWCore
${LCIO_INCLUDE_DIRS}
${podio_INCLUDE_DIRS}
${plcio_INCLUDE_DIRS}
${ROOT_INCLUDE_DIRS}
HepMC
LINK_LIBRARIES GaudiKernel ${LCIO_LIBRARIES} ${podio_LIBRARIES}  ROOT ${plcio_LIBRARY_DIR}/libplcio.so  ${plcio_LIBRARY_DIR}/libplcioDict.so FWCore HepMC
)
#gaudi_add_test(Reader FRAMEWORK options/read.py)

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