Skip to content
Snippets Groups Projects
Commit 802a6b01 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: migrate DetSimCore

parent c0883fe6
No related branches found
No related tags found
No related merge requests found
#add_subdirectory(DetSimAna)
#add_subdirectory(DetSimCore)
add_subdirectory(DetSimCore)
#add_subdirectory(DetSimDedx)
#add_subdirectory(DetSimFastModel)
#add_subdirectory(DetSimGeom)
......
gaudi_subdir(DetSimCore v0r0)
gaudi_depends_on_subdirs(
k4FWCore
Simulation/DetSimInterface
)
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
find_package(podio REQUIRED)
find_package(EDM4HEP REQUIRED)
find_package(DD4hep COMPONENTS DDG4 REQUIRED)
......@@ -27,18 +20,19 @@ set(DetSimCore_srcs
message(" Geant4_LIBRARIES: ${Geant4_LIBRARIES}")
gaudi_add_module(DetSimCore ${DetSimCore_srcs}
INCLUDE_DIRS
# DetSimInterface
# GaudiKernel
# Geant4
# plcio ${plcio_INCLUDE_DIRS} ${podio_INCLUDE_DIRS}
LINK_LIBRARIES
DetSimInterface
GaudiKernel
# Geant4
# ${Geant4_LIBRARIES}
DD4hep ${DD4hep_COMPONENT_LIBRARIES}
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
# podio
gaudi_add_module(DetSimCore
SOURCES ${DetSimCore_srcs}
LINK DetSimInterface
Gaudi::GaudiKernel
${Geant4_LIBRARIES}
${DD4hep_COMPONENT_LIBRARIES}
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
)
install(TARGETS DetSimCore
EXPORT CEPCSWTargets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
COMPONENT dev)
......@@ -5,7 +5,7 @@
#include <vector>
#include <GaudiKernel/Algorithm.h>
#include <GaudiKernel/Property.h>
#include <Gaudi/Property.h>
#include <GaudiKernel/ToolHandle.h>
#include <DetSimInterface/IDetSimSvc.h>
......
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