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

WIP: migrate DetSimGeom.

parent 802a6b01
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
add_subdirectory(DetSimCore) add_subdirectory(DetSimCore)
#add_subdirectory(DetSimDedx) #add_subdirectory(DetSimDedx)
#add_subdirectory(DetSimFastModel) #add_subdirectory(DetSimFastModel)
#add_subdirectory(DetSimGeom) add_subdirectory(DetSimGeom)
add_subdirectory(DetSimInterface) add_subdirectory(DetSimInterface)
#add_subdirectory(DetSimSD) #add_subdirectory(DetSimSD)
gaudi_subdir(DetSimGeom v0r0)
gaudi_depends_on_subdirs(
Simulation/DetSimInterface
Detector/DetInterface
)
find_package(Geant4 REQUIRED ui_all vis_all) find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE}) include(${Geant4_USE_FILE})
find_package(DD4hep COMPONENTS DDG4 REQUIRED) find_package(DD4hep COMPONENTS DDG4 REQUIRED)
...@@ -15,15 +8,19 @@ set(DetSimGeom_srcs ...@@ -15,15 +8,19 @@ set(DetSimGeom_srcs
src/AnExampleDetElemTool.cpp src/AnExampleDetElemTool.cpp
) )
gaudi_add_module(DetSimGeom ${DetSimGeom_srcs} gaudi_add_module(DetSimGeom
INCLUDE_DIRS SOURCES ${DetSimGeom_srcs}
# DetSimInterface LINK DetSimInterface
# DetInterface DetInterface
# DD4hep ${DD4hep_COMPONENT_LIBRARIES}
# GaudiKernel Gaudi::GaudiKernel
# Geant4 ${Geant4_LIBRARIES}
LINK_LIBRARIES
DD4hep ${DD4hep_COMPONENT_LIBRARIES}
GaudiKernel
# Geant4
) )
install(TARGETS DetSimGeom
EXPORT CEPCSWTargets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
COMPONENT dev)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define AnExampleDetElemTool_h #define AnExampleDetElemTool_h
#include "GaudiKernel/AlgTool.h" #include "GaudiKernel/AlgTool.h"
#include "GaudiKernel/Property.h" #include <Gaudi/Property.h>
#include <GaudiKernel/ToolHandle.h> #include <GaudiKernel/ToolHandle.h>
#include "G4SystemOfUnits.hh" #include "G4SystemOfUnits.hh"
......
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