Newer
Older
#[[
Find all the dependencies here, so in each package user don't need to find the packages again.
- CLHEP
- DD4hep
- EDM4hep
- Gaudi
- Geant4
- GEAR
- GSL
- HepMC
- k4FWCore
- LCContent
- LCIO
- PandoraSDK
- podio
- ROOT
- ILCUTIL
- KalTest
- aidaTT
- DDKalTest
- RDAnalysis
#]]
##############################################################################
# import Gaudi at beginning
##############################################################################
find_package(Gaudi REQUIRED)
find_package(CLHEP REQUIRED;CONFIG)
find_package(DD4hep COMPONENTS DDCore DDG4 DDParsers DDRec REQUIRED)
include(DD4hep) # include necessary macro
find_package(EDM4HEP REQUIRED)
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
find_package(GEAR REQUIRED)
find_package(GSL REQUIRED)
find_package(HepMC)
find_package(k4FWCore REQUIRED)
find_package(LCContent REQUIRED)
find_package(LCIO REQUIRED)
find_package(OnnxRuntime REQUIRED)
find_package(PandoraSDK REQUIRED)
find_package(podio REQUIRED)
find_package(ROOT COMPONENTS EG Geom GenVector Graf Graf3d Gpad MathCore Net RIO Tree TreePlayer REQUIRED)
if (CEPCSW_USE_SYSTEM_CKF_BELLE)
message("Try to use an existing installation of CKF BELLE")
else()
message("Try to use an internal installation of CKF BELLE")
include("${CMAKE_CURRENT_LIST_DIR}/internal_ckf.cmake")
endif()
if (CEPCSW_USE_SYSTEM_ILCUTIL)
message("Try to use an existing installation of ILCUTIL")
find_package(ILCUTIL)
else()
message("Try to use an internal installation of ILCUTIL")
include("${CMAKE_CURRENT_LIST_DIR}/internal_ilcutil.cmake")
endif()
if (CEPCSW_USE_SYSTEM_KALTEST)
message("Try to use an existing installation of KalTest")
find_package(KalTest)
else()
message("Try to use an internal installation of KalTest")
include("${CMAKE_CURRENT_LIST_DIR}/internal_kaltest.cmake")
endif()
if (CEPCSW_USE_SYSTEM_AIDATT)
message("Try to use an existing installation of aidaTT")
find_package(aidaTT)
else()
message("Try to use an internal installation of aidaTT")
include("${CMAKE_CURRENT_LIST_DIR}/internal_aidatt.cmake")
endif()
if (CEPCSW_USE_SYSTEM_DDKALTEST)
message("Try to use an existing installation of DDKalTest")
find_package(DDKalTest)
else()
message("Try to use an internal installation of DDKalTest")
include("${CMAKE_CURRENT_LIST_DIR}/internal_ddkaltest.cmake")
endif()
if (CEPCSW_USE_SYSTEM_EDM4CEPC)
message("Try to use an existing installation of EDM4CEPC")
find_package(EDM4CEPC REQUIRED)
else()
message("Try to use an internal installation of EDM4CEPC")
include("${CMAKE_CURRENT_LIST_DIR}/internal_edm4cepc.cmake")
endif()
find_package(FastJet)
if (CEPCSW_USE_SYSTEM_RDANALYSIS)
message("Try to use an existing installation of RDAnalysis")
find_package(RDAnalysis)
else()
message("Try to use an internal installation of RDAnalysis")
include("${CMAKE_CURRENT_LIST_DIR}/internal_rdana.cmake")
endif()