Skip to content
Snippets Groups Projects
CMakeLists.txt 1.12 KiB
Newer Older
###############################################################################
# Package: DetEcalMatrix 
# Based on package: lcgeo
################################################################################
gaudi_subdir(DetEcalMatrix v0r0)

gaudi_depends_on_subdirs(GaudiKernel)


find_package(DD4hep COMPONENTS DDRec DDG4 DDParsers REQUIRED)
find_package(Geant4)
include(${Geant4_USE_FILE})

set(CMAKE_MODULE_PATH  ${CMAKE_MODULE_PATH}  ${DD4hep_ROOT}/cmake )
include( DD4hep )

find_package(ROOT COMPONENTS MathCore GenVector Geom REQUIRED)

install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/compact DESTINATION Detector/DetEcalMatrix)

set(DetEcalMatrix_src
    src/calorimeter/EcalMatrix.cpp
)

gaudi_add_module(DetEcalMatrix
                  ${DetEcalMatrix_src}
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
		  INCLUDE_DIRS
                  # DD4hep ROOT Geant4 src/include
		  LINK_LIBRARIES 
                  # GaudiKernel 
                  DD4hep ${DD4hep_COMPONENT_LIBRARIES} 
                  # ROOT Geant4
)

set(LIBRARY_OUTPUT_PATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
message(STATUS "LIBRARY_OUTPUT_PATH -> ${LIBRARY_OUTPUT_PATH}")
dd4hep_generate_rootmap(DetEcalMatrix)