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

find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})

set(DetSimGeom_srcs
    src/WorldDetElemTool.cpp
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)