Skip to content
Snippets Groups Projects
CMakeLists.txt 985 B
Newer Older

gaudi_subdir(DetSimCore v0r0)

gaudi_depends_on_subdirs(
    Simulation/DetSimInterface
)

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
find_package(podio REQUIRED)
find_package(plcio REQUIRED) 
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
find_package(DD4hep COMPONENTS DDG4 REQUIRED)

set(DetSimCore_srcs
    src/DetSimSvc.cpp
    src/PrimaryGeneratorAction.cpp
    src/G4PrimaryCnvTool.cpp
    src/ActionInitialization.cpp
    src/RunAction.cpp
    src/EventAction.cpp
    src/TrackingAction.cpp
    src/SteppingAction.cpp
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
message(" Geant4_LIBRARIES: ${Geant4_LIBRARIES}")

gaudi_add_module(DetSimCore ${DetSimCore_srcs}
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
    INCLUDE_DIRS
      # DetSimInterface
      # GaudiKernel
      # Geant4
      # plcio ${plcio_INCLUDE_DIRS} ${podio_INCLUDE_DIRS}
    LINK_LIBRARIES
      DetSimInterface
      GaudiKernel
      # Geant4
      # ${Geant4_LIBRARIES}
      DD4hep ${DD4hep_COMPONENT_LIBRARIES} 
      plcio
      # podio