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 @@
add_subdirectory(DetSimCore)
#add_subdirectory(DetSimDedx)
#add_subdirectory(DetSimFastModel)
#add_subdirectory(DetSimGeom)
add_subdirectory(DetSimGeom)
add_subdirectory(DetSimInterface)
#add_subdirectory(DetSimSD)
gaudi_subdir(DetSimGeom v0r0)
gaudi_depends_on_subdirs(
Simulation/DetSimInterface
Detector/DetInterface
)
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
find_package(DD4hep COMPONENTS DDG4 REQUIRED)
......@@ -15,15 +8,19 @@ set(DetSimGeom_srcs
src/AnExampleDetElemTool.cpp
)
gaudi_add_module(DetSimGeom ${DetSimGeom_srcs}
INCLUDE_DIRS
# DetSimInterface
# DetInterface
# DD4hep
# GaudiKernel
# Geant4
LINK_LIBRARIES
DD4hep ${DD4hep_COMPONENT_LIBRARIES}
GaudiKernel
# Geant4
gaudi_add_module(DetSimGeom
SOURCES ${DetSimGeom_srcs}
LINK DetSimInterface
DetInterface
${DD4hep_COMPONENT_LIBRARIES}
Gaudi::GaudiKernel
${Geant4_LIBRARIES}
)
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 @@
#define AnExampleDetElemTool_h
#include "GaudiKernel/AlgTool.h"
#include "GaudiKernel/Property.h"
#include <Gaudi/Property.h>
#include <GaudiKernel/ToolHandle.h>
#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