From e969a926a5c485fcb81983e7a27ca1e0b2ce4cbf Mon Sep 17 00:00:00 2001 From: fca Date: Thu, 31 Jul 2008 14:38:57 +0000 Subject: [PATCH] Preliminary files for CMake --- ACORDE/CMakeLists.txt | 29 + ACORDE/CMake_libACORDEbase.txt | 12 + ACORDE/CMake_libACORDErec.txt | 12 + ACORDE/CMake_libACORDEsim.txt | 13 + ALIROOT/CMakeLists.txt | 22 + ALIROOT/CMake_binaliroot.txt | 18 + ANALYSIS/CMakeLists.txt | 38 + ANALYSIS/CMake_binaliengui.txt | 17 + ANALYSIS/CMake_libANALYSIS.txt | 15 + ANALYSIS/CMake_libANALYSISRL.txt | 11 + ANALYSIS/CMake_libANALYSISalice.txt | 17 + ANALYSIS/CMake_libAliengui.txt | 20 + ANALYSIS/CMake_libAnalysisOld.txt | 36 + BCM/CMakeLists.txt | 24 + BCM/CMake_libBCM.txt | 14 + CMakeLists.txt | 146 +++ CORRFW/CMakeLists.txt | 25 + CORRFW/CMake_libCORRFW.txt | 35 + DPMJET/CMakeLists.txt | 23 + DPMJET/CMake_libDPMJET.txt | 22 + EMCAL/CMakeLists.txt | 33 + EMCAL/CMake_libEMCALbase.txt | 32 + EMCAL/CMake_libEMCALcalib.txt | 17 + EMCAL/CMake_libEMCALrec.txt | 16 + EMCAL/CMake_libEMCALsim.txt | 19 + ESDCheck/CMakeLists.txt | 24 + ESDCheck/CMake_libAnalysisCheck.txt | 23 + EVE/CMakeLists.txt | 44 + EVE/CMake_binalieve.txt | 17 + EVE/CMake_libEveBase.txt | 24 + EVE/CMake_libEveDet.txt | 54 + EVE/CMake_libEveHLT.txt | 15 + EVGEN/CMakeLists.txt | 25 + EVGEN/CMake_libEVGEN.txt | 56 ++ FASTSIM/CMakeLists.txt | 24 + FASTSIM/CMake_libFASTSIM.txt | 23 + FMD/CMakeLists.txt | 33 + FMD/CMake_libFMDbase.txt | 31 + FMD/CMake_libFMDflow.txt | 21 + FMD/CMake_libFMDrec.txt | 15 + FMD/CMake_libFMDsim.txt | 22 + FMD/CMake_libFMDutil.txt | 21 + HBTAN/CMakeLists.txt | 25 + HBTAN/CMake_libHBTAN.txt | 33 + HERWIG/CMakeLists.txt | 23 + HERWIG/CMake_libHERWIG.txt | 103 ++ HIJING/CMakeLists.txt | 24 + HIJING/CMake_libHIJING.txt | 171 ++++ HLT/BASE/interface/HLTinterfaceLinkDef.h | 8 + HLT/BASE/util/AliHLTUtilLinkDef.h | 18 + HLT/CMakeLists.txt | 92 ++ HLT/CMake_bindHLTdumpraw.txt | 11 + HLT/CMake_libAliHLTComp.txt | 19 + HLT/CMake_libAliHLTEMCAL.txt | 15 + HLT/CMake_libAliHLTHOMER.txt | 21 + HLT/CMake_libAliHLTITS.txt | 14 + HLT/CMake_libAliHLTMUON.txt | 53 + HLT/CMake_libAliHLTPHOS.txt | 85 ++ HLT/CMake_libAliHLTRCU.txt | 14 + HLT/CMake_libAliHLTSample.txt | 17 + HLT/CMake_libAliHLTTPC.txt | 104 ++ HLT/CMake_libAliHLTTRD.txt | 17 + HLT/CMake_libAliHLTTrigger.txt | 15 + HLT/CMake_libAliHLTUtil.txt | 29 + HLT/CMake_libHLTbase.txt | 52 + HLT/CMake_libHLTinterface.txt | 11 + HLT/CMake_libHLTrec.txt | 16 + HLT/CMake_libHLTshuttle.txt | 11 + HLT/CMake_libHLTsim.txt | 13 + HLT/HLTbaseLinkDef.h | 40 + HLT/ITS/AliHLTITSLinkDef.h | 12 + HLT/RCU/AliHLTRCULinkDef.h | 12 + HLT/SampleLib/AliHLTSampleLinkDef.h | 15 + HLT/TPCLib/AliHLTTPCLinkDef.h | 73 ++ HLT/comp/AliHLTCompLinkDef.h | 17 + HLT/rec/HLTrecLinkDef.h | 12 + HLT/shuttle/HLTshuttleLinkDef.h | 9 + HLT/sim/HLTsimLinkDef.h | 11 + HLT/trigger/AliHLTTriggerLinkDef.h | 8 +- HMPID/CMakeLists.txt | 27 + HMPID/CMake_libHMPIDbase.txt | 12 + HMPID/CMake_libHMPIDrec.txt | 15 + HMPID/CMake_libHMPIDsim.txt | 12 + ISAJET/CMakeLists.txt | 26 + ISAJET/CMake_libisajet.txt | 363 +++++++ ITS/CMakeLists.txt | 29 + ITS/CMake_libITSbase.txt | 75 ++ ITS/CMake_libITSrec.txt | 106 ++ ITS/CMake_libITSsim.txt | 51 + JETAN/CMakeLists.txt | 28 + JETAN/CMake_libJETAN.txt | 46 + JETAN/CMake_libJETANMC.txt | 11 + LHAPDF/CMakeLists.txt | 23 + LHAPDF/CMake_libLHAPDF.txt | 62 ++ LHC/CMakeLists.txt | 23 + LHC/CMake_libLHC.txt | 19 + MICROCERN/CMakeLists.txt | 23 + MICROCERN/CMake_libMICROCERN.txt | 37 + MONITOR/CMakeLists.txt | 32 + MONITOR/CMake_binderoot.txt | 13 + MONITOR/CMake_binmonitorCheck.txt | 12 + MONITOR/CMake_binmonitorGDC.txt | 12 + MONITOR/CMake_libMONITOR.txt | 16 + MUON/CMakeLists.txt | 49 + MUON/CMake_binmchview.txt | 11 + MUON/CMake_libMUONbase.txt | 32 + MUON/CMake_libMUONcalib.txt | 27 + MUON/CMake_libMUONcore.txt | 26 + MUON/CMake_libMUONevaluation.txt | 21 + MUON/CMake_libMUONgeometry.txt | 21 + MUON/CMake_libMUONgraphics.txt | 44 + MUON/CMake_libMUONmapping.txt | 128 +++ MUON/CMake_libMUONraw.txt | 28 + MUON/CMake_libMUONrec.txt | 56 ++ MUON/CMake_libMUONshuttle.txt | 19 + MUON/CMake_libMUONsim.txt | 38 + MUON/CMake_libMUONtrigger.txt | 19 + PHOS/CMakeLists.txt | 31 + PHOS/CMake_libPHOSbase.txt | 41 + PHOS/CMake_libPHOSrec.txt | 25 + PHOS/CMake_libPHOSshuttle.txt | 18 + PHOS/CMake_libPHOSsim.txt | 18 + PMD/CMakeLists.txt | 28 + PMD/CMake_libPMDbase.txt | 11 + PMD/CMake_libPMDrec.txt | 12 + PMD/CMake_libPMDsim.txt | 11 + PMD/libPMDsim.pkg | 1 + PWG0/CMakeLists.txt | 36 + PWG0/CMake_libPWG0base.txt | 19 + PWG0/CMake_libPWG0dep.txt | 12 + PWG0/CMake_libPWG0selectors.txt | 18 + PWG1/CMakeLists.txt | 28 + PWG1/CMake_libPWG1.txt | 29 + PWG2/CMakeLists.txt | 46 + PWG2/CMake_libPWG2.txt | 11 + PWG2/CMake_libPWG2AOD.txt | 13 + PWG2/CMake_libPWG2ebye.txt | 18 + PWG2/CMake_libPWG2femtoscopy.txt | 111 +++ PWG2/CMake_libPWG2femtoscopyUser.txt | 27 + PWG2/CMake_libPWG2flow.txt | 33 + PWG2/CMake_libPWG2resonances.txt | 30 + PWG2/CMake_libPWG2spectra.txt | 12 + PWG3/CMakeLists.txt | 35 + PWG3/CMake_libPWG3.txt | 11 + PWG3/CMake_libPWG3base.txt | 12 + PWG3/CMake_libPWG3muon.txt | 18 + PWG3/CMake_libPWG3vertexingHF.txt | 16 + PWG3/CMake_libPWG3vertexingOld.txt | 12 + PWG4/CMakeLists.txt | 25 + PWG4/CMake_libPWG4PartCorr.txt | 20 + PYTHIA6/CMakeLists.txt | 29 + PYTHIA6/CMake_libAliPythia6.txt | 12 + PYTHIA6/CMake_libpythia6.txt | 28 + PYTHIA8/CMakeLists.txt | 24 + PYTHIA8/CMake_libAliPythia8.txt | 12 + RALICE/CMakeLists.txt | 23 + RALICE/CMake_libRALICE.txt | 18 + RAW/CMakeLists.txt | 39 + RAW/CMake_binalimdc.txt | 14 + RAW/CMake_binalirawdump.txt | 12 + RAW/CMake_bindateStream.txt | 12 + RAW/CMake_libMDC.txt | 14 + RAW/CMake_libMDCFilter.txt | 11 + RAW/CMake_libRAWDatabase.txt | 18 + RAW/CMake_libRAWDatarec.txt | 20 + RAW/CMake_libRAWDatarecOnline.txt | 11 + RAW/CMake_libRAWDatasim.txt | 12 + STAT/CMakeLists.txt | 25 + STAT/CMake_libSTAT.txt | 19 + STEER/ARVersion.h.in | 6 + STEER/CMakeLists.txt | 32 + STEER/CMake_libAOD.txt | 18 + STEER/CMake_libCDB.txt | 17 + STEER/CMake_libESD.txt | 38 + STEER/CMake_libSTEER.txt | 123 +++ STEER/CMake_libSTEER.txt.ori | 121 +++ STEER/CMake_libSTEERBase.txt | 32 + STEER/CMake_libSTEERBase.txt.ori | 32 + STRUCT/CMakeLists.txt | 24 + STRUCT/CMake_libSTRUCT.txt | 18 + T0/CMakeLists.txt | 30 + T0/CMake_libT0base.txt | 26 + T0/CMake_libT0rec.txt | 14 + T0/CMake_libT0shuttle.txt | 13 + T0/CMake_libT0sim.txt | 15 + TDPMjet/CMakeLists.txt | 27 + TDPMjet/CMake_libTDPMjet.txt | 14 + TEPEMGEN/CMakeLists.txt | 25 + TEPEMGEN/CMake_libTEPEMGEN.txt | 21 + TFluka/CMakeLists.txt | 71 ++ THbtp/CMakeLists.txt | 25 + THbtp/CMake_libTHbtp.txt | 13 + THerwig/CMakeLists.txt | 28 + THerwig/CMake_libTHerwig.txt | 12 + THijing/CMakeLists.txt | 27 + THijing/CMake_libTHijing.txt | 14 + THydjet/CMakeLists.txt | 26 + THydjet/CMake_libTHydjet.txt | 22 + TIsajet/CMakeLists.txt | 26 + TIsajet/CMake_libTIsajet.txt | 13 + TOF/CMakeLists.txt | 29 + TOF/CMake_libTOFbase.txt | 31 + TOF/CMake_libTOFrec.txt | 20 + TOF/CMake_libTOFsim.txt | 25 + TPC/CMakeLists.txt | 37 + TPC/CMake_libTPCbase.txt | 30 + TPC/CMake_libTPCcalib.txt | 29 + TPC/CMake_libTPCfast.txt | 16 + TPC/CMake_libTPCmon.txt | 21 + TPC/CMake_libTPCrec.txt | 39 + TPC/CMake_libTPCsim.txt | 23 + TPHIC/CMakeLists.txt | 26 + TPHIC/CMake_libTPHIC.txt | 19 + TRD/CMakeLists.txt | 40 + TRD/CMake_libTRDbase.txt | 76 ++ TRD/CMake_libTRDfast.txt | 10 + TRD/CMake_libTRDgui.txt | 23 + TRD/CMake_libTRDqaAnalysis.txt | 16 + TRD/CMake_libTRDrec.txt | 33 + TRD/CMake_libTRDsim.txt | 16 + TTherminator/CMakeLists.txt | 25 + TTherminator/CMake_libTTherminator.txt | 25 + VZERO/CMakeLists.txt | 29 + VZERO/CMake_libVZERObase.txt | 16 + VZERO/CMake_libVZEROrec.txt | 15 + VZERO/CMake_libVZEROsim.txt | 24 + ZDC/CMakeLists.txt | 29 + ZDC/CMake_libZDCbase.txt | 21 + ZDC/CMake_libZDCrec.txt | 16 + ZDC/CMake_libZDCsim.txt | 20 + cmake/modules/ALICEMacros.cmake | 1156 ++++++++++++++++++++++ cmake/modules/CbmMacros.cmake | 312 ++++++ cmake/modules/CheckCompiler.cmake | 72 ++ cmake/modules/CheckCompiler.cmake.ori | 118 +++ cmake/modules/FindCLHEP.cmake | 43 + cmake/modules/FindDATE.cmake | 35 + cmake/modules/FindGEANT3.cmake | 54 + cmake/modules/FindGEANT4.cmake | 63 ++ cmake/modules/FindGEANT4VMC.cmake | 97 ++ cmake/modules/FindGENERATORS.cmake | 58 ++ cmake/modules/FindPLUTO.cmake | 46 + cmake/modules/FindROOT.cmake | 120 +++ cmake/modules/FindRuleChecker.cmake | 73 ++ cmake/modules/FindRuleChecker.cmake.ori | 187 ++++ cmake/modules/Findfink.cmake | 19 + cmake/modules/WriteConfigFile.cmake | 187 ++++ 246 files changed, 9433 insertions(+), 3 deletions(-) create mode 100644 ACORDE/CMakeLists.txt create mode 100644 ACORDE/CMake_libACORDEbase.txt create mode 100644 ACORDE/CMake_libACORDErec.txt create mode 100644 ACORDE/CMake_libACORDEsim.txt create mode 100644 ALIROOT/CMakeLists.txt create mode 100644 ALIROOT/CMake_binaliroot.txt create mode 100644 ANALYSIS/CMakeLists.txt create mode 100644 ANALYSIS/CMake_binaliengui.txt create mode 100644 ANALYSIS/CMake_libANALYSIS.txt create mode 100644 ANALYSIS/CMake_libANALYSISRL.txt create mode 100644 ANALYSIS/CMake_libANALYSISalice.txt create mode 100644 ANALYSIS/CMake_libAliengui.txt create mode 100644 ANALYSIS/CMake_libAnalysisOld.txt create mode 100644 BCM/CMakeLists.txt create mode 100644 BCM/CMake_libBCM.txt create mode 100644 CMakeLists.txt create mode 100644 CORRFW/CMakeLists.txt create mode 100644 CORRFW/CMake_libCORRFW.txt create mode 100644 DPMJET/CMakeLists.txt create mode 100644 DPMJET/CMake_libDPMJET.txt create mode 100644 EMCAL/CMakeLists.txt create mode 100644 EMCAL/CMake_libEMCALbase.txt create mode 100644 EMCAL/CMake_libEMCALcalib.txt create mode 100644 EMCAL/CMake_libEMCALrec.txt create mode 100644 EMCAL/CMake_libEMCALsim.txt create mode 100644 ESDCheck/CMakeLists.txt create mode 100644 ESDCheck/CMake_libAnalysisCheck.txt create mode 100644 EVE/CMakeLists.txt create mode 100644 EVE/CMake_binalieve.txt create mode 100644 EVE/CMake_libEveBase.txt create mode 100644 EVE/CMake_libEveDet.txt create mode 100644 EVE/CMake_libEveHLT.txt create mode 100644 EVGEN/CMakeLists.txt create mode 100644 EVGEN/CMake_libEVGEN.txt create mode 100644 FASTSIM/CMakeLists.txt create mode 100644 FASTSIM/CMake_libFASTSIM.txt create mode 100644 FMD/CMakeLists.txt create mode 100644 FMD/CMake_libFMDbase.txt create mode 100644 FMD/CMake_libFMDflow.txt create mode 100644 FMD/CMake_libFMDrec.txt create mode 100644 FMD/CMake_libFMDsim.txt create mode 100644 FMD/CMake_libFMDutil.txt create mode 100644 HBTAN/CMakeLists.txt create mode 100644 HBTAN/CMake_libHBTAN.txt create mode 100644 HERWIG/CMakeLists.txt create mode 100644 HERWIG/CMake_libHERWIG.txt create mode 100644 HIJING/CMakeLists.txt create mode 100644 HIJING/CMake_libHIJING.txt create mode 100644 HLT/BASE/interface/HLTinterfaceLinkDef.h create mode 100644 HLT/BASE/util/AliHLTUtilLinkDef.h create mode 100644 HLT/CMakeLists.txt create mode 100644 HLT/CMake_bindHLTdumpraw.txt create mode 100644 HLT/CMake_libAliHLTComp.txt create mode 100644 HLT/CMake_libAliHLTEMCAL.txt create mode 100644 HLT/CMake_libAliHLTHOMER.txt create mode 100644 HLT/CMake_libAliHLTITS.txt create mode 100644 HLT/CMake_libAliHLTMUON.txt create mode 100644 HLT/CMake_libAliHLTPHOS.txt create mode 100644 HLT/CMake_libAliHLTRCU.txt create mode 100644 HLT/CMake_libAliHLTSample.txt create mode 100644 HLT/CMake_libAliHLTTPC.txt create mode 100644 HLT/CMake_libAliHLTTRD.txt create mode 100644 HLT/CMake_libAliHLTTrigger.txt create mode 100644 HLT/CMake_libAliHLTUtil.txt create mode 100644 HLT/CMake_libHLTbase.txt create mode 100644 HLT/CMake_libHLTinterface.txt create mode 100644 HLT/CMake_libHLTrec.txt create mode 100644 HLT/CMake_libHLTshuttle.txt create mode 100644 HLT/CMake_libHLTsim.txt create mode 100644 HLT/HLTbaseLinkDef.h create mode 100644 HLT/ITS/AliHLTITSLinkDef.h create mode 100644 HLT/RCU/AliHLTRCULinkDef.h create mode 100644 HLT/SampleLib/AliHLTSampleLinkDef.h create mode 100644 HLT/TPCLib/AliHLTTPCLinkDef.h create mode 100644 HLT/comp/AliHLTCompLinkDef.h create mode 100644 HLT/rec/HLTrecLinkDef.h create mode 100644 HLT/shuttle/HLTshuttleLinkDef.h create mode 100644 HLT/sim/HLTsimLinkDef.h create mode 100644 HMPID/CMakeLists.txt create mode 100644 HMPID/CMake_libHMPIDbase.txt create mode 100644 HMPID/CMake_libHMPIDrec.txt create mode 100644 HMPID/CMake_libHMPIDsim.txt create mode 100644 ISAJET/CMakeLists.txt create mode 100644 ISAJET/CMake_libisajet.txt create mode 100644 ITS/CMakeLists.txt create mode 100644 ITS/CMake_libITSbase.txt create mode 100644 ITS/CMake_libITSrec.txt create mode 100644 ITS/CMake_libITSsim.txt create mode 100644 JETAN/CMakeLists.txt create mode 100644 JETAN/CMake_libJETAN.txt create mode 100644 JETAN/CMake_libJETANMC.txt create mode 100644 LHAPDF/CMakeLists.txt create mode 100644 LHAPDF/CMake_libLHAPDF.txt create mode 100644 LHC/CMakeLists.txt create mode 100644 LHC/CMake_libLHC.txt create mode 100644 MICROCERN/CMakeLists.txt create mode 100644 MICROCERN/CMake_libMICROCERN.txt create mode 100644 MONITOR/CMakeLists.txt create mode 100644 MONITOR/CMake_binderoot.txt create mode 100644 MONITOR/CMake_binmonitorCheck.txt create mode 100644 MONITOR/CMake_binmonitorGDC.txt create mode 100644 MONITOR/CMake_libMONITOR.txt create mode 100644 MUON/CMakeLists.txt create mode 100644 MUON/CMake_binmchview.txt create mode 100644 MUON/CMake_libMUONbase.txt create mode 100644 MUON/CMake_libMUONcalib.txt create mode 100644 MUON/CMake_libMUONcore.txt create mode 100644 MUON/CMake_libMUONevaluation.txt create mode 100644 MUON/CMake_libMUONgeometry.txt create mode 100644 MUON/CMake_libMUONgraphics.txt create mode 100644 MUON/CMake_libMUONmapping.txt create mode 100644 MUON/CMake_libMUONraw.txt create mode 100644 MUON/CMake_libMUONrec.txt create mode 100644 MUON/CMake_libMUONshuttle.txt create mode 100644 MUON/CMake_libMUONsim.txt create mode 100644 MUON/CMake_libMUONtrigger.txt create mode 100644 PHOS/CMakeLists.txt create mode 100644 PHOS/CMake_libPHOSbase.txt create mode 100644 PHOS/CMake_libPHOSrec.txt create mode 100644 PHOS/CMake_libPHOSshuttle.txt create mode 100644 PHOS/CMake_libPHOSsim.txt create mode 100644 PMD/CMakeLists.txt create mode 100644 PMD/CMake_libPMDbase.txt create mode 100644 PMD/CMake_libPMDrec.txt create mode 100644 PMD/CMake_libPMDsim.txt create mode 100644 PWG0/CMakeLists.txt create mode 100644 PWG0/CMake_libPWG0base.txt create mode 100644 PWG0/CMake_libPWG0dep.txt create mode 100644 PWG0/CMake_libPWG0selectors.txt create mode 100644 PWG1/CMakeLists.txt create mode 100644 PWG1/CMake_libPWG1.txt create mode 100644 PWG2/CMakeLists.txt create mode 100644 PWG2/CMake_libPWG2.txt create mode 100644 PWG2/CMake_libPWG2AOD.txt create mode 100644 PWG2/CMake_libPWG2ebye.txt create mode 100644 PWG2/CMake_libPWG2femtoscopy.txt create mode 100644 PWG2/CMake_libPWG2femtoscopyUser.txt create mode 100644 PWG2/CMake_libPWG2flow.txt create mode 100644 PWG2/CMake_libPWG2resonances.txt create mode 100644 PWG2/CMake_libPWG2spectra.txt create mode 100644 PWG3/CMakeLists.txt create mode 100644 PWG3/CMake_libPWG3.txt create mode 100644 PWG3/CMake_libPWG3base.txt create mode 100644 PWG3/CMake_libPWG3muon.txt create mode 100644 PWG3/CMake_libPWG3vertexingHF.txt create mode 100644 PWG3/CMake_libPWG3vertexingOld.txt create mode 100644 PWG4/CMakeLists.txt create mode 100644 PWG4/CMake_libPWG4PartCorr.txt create mode 100644 PYTHIA6/CMakeLists.txt create mode 100644 PYTHIA6/CMake_libAliPythia6.txt create mode 100644 PYTHIA6/CMake_libpythia6.txt create mode 100644 PYTHIA8/CMakeLists.txt create mode 100644 PYTHIA8/CMake_libAliPythia8.txt create mode 100644 RALICE/CMakeLists.txt create mode 100644 RALICE/CMake_libRALICE.txt create mode 100644 RAW/CMakeLists.txt create mode 100644 RAW/CMake_binalimdc.txt create mode 100644 RAW/CMake_binalirawdump.txt create mode 100644 RAW/CMake_bindateStream.txt create mode 100644 RAW/CMake_libMDC.txt create mode 100644 RAW/CMake_libMDCFilter.txt create mode 100644 RAW/CMake_libRAWDatabase.txt create mode 100644 RAW/CMake_libRAWDatarec.txt create mode 100644 RAW/CMake_libRAWDatarecOnline.txt create mode 100644 RAW/CMake_libRAWDatasim.txt create mode 100644 STAT/CMakeLists.txt create mode 100644 STAT/CMake_libSTAT.txt create mode 100644 STEER/ARVersion.h.in create mode 100644 STEER/CMakeLists.txt create mode 100644 STEER/CMake_libAOD.txt create mode 100644 STEER/CMake_libCDB.txt create mode 100644 STEER/CMake_libESD.txt create mode 100644 STEER/CMake_libSTEER.txt create mode 100644 STEER/CMake_libSTEER.txt.ori create mode 100644 STEER/CMake_libSTEERBase.txt create mode 100644 STEER/CMake_libSTEERBase.txt.ori create mode 100644 STRUCT/CMakeLists.txt create mode 100644 STRUCT/CMake_libSTRUCT.txt create mode 100644 T0/CMakeLists.txt create mode 100644 T0/CMake_libT0base.txt create mode 100644 T0/CMake_libT0rec.txt create mode 100644 T0/CMake_libT0shuttle.txt create mode 100644 T0/CMake_libT0sim.txt create mode 100644 TDPMjet/CMakeLists.txt create mode 100644 TDPMjet/CMake_libTDPMjet.txt create mode 100644 TEPEMGEN/CMakeLists.txt create mode 100644 TEPEMGEN/CMake_libTEPEMGEN.txt create mode 100644 TFluka/CMakeLists.txt create mode 100644 THbtp/CMakeLists.txt create mode 100644 THbtp/CMake_libTHbtp.txt create mode 100644 THerwig/CMakeLists.txt create mode 100644 THerwig/CMake_libTHerwig.txt create mode 100644 THijing/CMakeLists.txt create mode 100644 THijing/CMake_libTHijing.txt create mode 100644 THydjet/CMakeLists.txt create mode 100644 THydjet/CMake_libTHydjet.txt create mode 100644 TIsajet/CMakeLists.txt create mode 100644 TIsajet/CMake_libTIsajet.txt create mode 100644 TOF/CMakeLists.txt create mode 100644 TOF/CMake_libTOFbase.txt create mode 100644 TOF/CMake_libTOFrec.txt create mode 100644 TOF/CMake_libTOFsim.txt create mode 100644 TPC/CMakeLists.txt create mode 100644 TPC/CMake_libTPCbase.txt create mode 100644 TPC/CMake_libTPCcalib.txt create mode 100644 TPC/CMake_libTPCfast.txt create mode 100644 TPC/CMake_libTPCmon.txt create mode 100644 TPC/CMake_libTPCrec.txt create mode 100644 TPC/CMake_libTPCsim.txt create mode 100644 TPHIC/CMakeLists.txt create mode 100644 TPHIC/CMake_libTPHIC.txt create mode 100644 TRD/CMakeLists.txt create mode 100644 TRD/CMake_libTRDbase.txt create mode 100644 TRD/CMake_libTRDfast.txt create mode 100644 TRD/CMake_libTRDgui.txt create mode 100644 TRD/CMake_libTRDqaAnalysis.txt create mode 100644 TRD/CMake_libTRDrec.txt create mode 100644 TRD/CMake_libTRDsim.txt create mode 100644 TTherminator/CMakeLists.txt create mode 100644 TTherminator/CMake_libTTherminator.txt create mode 100644 VZERO/CMakeLists.txt create mode 100644 VZERO/CMake_libVZERObase.txt create mode 100644 VZERO/CMake_libVZEROrec.txt create mode 100644 VZERO/CMake_libVZEROsim.txt create mode 100644 ZDC/CMakeLists.txt create mode 100644 ZDC/CMake_libZDCbase.txt create mode 100644 ZDC/CMake_libZDCrec.txt create mode 100644 ZDC/CMake_libZDCsim.txt create mode 100644 cmake/modules/ALICEMacros.cmake create mode 100644 cmake/modules/CbmMacros.cmake create mode 100644 cmake/modules/CheckCompiler.cmake create mode 100644 cmake/modules/CheckCompiler.cmake.ori create mode 100644 cmake/modules/FindCLHEP.cmake create mode 100644 cmake/modules/FindDATE.cmake create mode 100644 cmake/modules/FindGEANT3.cmake create mode 100644 cmake/modules/FindGEANT4.cmake create mode 100644 cmake/modules/FindGEANT4VMC.cmake create mode 100644 cmake/modules/FindGENERATORS.cmake create mode 100644 cmake/modules/FindPLUTO.cmake create mode 100644 cmake/modules/FindROOT.cmake create mode 100644 cmake/modules/FindRuleChecker.cmake create mode 100644 cmake/modules/FindRuleChecker.cmake.ori create mode 100644 cmake/modules/Findfink.cmake create mode 100644 cmake/modules/WriteConfigFile.cmake diff --git a/ACORDE/CMakeLists.txt b/ACORDE/CMakeLists.txt new file mode 100644 index 00000000000..d489e42f547 --- /dev/null +++ b/ACORDE/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ACORDE +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include (CMake_libACORDErec.txt) + +include (CMake_libACORDEbase.txt) + +include (CMake_libACORDEsim.txt) + + diff --git a/ACORDE/CMake_libACORDEbase.txt b/ACORDE/CMake_libACORDEbase.txt new file mode 100644 index 00000000000..7bc3082d6f7 --- /dev/null +++ b/ACORDE/CMake_libACORDEbase.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliACORDEConstants.cxx AliACORDECalibData.cxx AliACORDERawReader.cxx +AliGenACORDE.cxx AliACORDEQAChecker.cxx AliACORDELoader.cxx AliACORDEPreprocessor.cxx AliACORDEdigit.cxx AliACORDEDataDCS.cxx AliACORDERawStream.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ACORDEbase "${SRCS}" "${HDRS}") diff --git a/ACORDE/CMake_libACORDErec.txt b/ACORDE/CMake_libACORDErec.txt new file mode 100644 index 00000000000..47c4d72cdb1 --- /dev/null +++ b/ACORDE/CMake_libACORDErec.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliACORDEReconstructor.cxx +AliACORDEQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ACORDErec "${SRCS}" "${HDRS}") diff --git a/ACORDE/CMake_libACORDEsim.txt b/ACORDE/CMake_libACORDEsim.txt new file mode 100644 index 00000000000..06db63b09ff --- /dev/null +++ b/ACORDE/CMake_libACORDEsim.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +AliACORDE.cxx AliACORDEv1.cxx AliACORDEhit.cxx +AliACORDEDigitizer.cxx AliACORDETrigger.cxx +AliACORDERawData.cxx AliACORDEQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ACORDEsim "${SRCS}" "${HDRS}") diff --git a/ALIROOT/CMakeLists.txt b/ALIROOT/CMakeLists.txt new file mode 100644 index 00000000000..f30e3f3d910 --- /dev/null +++ b/ALIROOT/CMakeLists.txt @@ -0,0 +1,22 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ALIROOT +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_binaliroot.txt) diff --git a/ALIROOT/CMake_binaliroot.txt b/ALIROOT/CMake_binaliroot.txt new file mode 100644 index 00000000000..14764e610c4 --- /dev/null +++ b/ALIROOT/CMake_binaliroot.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS +aliroot.cxx +fpu.c +) + +Set(LIBS MUONcore MUONgeometry MUONrec MUONsim MUONbase MUONtrigger MUONraw + MUONcalib MUONmapping TPCbase TPCsim TPCrec TPCfast ITSbase ITSsim ITSrec + PMDbase PMDsim PMDrec TRDbase TRDsim TRDrec TRDfast FMDbase FMDsim FMDrec + TOFbase TOFrec TOFsim PHOSbase PHOSsim PHOSrec ACORDEbase ACORDEsim + ACORDErec HMPIDbase HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase + VZEROsim VZEROrec EMCALbase EMCALsim EMCALrec BCM STRUCT T0base T0sim + T0rec EVGEN STEERBase ESD AOD CDB STEER THijing hijing FASTSIM microcern + RAWDatabase RAWDatarec RAWDatasim MUONevaluation HLTbase ) + +AddExecutable(aliroot "${SRCS}" "${LIBS}") + diff --git a/ANALYSIS/CMakeLists.txt b/ANALYSIS/CMakeLists.txt new file mode 100644 index 00000000000..ca8c912ac79 --- /dev/null +++ b/ANALYSIS/CMakeLists.txt @@ -0,0 +1,38 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ANALYSIS +${CMAKE_SOURCE_DIR}/ANALYSIS/Aliengui +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/TPC +${CMAKE_SOURCE_DIR}/ITS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libANALYSISalice.txt) + +include(CMake_libANALYSIS.txt) + +include(CMake_libAnalysisOld.txt) + +include(CMake_libANALYSISRL.txt) + +include(CMake_libAliengui.txt) + +include(CMake_binaliengui.txt) + + + diff --git a/ANALYSIS/CMake_binaliengui.txt b/ANALYSIS/CMake_binaliengui.txt new file mode 100644 index 00000000000..fa2d49ee583 --- /dev/null +++ b/ANALYSIS/CMake_binaliengui.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +Aliengui/aliengui_main/aliengui_main.cxx +) + +Set(LIBS Aliengui MUONevaluation MUONgeometry MUONrec MUONsim MUONbase + MUONtrigger MUONraw MUONcalib MUONmapping MUONcore TPCbase TPCsim + TPCrec TPCfast ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase + TRDsim TRDrec TRDfast FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim + PHOSbase PHOSsim PHOSrec ACORDEbase ACORDEsim ACORDErec HMPIDbase + HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec + EMCALbase EMCALsim EMCALrec STRUCT T0base T0sim T0rec EVGEN STEERBase + ESD AOD CDB STEER THijing hijing THbtp TEPEMGEN FASTSIM microcern + RAWDatabase RAWDatarec RAWDatasim HLTbase ANALYSIS ANALYSISalice) + +AddExecutable(alienguiexe "${SRCS}" "${LIBS}") diff --git a/ANALYSIS/CMake_libANALYSIS.txt b/ANALYSIS/CMake_libANALYSIS.txt new file mode 100644 index 00000000000..4cb36de7c41 --- /dev/null +++ b/ANALYSIS/CMake_libANALYSIS.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +AliAnalysisDataContainer.cxx AliAnalysisDataSlot.cxx +AliAnalysisManager.cxx AliAnalysisTask.cxx +AliAnalysisSelector.cxx +AliAnalysisFilter.cxx AliAnalysisCuts.cxx +AliVEventPool.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ANALYSIS "${SRCS}" "${HDRS}") diff --git a/ANALYSIS/CMake_libANALYSISRL.txt b/ANALYSIS/CMake_libANALYSISRL.txt new file mode 100644 index 00000000000..fba91888581 --- /dev/null +++ b/ANALYSIS/CMake_libANALYSISRL.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +AliAnalysisTaskRL.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ANALYSISRL "${SRCS}" "${HDRS}") diff --git a/ANALYSIS/CMake_libANALYSISalice.txt b/ANALYSIS/CMake_libANALYSISalice.txt new file mode 100644 index 00000000000..32d3acfafe5 --- /dev/null +++ b/ANALYSIS/CMake_libANALYSISalice.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS + AliAnalysisTaskSE.cxx AliAnalysisTaskME.cxx + AliAnalysisTaskESDfilter.cxx AliAnalysisTaskKineFilter.cxx + AliKineTrackCuts.cxx AliESDtrackCuts.cxx AliESDv0Cuts.cxx + AliEventPoolOTF.cxx AliEventPoolLoop.cxx AliEventPoolSparse.cxx +) + +Set_source_files_properties(${SRCS} COMPILE_FLAGS -DWITHXML) +Set(SRCS ${SRCS} AliTagAnalysis.cxx AliXMLCollection.cxx) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ANALYSISalice "${SRCS}" "${HDRS}") diff --git a/ANALYSIS/CMake_libAliengui.txt b/ANALYSIS/CMake_libAliengui.txt new file mode 100644 index 00000000000..055b4410306 --- /dev/null +++ b/ANALYSIS/CMake_libAliengui.txt @@ -0,0 +1,20 @@ +# -*- mode: cmake -*- + +set(SRCS +Aliengui/AliAlienBrowser.cxx +Aliengui/AliAnalysisGUI.cxx +Aliengui/AliSelectorFrame.cxx +Aliengui/AliFileListFrame.cxx +Aliengui/AliLoginFrame.cxx +Aliengui/AliPackageFrame.cxx +Aliengui/AliTagAnalysisFrame.cxx +Aliengui/AliTagFrame.cxx +) + +Add_Definitions(-DWITHXML) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(Aliengui "${SRCS}" "${HDRS}") diff --git a/ANALYSIS/CMake_libAnalysisOld.txt b/ANALYSIS/CMake_libAnalysisOld.txt new file mode 100644 index 00000000000..74a7f2cdc73 --- /dev/null +++ b/ANALYSIS/CMake_libAnalysisOld.txt @@ -0,0 +1,36 @@ +# -*- mode: cmake -*- + +set(SRCS +TGliteXmlEventlist.cxx +AliAOD.cxx +AliEventBuffer.cxx +AliRunAnalysis.cxx +AliAnalysis.cxx +AliVAODParticle.cxx +AliAODParticle.cxx +AliAODPair.cxx +AliAODRun.cxx +AliAODParticleCut.cxx +AliAODParticleBaseCut.cxx +AliAODPairCut.cxx +AliAODPairBaseCut.cxx +AliEventCut.cxx +AliEventBaseCut.cxx +AliReader.cxx +AliReaderAOD.cxx +AliReaderKineTree.cxx +AliReaderESD.cxx +AliReaderESDTree.cxx +AliTrackPoints.cxx +AliClusterMap.cxx +AliFlowAnalysis.cxx +AliMuonAnalysis.cxx +AliAnalysisEventCuts.cxx +AliAnalysisTrackCuts.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AnalysisOld "${SRCS}" "${HDRS}") diff --git a/BCM/CMakeLists.txt b/BCM/CMakeLists.txt new file mode 100644 index 00000000000..cdafaba4be0 --- /dev/null +++ b/BCM/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/BCM +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libBCM.txt) + diff --git a/BCM/CMake_libBCM.txt b/BCM/CMake_libBCM.txt new file mode 100644 index 00000000000..56ef903a664 --- /dev/null +++ b/BCM/CMake_libBCM.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +AliBCM.cxx +AliBCMHit.cxx +AliBCMLoader.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(BCM "${SRCS}" "${HDRS}") + diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000000..b1375dc56e0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,146 @@ +# -*- mode: cmake -*- +# The name of our project is "AliRoot". + +# Check if cmake has the required version +Cmake_Minimum_Required(VERSION 2.6 FATAL_ERROR) + +# Set name of our project to AliRoot. To be done after check of cmake version +Project(AliRoot) + +# Set AliRoot variables +Set(ALICE_ROOT $ENV{ALICE_ROOT}) +Set(ALICE $ENV{ALICE}) +Set(ALICE_STATIC_BUILD ON CACHE BOOL "Build also statics libs") + +#Set(CMAKE_VERBOSE_MAKEFILE ON) + +# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ +Set(CMAKE_MODULE_PATH "${ALICE_ROOT}/cmake/modules") + +# Load some basic macros which are needed later on +#Include(WriteConfigFile) +Include(Dart) +Include(ALICEMacros) + +# Check if the user wants to build the project in the source directory +Check_out_of_Source_Build() + +# searches for needed packages + +# Setup ROOT +Find_package(ROOT 5.0.0 REQUIRED) +Enable_Language(Fortran) +Set(ALIROOT_INSTALL_DIR ${ALICE_ROOT}/${ALICE_TARGET}) + +# Setup GEANT3 +Find_package(GEANT3 REQUIRED) + +# Setup RuleChecker +Find_Package(RuleChecker) + +# Check if DATE is installed +Find_Package(DATE) + +# Setup system dependent flags +SetupSystem() + +# Set the library version in the main CMakeLists.txt +SET(ALIROOT_MAJOR_VERSION 0) +SET(ALIROOT_MINOR_VERSION 0) +SET(ALIROOT_PATCH_VERSION 0) +SET(ALIROOT_VERSION "${ALIROOT_MAJOR_VERSION}.${ALIROOT_MINOR_VERSION}.${ALIROOT_PATCH_VERSION}") +SET(ALIROOT_LIBRARY_PROPERTIES ${ALIROOT_LIBRARY_PROPERTIES} + VERSION "${ALIROOT_VERSION}" + SOVERSION "${ALIROOT_MAJOR_VERSION}" + SUFFIX ".so" +) + +# Set version variables +Execute_process(COMMAND svn info $ENV{ALICE_ROOT} + OUTPUT_VARIABLE _svn_out) + +String(REGEX REPLACE "^.*Revision: ([^\n]*).*$" "\\1" + ALIROOT_SVN_REVISION ${_svn_out}) +String(REGEX REPLACE "^.*URL: https://alisoft.cern.ch/AliRoot/([^\n]*).*$" "w \\1" + ALIROOT_SVN_BRANCH ${_svn_out}) + +# Additional targets +Add_Custom_Target(check-all COMMENT "Checking coding conventions") + +# Configure special include file +If(UNIX) + Set(_in ${CMAKE_CURRENT_SOURCE_DIR}/STEER/ARVersion.h.in) + Set(_out ${CMAKE_CURRENT_BINARY_DIR}/STEER/ARVersion.h) + Add_custom_target(ARversion ALL + COMMAND sed < ${_in} + -e "s/\\@ALIROOT_SVN_REVISION\\@/${ALIROOT_SVN_REVISION}/" + -e "s/\\@ALIROOT_SVN_BRANCH\\@/${ALIROOT_SVN_BRANCH}/" + -e "s/\\@ALIROOT_VERSION\\@/${ALIROOT_VERSION}/" > ${_out}) + Install(FILES ${_out} DESTINATION ${ALIROOT_INSTALL_DIR}/include) +Endif(UNIX) + +# This would work, but just once... we want this to happen at every make +# Configure_file(${CMAKE_CURRENT_SOURCE_DIR}/STEER/ARVersion.h.in +#${CMAKE_CURRENT_BINARY_DIR}/STEER/ARVersion.h @ONLY) + +# Recurse into the given subdirectories. This does not actually +# cause another cmake executable to run. The same process will walk through +# the project's entire directory structure. + +#Add_subdirectory(PYTHIA8) +#Add_subdirectory(TFluka) +#Add_subdirectory(THydjet) + +Add_subdirectory(ACORDE) +Add_subdirectory(ANALYSIS) +Add_subdirectory(BCM) +Add_subdirectory(CORRFW) +Add_subdirectory(DPMJET) +Add_subdirectory(EMCAL) +Add_subdirectory(ESDCheck) +Add_subdirectory(EVE) +Add_subdirectory(EVGEN) +Add_subdirectory(FASTSIM) +Add_subdirectory(FMD) +Add_subdirectory(HBTAN) +Add_subdirectory(HERWIG) +Add_subdirectory(HIJING) +Add_subdirectory(HLT) +Add_subdirectory(HMPID) +Add_subdirectory(ITS) +Add_subdirectory(JETAN) +Add_subdirectory(LHAPDF) +Add_subdirectory(LHC) +Add_subdirectory(MICROCERN) +Add_subdirectory(MONITOR) +Add_subdirectory(MUON) +Add_subdirectory(PHOS) +Add_subdirectory(PMD) +Add_subdirectory(PWG0) +Add_subdirectory(PWG1) +Add_subdirectory(PWG2) +Add_subdirectory(PWG3) +Add_subdirectory(PWG4) +Add_subdirectory(PYTHIA6) +Add_subdirectory(RALICE) +Add_subdirectory(RAW) +Add_subdirectory(STAT) +Add_subdirectory(STEER) +Add_subdirectory(STRUCT) +Add_subdirectory(T0) +Add_subdirectory(TDPMjet) +Add_subdirectory(TEPEMGEN) +Add_subdirectory(THbtp) +Add_subdirectory(THerwig) +Add_subdirectory(THijing) +Add_subdirectory(TIsajet) +Add_subdirectory(TOF) +Add_subdirectory(TPC) +Add_subdirectory(TPHIC) +Add_subdirectory(TRD) +Add_subdirectory(TTherminator) +Add_subdirectory(VZERO) +Add_subdirectory(ZDC) + +Add_subdirectory(ALIROOT) + diff --git a/CORRFW/CMakeLists.txt b/CORRFW/CMakeLists.txt new file mode 100644 index 00000000000..d4a1f2ce24d --- /dev/null +++ b/CORRFW/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/CORRFW +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libCORRFW.txt) + diff --git a/CORRFW/CMake_libCORRFW.txt b/CORRFW/CMake_libCORRFW.txt new file mode 100644 index 00000000000..f2c37b137b5 --- /dev/null +++ b/CORRFW/CMake_libCORRFW.txt @@ -0,0 +1,35 @@ +# -*- mode: cmake -*- + +set(SRCS +AliCFFrame.cxx +AliCFVGrid.cxx +AliCFGrid.cxx +AliCFGridSparse.cxx +AliCFEffGrid.cxx +AliCFDataGrid.cxx +AliCFContainer.cxx +AliCFManager.cxx +AliCFCutBase.cxx +AliCFEventClassCuts.cxx +AliCFEventGenCuts.cxx +AliCFEventRecCuts.cxx +AliCFParticleGenCuts.cxx +AliCFAcceptanceCuts.cxx +AliCFTrackKineCuts.cxx +AliCFTrackQualityCuts.cxx +AliCFTrackIsPrimaryCuts.cxx +AliCFTrackCutPid.cxx +AliCFPair.cxx +AliCFPairAcceptanceCuts.cxx +AliCFPairQualityCuts.cxx +AliCFPairIsPrimaryCuts.cxx +AliCFPairPidCut.cxx +AliCFV0TopoCuts.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(CORRFW "${SRCS}" "${HDRS}") + diff --git a/DPMJET/CMakeLists.txt b/DPMJET/CMakeLists.txt new file mode 100644 index 00000000000..d60dd8f10d6 --- /dev/null +++ b/DPMJET/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/DPMJET +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libDPMJET.txt) + diff --git a/DPMJET/CMake_libDPMJET.txt b/DPMJET/CMake_libDPMJET.txt new file mode 100644 index 00000000000..5320937fff8 --- /dev/null +++ b/DPMJET/CMake_libDPMJET.txt @@ -0,0 +1,22 @@ +# -*- mode: cmake -*- + +set(SRCS +AliDpmJetRndm.cxx +) + +set(FSRCS +dpmjet3.0-5.f +phojet1.12-35c3.f +pythia6115dpm3.f +user3.0-5.f +openfile.f +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(dpmjet "${SRCS}" "${HDRS}") + diff --git a/EMCAL/CMakeLists.txt b/EMCAL/CMakeLists.txt new file mode 100644 index 00000000000..193b2b456c7 --- /dev/null +++ b/EMCAL/CMakeLists.txt @@ -0,0 +1,33 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/EMCAL +${CMAKE_SOURCE_DIR}/EMCAL/Calib +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libEMCALrec.txt) + +include(CMake_libEMCALbase.txt) + +include(CMake_libEMCALsim.txt) + +include(CMake_libEMCALcalib.txt) + + diff --git a/EMCAL/CMake_libEMCALbase.txt b/EMCAL/CMake_libEMCALbase.txt new file mode 100644 index 00000000000..85b40a1f9f9 --- /dev/null +++ b/EMCAL/CMake_libEMCALbase.txt @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- + +set(SRCS +AliEMCALGeometry.cxx +AliEMCALHit.cxx +AliEMCALLoader.cxx +AliEMCALShishKebabModule.cxx +AliEMCALShishKebabTrd1Module.cxx +AliEMCALWsuCosmicRaySetUp.cxx +AliEMCALRecPoint.cxx +AliEMCALClusterizer.cxx +AliEMCALHistoUtilities.cxx +AliEMCALSDigitizer.cxx +AliEMCALDigit.cxx +AliEMCALCalibData.cxx +AliEMCALCalibHistoProducer.cxx +AliEMCALPreprocessor.cxx +AliEMCALSensorTemp.cxx +AliEMCALSensorTempArray.cxx +AliCaloCalibPedestal.cxx +AliCaloCalibSignal.cxx +AliEMCALSurvey.cxx +AliEMCALRecParam.cxx +AliEMCALQAChecker.cxx +AliEMCALCalibTimeDep.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EMCALbase "${SRCS}" "${HDRS}") diff --git a/EMCAL/CMake_libEMCALcalib.txt b/EMCAL/CMake_libEMCALcalib.txt new file mode 100644 index 00000000000..60ee267754d --- /dev/null +++ b/EMCAL/CMake_libEMCALcalib.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +Calib/AliEMCALPi0Calibration.cxx +Calib/AliEMCALPi0SelectionParam.cxx +Calib/AliEMCALFolder.cxx +Calib/AliEMCALSuperModule.cxx +Calib/AliEMCALCalibCoefs.cxx +Calib/AliEMCALCellInfo.cxx +Calib/AliEMCALCell.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EMCALcalib "${SRCS}" "${HDRS}") diff --git a/EMCAL/CMake_libEMCALrec.txt b/EMCAL/CMake_libEMCALrec.txt new file mode 100644 index 00000000000..50f33a2ba1c --- /dev/null +++ b/EMCAL/CMake_libEMCALrec.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +AliEMCALReconstructor.cxx +AliEMCALClusterizerv1.cxx +AliEMCALTrack.cxx +AliEMCALTracker.cxx +AliEMCALPID.cxx +AliEMCALQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EMCALrec "${SRCS}" "${HDRS}") diff --git a/EMCAL/CMake_libEMCALsim.txt b/EMCAL/CMake_libEMCALsim.txt new file mode 100644 index 00000000000..c4b5bc381b3 --- /dev/null +++ b/EMCAL/CMake_libEMCALsim.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS +AliEMCAL.cxx +AliEMCALv0.cxx +AliEMCALv1.cxx +AliEMCALv2.cxx +AliEMCALDigitizer.cxx +AliEMCALTick.cxx +AliEMCALRawUtils.cxx +AliEMCALTrigger.cxx +AliEMCALQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EMCALsim "${SRCS}" "${HDRS}") diff --git a/ESDCheck/CMakeLists.txt b/ESDCheck/CMakeLists.txt new file mode 100644 index 00000000000..ecd32ad54b7 --- /dev/null +++ b/ESDCheck/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ESDCheck +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libAnalysisCheck.txt) + diff --git a/ESDCheck/CMake_libAnalysisCheck.txt b/ESDCheck/CMake_libAnalysisCheck.txt new file mode 100644 index 00000000000..1ddae9bd8ae --- /dev/null +++ b/ESDCheck/CMake_libAnalysisCheck.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPHOSQATask.cxx +AliEMCALQATask.cxx +AliPMDQATask.cxx +AliPMDUtility.cxx +AliAnalysisTaskPt.cxx +AliHMPIDQATask.cxx +AliT0QATask.cxx +AliMUONQATask.cxx +AliFMDQATask.cxx +AliTRDQATask.cxx +AliTOFQATask.cxx +AliVZEROQATask.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AnalysisCheck "${SRCS}" "${HDRS}") + diff --git a/EVE/CMakeLists.txt b/EVE/CMakeLists.txt new file mode 100644 index 00000000000..94c18473423 --- /dev/null +++ b/EVE/CMakeLists.txt @@ -0,0 +1,44 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/EMCAL +${CMAKE_SOURCE_DIR}/EVE +${CMAKE_SOURCE_DIR}/EVE/EveBase +${CMAKE_SOURCE_DIR}/EVE/EveDet +${CMAKE_SOURCE_DIR}/EVE/EveHLT +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/MUON +${CMAKE_SOURCE_DIR}/MUON/mapping +${CMAKE_SOURCE_DIR}/TRD +${CMAKE_SOURCE_DIR}/TOF +${CMAKE_SOURCE_DIR}/ITS +${CMAKE_SOURCE_DIR}/TPC +${CMAKE_SOURCE_DIR}/PMD +${CMAKE_SOURCE_DIR}/T0 +${CMAKE_SOURCE_DIR}/HLT/BASE +${CMAKE_SOURCE_DIR}/HLT/BASE/HOMER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libEveBase.txt) + +include(CMake_libEveDet.txt) + +include(CMake_libEveHLT.txt) + +include(CMake_binalieve.txt) + diff --git a/EVE/CMake_binalieve.txt b/EVE/CMake_binalieve.txt new file mode 100644 index 00000000000..25455e28c97 --- /dev/null +++ b/EVE/CMake_binalieve.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +alieve_main/alieve_main.cxx +) + +Set(LIBS EveBase EveDet EveHLT MUONbase MUONevaluation MUONmapping MUONshuttle + MUONcalib MUONgeometry MUONraw MUONsim MUONcore MUONgraphics MUONrec + MUONtrigger TPCbase TPCsim TPCrec TPCfast ITSbase ITSsim ITSrec PMDbase + PMDsim PMDrec TRDbase TRDsim TRDrec TRDfast FMDbase FMDsim FMDrec TOFbase + TOFrec TOFsim PHOSbase PHOSsim PHOSrec ACORDEbase ACORDEsim ACORDErec + HMPIDbase HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase VZEROsim + VZEROrec EMCALbase EMCALsim EMCALrec BCM STRUCT T0base T0sim T0rec EVGEN + STEERBase ESD AOD CDB STEER THijing hijing TEPEMGEN FASTSIM microcern + RAWDatabase RAWDatarec RAWDatasim HLTbase XMLParser) + +AddExecutable(alieve "${SRCS}" "${LIBS}") diff --git a/EVE/CMake_libEveBase.txt b/EVE/CMake_libEveBase.txt new file mode 100644 index 00000000000..f013017b2bf --- /dev/null +++ b/EVE/CMake_libEveBase.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +set(SRCS +EveBase/AliEveEventManagerEditor.cxx +EveBase/AliEveV0.cxx +EveBase/AliEveV0Editor.cxx +EveBase/AliEveV0ListEditor.cxx +EveBase/AliEveCosmicRayFitter.cxx +EveBase/AliEveJetPlaneGL.cxx +EveBase/AliEveCosmicRayFitterEditor.cxx +EveBase/AliEveKineTools.cxx +EveBase/AliEveEventManager.cxx +EveBase/AliEveTrackFitter.cxx +EveBase/AliEveJetPlane.cxx +EveBase/AliEveTrackFitterEditor.cxx +EveBase/AliEveJetPlaneEditor.cxx +EveBase/AliEveVSDCreator.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EveBase "${SRCS}" "${HDRS}") diff --git a/EVE/CMake_libEveDet.txt b/EVE/CMake_libEveDet.txt new file mode 100644 index 00000000000..e7ab1af15f4 --- /dev/null +++ b/EVE/CMake_libEveDet.txt @@ -0,0 +1,54 @@ +# -*- mode: cmake -*- + +set(SRCS +EveDet/AliEveEMCALData.cxx +EveDet/AliEveEMCALSModule.cxx +EveDet/AliEveEMCALSModuleData.cxx +EveDet/AliEveFMDLoader.cxx +EveDet/AliEveITSDigitsInfo.cxx +EveDet/AliEveITSModule.cxx +EveDet/AliEveITSModuleStepper.cxx +EveDet/AliEveITSModuleStepperEditor.cxx +EveDet/AliEveITSScaledModule.cxx +EveDet/AliEveITSScaledModuleEditor.cxx +EveDet/AliEveMUONChamber.cxx +EveDet/AliEveMUONChamberData.cxx +EveDet/AliEveMUONChamberEditor.cxx +EveDet/AliEveMUONChamberGL.cxx +EveDet/AliEveMUONData.cxx +EveDet/AliEveMUONTrack.cxx +EveDet/AliEvePMDModule.cxx +EveDet/AliEvePMDModuleEditor.cxx +EveDet/AliEveT0Module.cxx +EveDet/AliEveTOFDigitsInfo.cxx +EveDet/AliEveTOFDigitsInfoEditor.cxx +EveDet/AliEveTOFSector.cxx +EveDet/AliEveTOFSectorEditor.cxx +EveDet/AliEveTOFStrip.cxx +EveDet/AliEveTOFStripEditor.cxx +EveDet/AliEveTPCData.cxx +EveDet/AliEveTPCLoader.cxx +EveDet/AliEveTPCLoaderEditor.cxx +EveDet/AliEveTPCSector2D.cxx +EveDet/AliEveTPCSector2DEditor.cxx +EveDet/AliEveTPCSector2DGL.cxx +EveDet/AliEveTPCSector3D.cxx +EveDet/AliEveTPCSector3DEditor.cxx +EveDet/AliEveTPCSector3DGL.cxx +EveDet/AliEveTPCSectorData.cxx +EveDet/AliEveTPCSectorViz.cxx +EveDet/AliEveTPCSectorVizEditor.cxx +EveDet/AliEveTRDData.cxx +EveDet/AliEveTRDDataEditor.cxx +EveDet/AliEveTRDLoader.cxx +EveDet/AliEveTRDLoaderImp.cxx +EveDet/AliEveTRDLoaderManager.cxx +EveDet/AliEveTRDModule.cxx +EveDet/AliEveTRDModuleImp.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EveDet "${SRCS}" "${HDRS}") diff --git a/EVE/CMake_libEveHLT.txt b/EVE/CMake_libEveHLT.txt new file mode 100644 index 00000000000..5e8c2f34cb5 --- /dev/null +++ b/EVE/CMake_libEveHLT.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +EveHLT/AliEveHOMERManager.cxx +EveHLT/AliEveHOMERSourceList.cxx +EveHLT/AliEveHOMERManagerEditor.cxx +EveHLT/AliEveHOMERSourceMap.cxx +EveHLT/AliEveHOMERSource.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EveHLT "${SRCS}" "${HDRS}") diff --git a/EVGEN/CMakeLists.txt b/EVGEN/CMakeLists.txt new file mode 100644 index 00000000000..e6f1fe775da --- /dev/null +++ b/EVGEN/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/FASTSIM +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libEVGEN.txt) + diff --git a/EVGEN/CMake_libEVGEN.txt b/EVGEN/CMake_libEVGEN.txt new file mode 100644 index 00000000000..27be0bb180b --- /dev/null +++ b/EVGEN/CMake_libEVGEN.txt @@ -0,0 +1,56 @@ +# -*- mode: cmake -*- + +set(SRCS +AliGenHIJINGpara.cxx +AliGenBox.cxx +AliGenFixed.cxx +AliGenCocktail.cxx +AliGenCocktailAfterBurner.cxx +AliGenFLUKAsource.cxx +AliGenLib.cxx +AliGenMUONlib.cxx +AliGenHMPIDlib.cxx +AliGenParam.cxx +AliDimuCombinator.cxx +AliGenHalo.cxx +AliGenHaloProtvino.cxx +AliGenExtFile.cxx +AliGenScan.cxx +AliGenPHOSlib.cxx +AliGenDoubleScan.cxx +AliGenCocktailEntry.cxx +AliGenGSIlib.cxx +AliGenPMDlib.cxx +AliGenMC.cxx +AliGenReader.cxx +AliGenReaderCwn.cxx +AliGenReaderTreeK.cxx +AliGenReaderEcalHijing.cxx +AliGenReaderEcalJets.cxx +AliGenHIJINGparaBa.cxx +AliGeVSimParticle.cxx +AliGenGeVSim.cxx +AliGenThetaSlice.cxx +AliGenSTRANGElib.cxx +AliGenBeamGas.cxx +AliGenAfterBurnerFlow.cxx +AliGenSlowNucleons.cxx +AliGenGeVSimEventHeader.cxx +AliSlowNucleonModel.cxx +AliSlowNucleonModelExp.cxx +AliGenMUONCocktail.cxx +AliGenMUONCocktailpp.cxx +AliGenHBTosl.cxx +AliGenReaderEMD.cxx +AliDecayerPolarized.cxx +AliGenCorrHF.cxx +AliGenCosmicsParam.cxx +AliGenKrypton.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(EVGEN "${SRCS}" "${HDRS}") + diff --git a/FASTSIM/CMakeLists.txt b/FASTSIM/CMakeLists.txt new file mode 100644 index 00000000000..8fd40b839f5 --- /dev/null +++ b/FASTSIM/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/FASTSIM +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libFASTSIM.txt) + diff --git a/FASTSIM/CMake_libFASTSIM.txt b/FASTSIM/CMake_libFASTSIM.txt new file mode 100644 index 00000000000..cb262311ea6 --- /dev/null +++ b/FASTSIM/CMake_libFASTSIM.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +set(SRCS +AliFastDetector.cxx +AliFastResponse.cxx +AliFastParticle.cxx +AliFastEvent.cxx +AliFastMuonTrackingAcc.cxx +AliFastMuonTrackingEff.cxx +AliFastMuonTrackingRes.cxx +AliFastMuonTriggerEff.cxx +AliMUONFastTracking.cxx +AliMUONFastTrackingEntry.cxx +AliFastGlauber.cxx +AliQuenchingWeights.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FASTSIM "${SRCS}" "${HDRS}") + diff --git a/FMD/CMakeLists.txt b/FMD/CMakeLists.txt new file mode 100644 index 00000000000..f9ce2ba239d --- /dev/null +++ b/FMD/CMakeLists.txt @@ -0,0 +1,33 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/FMD +${CMAKE_SOURCE_DIR}/FMD/flow +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libFMDbase.txt) + +include(CMake_libFMDrec.txt) + +include(CMake_libFMDutil.txt) + +include(CMake_libFMDflow.txt) + +include(CMake_libFMDsim.txt) + diff --git a/FMD/CMake_libFMDbase.txt b/FMD/CMake_libFMDbase.txt new file mode 100644 index 00000000000..6add82b99a6 --- /dev/null +++ b/FMD/CMake_libFMDbase.txt @@ -0,0 +1,31 @@ +# -*- mode: cmake -*- + +set(SRCS +AliFMDIndex.cxx +AliFMDBaseDigit.cxx +AliFMDDigit.cxx +AliFMDSDigit.cxx +AliFMDBoolMap.cxx +AliFMDUShortMap.cxx +AliFMDCalibPedestal.cxx +AliFMDCalibGain.cxx +AliFMDCalibSampleRate.cxx +AliFMDCalibStripRange.cxx +AliFMDAltroMapping.cxx +AliFMDParameters.cxx +AliFMDGeometry.cxx +AliFMDRing.cxx +AliFMDDetector.cxx +AliFMD1.cxx +AliFMD2.cxx +AliFMD3.cxx +AliFMDPreprocessor.cxx +AliFMDQAChecker.cxx +AliFMDGeometryBuilder.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FMDbase "${SRCS}" "${HDRS}") diff --git a/FMD/CMake_libFMDflow.txt b/FMD/CMake_libFMDflow.txt new file mode 100644 index 00000000000..6765e0c04ef --- /dev/null +++ b/FMD/CMake_libFMDflow.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS +flow/AliFMDFlowAxis.cxx +flow/AliFMDFlowBessel.cxx +flow/AliFMDFlowBin.cxx +flow/AliFMDFlowBinned1D.cxx +flow/AliFMDFlowBinned2D.cxx +flow/AliFMDFlowEfficiency.cxx +flow/AliFMDFlowEventPlane.cxx +flow/AliFMDFlowHarmonic.cxx +flow/AliFMDFlowResolution.cxx +flow/AliFMDFlowTrue.cxx +flow/AliFMDFlowSplitter.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FMDflow "${SRCS}" "${HDRS}") diff --git a/FMD/CMake_libFMDrec.txt b/FMD/CMake_libFMDrec.txt new file mode 100644 index 00000000000..f758dad9a03 --- /dev/null +++ b/FMD/CMake_libFMDrec.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +AliFMDReconstructor.cxx +AliFMDRawStream.cxx +AliFMDRawReader.cxx +AliFMDRecPoint.cxx +AliFMDQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FMDrec "${SRCS}" "${HDRS}") diff --git a/FMD/CMake_libFMDsim.txt b/FMD/CMake_libFMDsim.txt new file mode 100644 index 00000000000..9b422fa0d2e --- /dev/null +++ b/FMD/CMake_libFMDsim.txt @@ -0,0 +1,22 @@ +# -*- mode: cmake -*- + +set(SRCS +AliFMD.cxx +AliFMDv0.cxx +AliFMDv1.cxx +AliFMDPoints.cxx +AliFMDHit.cxx +AliFMDBaseDigitizer.cxx +AliFMDDigitizer.cxx +AliFMDSDigitizer.cxx +AliFMDEdepMap.cxx +AliFMDRawWriter.cxx +AliFMDQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FMDsim "${SRCS}" "${HDRS}") + diff --git a/FMD/CMake_libFMDutil.txt b/FMD/CMake_libFMDutil.txt new file mode 100644 index 00000000000..ca3594c8017 --- /dev/null +++ b/FMD/CMake_libFMDutil.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS +AliFMDInput.cxx +AliFMDDisplay.cxx +AliFMDPattern.cxx +AliFMDFancy.cxx +AliFMDCalibFaker.cxx +AliFMDAlignFaker.cxx +AliFMDAnaRing.cxx +AliFMDAnaESD.cxx +AliFMDBaseDA.cxx +AliFMDPedestalDA.cxx +AliFMDGainDA.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(FMDutil "${SRCS}" "${HDRS}") diff --git a/HBTAN/CMakeLists.txt b/HBTAN/CMakeLists.txt new file mode 100644 index 00000000000..a3610db113e --- /dev/null +++ b/HBTAN/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/HBTAN +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libHBTAN.txt) + diff --git a/HBTAN/CMake_libHBTAN.txt b/HBTAN/CMake_libHBTAN.txt new file mode 100644 index 00000000000..6b4672ab003 --- /dev/null +++ b/HBTAN/CMake_libHBTAN.txt @@ -0,0 +1,33 @@ +# -*- mode: cmake -*- + +set(SRCS +AliHBTWeights.cxx AliHBTCrab.cxx AliHBTAnalysis.cxx +AliHBTPair.cxx AliHBTAnalysisStavinskyMixing.cxx +AliHBTFunction.cxx AliHBTCorrelFctn.cxx +AliHBTMonitorFunction.cxx AliHBTTwoTrackEffFctn.cxx +AliHBTQResolutionFctns.cxx AliHBTQDistributionVsQInvFctns.cxx AliHBTQDistributionVsKtFctns.cxx +AliHBTRDistributions.cxx +AliHBTMonDistributionFctns.cxx AliHBTMonResolutionFctns.cxx +AliHBTLLWeights.cxx AliHBTWeightFctn.cxx +AliHBTWeightsPID.cxx AliHBTWeightTheorFctn.cxx +AliHBTPositionRandomizer.cxx +AliHBTCorrFitFctn.cxx AliHBTPIDPurityFctns.cxx +AliHBTCorrectQInvCorrelFctn.cxx AliHBTCorrectOSLCorrelFctn.cxx +AliHBTasCorrFctn.cxx AliHBTMonSplitting.cxx +) + +set(FSRCS +fsiini.F +fsiw.F +led_bldata.F +ltran12.F +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(HBTAN "${SRCS}" "${HDRS}") + diff --git a/HERWIG/CMakeLists.txt b/HERWIG/CMakeLists.txt new file mode 100644 index 00000000000..ce6c4242ea3 --- /dev/null +++ b/HERWIG/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/HERWIG +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libHERWIG.txt) + + diff --git a/HERWIG/CMake_libHERWIG.txt b/HERWIG/CMake_libHERWIG.txt new file mode 100644 index 00000000000..f1cebfa406c --- /dev/null +++ b/HERWIG/CMake_libHERWIG.txt @@ -0,0 +1,103 @@ +# -*- mode: cmake -*- + +Set(SRCS +AliHerwigRndm.cxx +) + +set(CSRCS +main.c +herwig6_address.c +) + +set(FSRCS +herwig6_called_from_cc.f +herwig6_common_block_address.f +herwig6510.f +hwlhin.f +str.f +jimmy/cernmisc/jmabend.F +jimmy/cernmisc/jmdbs4.F +jimmy/cernmisc/jmdbsir3.F +jimmy/cernmisc/jmdbska.F +jimmy/cernmisc/jmlnoc.F +jimmy/cernmisc/jmmlpt.F +jimmy/cernmisc/jmmlst.F +jimmy/cernmisc/jmucpy.F +jimmy/divon4/addbnd.F +jimmy/divon4/bfgs.F +jimmy/divon4/bndopt.F +jimmy/divon4/bndtst.F +jimmy/divon4/bounds.F +jimmy/divon4/bucmve.F +jimmy/divon4/bufopt.F +jimmy/divon4/delbnd.F +jimmy/divon4/delete.F +jimmy/divon4/delslv.F +jimmy/divon4/divon.F +jimmy/divon4/dvcopy.F +jimmy/divon4/dvdot.F +jimmy/divon4/dvnbkd.F +jimmy/divon4/exmbuc.F +jimmy/divon4/feasmv.F +jimmy/divon4/feqn.F +jimmy/divon4/fun.F +jimmy/divon4/genpnt.F +jimmy/divon4/grdcmp.F +jimmy/divon4/intgrl.F +jimmy/divon4/ldlsol.F +jimmy/divon4/locsch.F +jimmy/divon4/modchl.F +jimmy/divon4/mulchk.F +jimmy/divon4/mxstep.F +jimmy/divon4/newptq.F +jimmy/divon4/nmdchl.F +jimmy/divon4/nocut.F +jimmy/divon4/nodaud.F +jimmy/divon4/orthvc.F +jimmy/divon4/partn.F +jimmy/divon4/quad.F +jimmy/divon4/quasi.F +jimmy/divon4/ranums.F +jimmy/divon4/recparz.F +jimmy/divon4/rlen.F +jimmy/divon4/settol.F +jimmy/divon4/shrnk.F +jimmy/divon4/split.F +jimmy/divon4/treaud.F +jimmy/divon4/tredmp.F +jimmy/divon4/tstext.F +jimmy/divon4/usrint.F +jimmy/divon4/usrtrm.F +jimmy/jimmy/dfun.F +jimmy/jimmy/dvnopt.F +jimmy/jimmy/eikfun.F +jimmy/jimmy/eikon.F +jimmy/jimmy/epfun.F +jimmy/jimmy/hwmsct.F +jimmy/jimmy/hwnsct.F +jimmy/jimmy/jimmin.F +jimmy/jimmy/jmarea.F +jimmy/jimmy/jmefin.F +jimmy/jimmy/jmfact.F +jimmy/jimmy/jmgamz.F +jimmy/jimmy/jmgrid.F +jimmy/jimmy/jminit.F +jimmy/jimmy/jmkern.F +jimmy/jimmy/jmknif.F +jimmy/jimmy/jmpn.F +jimmy/jimmy/jmrndm.F +jimmy/jimmy/jmsn.F +jimmy/jimmy/jmsnfn.F +jimmy/jimmy/jmxs1.F +jimmy/jimmy/qcdres.F +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${CSRCS} ${FSRCS}) + +AddLibrary(herwig "${SRCS}" "${HDRS}") + + diff --git a/HIJING/CMakeLists.txt b/HIJING/CMakeLists.txt new file mode 100644 index 00000000000..b6512f36482 --- /dev/null +++ b/HIJING/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/HIJING +${CMAKE_SOURCE_DIR}/HIJING/hijing +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libHIJING.txt) + diff --git a/HIJING/CMake_libHIJING.txt b/HIJING/CMake_libHIJING.txt new file mode 100644 index 00000000000..c54f68323ad --- /dev/null +++ b/HIJING/CMake_libHIJING.txt @@ -0,0 +1,171 @@ +# -*- mode: cmake -*- + +set(SRCS +AliHijingRndm.cxx +) + +set(FSRCS +hijing1_36/ar3jet.F +hijing1_36/aran9.F +hijing1_36/arorie.F +hijing1_36/atrobo.F +hijing1_36/attflv.F +hijing1_36/attrad.F +hijing1_36/bk.F +hijing1_36/crsjet.F +hijing1_36/fgp1.F +hijing1_36/fgp2.F +hijing1_36/fgp3.F +hijing1_36/fhin.F +hijing1_36/fjet.F +hijing1_36/fjetrig.F +hijing1_36/flap.F +hijing1_36/flap1.F +hijing1_36/flap2.F +hijing1_36/fnjet.F +hijing1_36/fnkick.F +hijing1_36/fnkick2.F +hijing1_36/fnstru.F +hijing1_36/fnstrum.F +hijing1_36/fnstrus.F +hijing1_36/ftot.F +hijing1_36/ftotjet.F +hijing1_36/ftotrig.F +hijing1_36/g.F +hijing1_36/gauss1.F +hijing1_36/gauss2.F +hijing1_36/gauss3.F +hijing1_36/gauss4.F +hijing1_36/ghvq.F +hijing1_36/gmin.F +hijing1_36/gmre.F +hijing1_36/gphoton.F +hijing1_36/hiboost.F +hijing1_36/hidata.F +hijing1_36/hifun.F +hijing1_36/hijcrs.F +hijing1_36/hijcsc.F +hijing1_36/hijels.F +hijing1_36/hijflv.F +hijing1_36/hijfrg.F +hijing1_36/hijhrd.F +hijing1_36/hijing.F +hijing1_36/hijini.F +hijing1_36/hijset.F +hijing1_36/hijsft.F +hijing1_36/hijsrt.F +hijing1_36/hijwds.F +hijing1_36/hiptdi.F +hijing1_36/hirnd.F +hijing1_36/hirnd2.F +hijing1_36/jetini.F +hijing1_36/omg0.F +hijing1_36/parton.F +hijing1_36/profile.F +hijing1_36/quench.F +hijing1_36/romg.F +hijing1_36/rwdsax.F +hijing1_36/sgmin.F +hijing1_36/subcrs1.F +hijing1_36/subcrs2.F +hijing1_36/subcrs3.F +hijing1_36/subcrs4.F +hijing1_36/subcrs5.F +hijing1_36/subcrs6.F +hijing1_36/subcrs7.F +hijing1_36/title.F +hijing1_36/vegas.F +hijing1_36/wdsax.F +hijing1_36/wdsax1.F +hijing1_36/wdsax2.F +hipyset1_35/hirobo.F +hipyset1_35/klu_hijing.F +hipyset1_35/lu1ent_hijing.F +hipyset1_35/lu2ent_hijing.F +hipyset1_35/lu3ent_hijing.F +hipyset1_35/lu4ent_hijing.F +hipyset1_35/luboei_hijing.F +hipyset1_35/lucell_hijing.F +hipyset1_35/luchge_hijing.F +hipyset1_35/luclus_hijing.F +hipyset1_35/lucomp_hijing.F +hipyset1_35/ludata_hijing.F +hipyset1_35/ludecy_hijing.F +hipyset1_35/luedit_hijing.F +hipyset1_35/lueevt_hijing.F +hipyset1_35/luerrm_hijing.F +hipyset1_35/luexec_hijing.F +hipyset1_35/lufowo_hijing.F +hipyset1_35/lugive_hijing.F +hipyset1_35/luhepc_hijing.F +hipyset1_35/luindf_hijing.F +hipyset1_35/lujmas_hijing.F +hipyset1_35/lujoin_hijing.F +hipyset1_35/lukfdi_hijing.F +hipyset1_35/lulist_hijing.F +hipyset1_35/luname_hijing.F +hipyset1_35/luonia_hijing.F +hipyset1_35/luprep_hijing.F +hipyset1_35/luptdi_hijing.F +hipyset1_35/luradk_hijing.F +hipyset1_35/lurobo_hijing.F +hipyset1_35/lushow_hijing.F +hipyset1_35/lusphe_hijing.F +hipyset1_35/lustrf_hijing.F +hipyset1_35/lutabu_hijing.F +hipyset1_35/lutest_hijing.F +hipyset1_35/luthru_hijing.F +hipyset1_35/luupda_hijing.F +hipyset1_35/lux3jt_hijing.F +hipyset1_35/lux4jt_hijing.F +hipyset1_35/luxdif_hijing.F +hipyset1_35/luxjet_hijing.F +hipyset1_35/luxkfl_hijing.F +hipyset1_35/luxtot_hijing.F +hipyset1_35/luzdis_hijing.F +hipyset1_35/plu_hijing.F +hipyset1_35/pydata_hijing.F +hipyset1_35/pydiff_hijing.F +hipyset1_35/pyfram_hijing.F +hipyset1_35/pygamm_hijing.F +hipyset1_35/pyi3au_hijing.F +hipyset1_35/pyinit_hijing.F +hipyset1_35/pyinki_hijing.F +hipyset1_35/pyinre_hijing.F +hipyset1_35/pykcut_hijing.F +hipyset1_35/pyklim_hijing.F +hipyset1_35/pykmap_hijing.F +hipyset1_35/pymaxi_hijing.F +hipyset1_35/pymult_hijing.F +hipyset1_35/pyovly_hijing.F +hipyset1_35/pyrand_hijing.F +hipyset1_35/pyremn_hijing.F +hipyset1_35/pyresd_hijing.F +hipyset1_35/pyscat_hijing.F +hipyset1_35/pysigh_hijing.F +hipyset1_35/pyspen_hijing.F +hipyset1_35/pyspli_hijing.F +hipyset1_35/pysspa_hijing.F +hipyset1_35/pystat_hijing.F +hipyset1_35/pystfe_hijing.F +hipyset1_35/pystfu_hijing.F +hipyset1_35/pytest_hijing.F +hipyset1_35/pythia_hijing.F +hipyset1_35/pyw1au_hijing.F +hipyset1_35/pyw2au_hijing.F +hipyset1_35/pywidt_hijing.F +hipyset1_35/pyxtot_hijing.F +hipyset1_35/ulalps_hijing.F +hipyset1_35/ulangl_hijing.F +hipyset1_35/ulmass_hijing.F +) + + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(hijing "${SRCS}" "${HDRS}") + diff --git a/HLT/BASE/interface/HLTinterfaceLinkDef.h b/HLT/BASE/interface/HLTinterfaceLinkDef.h new file mode 100644 index 00000000000..19a0be9620f --- /dev/null +++ b/HLT/BASE/interface/HLTinterfaceLinkDef.h @@ -0,0 +1,8 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#endif diff --git a/HLT/BASE/util/AliHLTUtilLinkDef.h b/HLT/BASE/util/AliHLTUtilLinkDef.h new file mode 100644 index 00000000000..611ea309bb6 --- /dev/null +++ b/HLT/BASE/util/AliHLTUtilLinkDef.h @@ -0,0 +1,18 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTFilePublisher+; +#pragma link C++ class AliHLTFileWriter+; +#pragma link C++ class AliHLTRootFilePublisherComponent+; +#pragma link C++ class AliHLTRootFileWriterComponent+; +#pragma link C++ class AliHLTRootFileStreamerComponent+; +#pragma link C++ class AliHLTLoaderPublisherComponent+; +#pragma link C++ class AliHLTRawReaderPublisherComponent+; +#pragma link C++ class AliHLTDataGenerator+; +#pragma link C++ class AliHLTBlockFilterComponent+; +#pragma link C++ class AliHLTAgentUtil+; +#endif diff --git a/HLT/CMakeLists.txt b/HLT/CMakeLists.txt new file mode 100644 index 00000000000..5d7da2ecd84 --- /dev/null +++ b/HLT/CMakeLists.txt @@ -0,0 +1,92 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/EMCAL +${CMAKE_SOURCE_DIR}/HLT +${CMAKE_SOURCE_DIR}/HLT/BASE +${CMAKE_SOURCE_DIR}/HLT/BASE/HOMER +${CMAKE_SOURCE_DIR}/HLT/BASE/interface +${CMAKE_SOURCE_DIR}/HLT/BASE/util +${CMAKE_SOURCE_DIR}/HLT/EMCAL +${CMAKE_SOURCE_DIR}/HLT/ITS +${CMAKE_SOURCE_DIR}/HLT/MUON +${CMAKE_SOURCE_DIR}/HLT/MUON/OfflineInterface +${CMAKE_SOURCE_DIR}/HLT/MUON/OnlineAnalysis +${CMAKE_SOURCE_DIR}/HLT/MUON/utils +${CMAKE_SOURCE_DIR}/HLT/PHOS +${CMAKE_SOURCE_DIR}/HLT/RCU +${CMAKE_SOURCE_DIR}/HLT/SampleLib +${CMAKE_SOURCE_DIR}/HLT/TPCLib +${CMAKE_SOURCE_DIR}/HLT/TPCLib/comp +${CMAKE_SOURCE_DIR}/HLT/TPCLib/offline +${CMAKE_SOURCE_DIR}/HLT/TPCLib/tracking-ca +${CMAKE_SOURCE_DIR}/HLT/TRD +${CMAKE_SOURCE_DIR}/HLT/comp +${CMAKE_SOURCE_DIR}/HLT/offline +${CMAKE_SOURCE_DIR}/HLT/rec +${CMAKE_SOURCE_DIR}/HLT/shuttle +${CMAKE_SOURCE_DIR}/HLT/sim +${CMAKE_SOURCE_DIR}/HLT/tracking-ca +${CMAKE_SOURCE_DIR}/HLT/trigger +${CMAKE_SOURCE_DIR}/ITS +${CMAKE_SOURCE_DIR}/MUON +${CMAKE_SOURCE_DIR}/MUON/mapping +${CMAKE_SOURCE_DIR}/PHOS +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/TPC +${CMAKE_SOURCE_DIR}/TRD +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +ADD_DEFINITIONS(-Duse_aliroot -Duse_root -DROWHOUGHPARAMS -Duse_reconstruction -Duse_newio -DROOTVERSION=\"unchecked\" -DALIROOTVERSION=\"unchecked\" -D__ROOT__ -DUSE_ALILOG -DLINUX -DLIBHLTSIM_VERSION=0) + +SetModule() + +Include(CMake_libAliHLTHOMER.txt) + +Include(CMake_libHLTinterface.txt) + +Include(CMake_libAliHLTUtil.txt) + +Include(CMake_libAliHLTSample.txt) + +Include(CMake_libAliHLTRCU.txt) + +Include(CMake_libHLTshuttle.txt) + +Include(CMake_libAliHLTTrigger.txt) + +Include(CMake_libAliHLTMUON.txt) + +Include(CMake_libHLTrec.txt) + +Include(CMake_libHLTbase.txt) + +Include(CMake_libAliHLTTPC.txt) + +Include(CMake_libAliHLTTRD.txt) + +Include(CMake_libAliHLTComp.txt) + +Include(CMake_libAliHLTITS.txt) + +Include(CMake_libHLTsim.txt) + +Include(CMake_libAliHLTPHOS.txt) + +Include(CMake_libAliHLTEMCAL.txt) + +Include(CMake_bindHLTdumpraw.txt) + diff --git a/HLT/CMake_bindHLTdumpraw.txt b/HLT/CMake_bindHLTdumpraw.txt new file mode 100644 index 00000000000..baa9edb535a --- /dev/null +++ b/HLT/CMake_bindHLTdumpraw.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +MUON/utils/dHLTdumpraw.cxx +) + +Set(LIBS STEERBase ESD AOD RAWDatabase RAWDatarec RAWDatasim CDB STEER HLTbase + MUONevaluation MUONsim MUONrec MUONbase MUONtrigger MUONgeometry MUONraw + MUONcalib MUONmapping MUONcore AliHLTMUON AliHLTHOMER HLTshuttle) + +AddExecutable(dHLTdumpraw "${SRCS}" "${LIBS}") diff --git a/HLT/CMake_libAliHLTComp.txt b/HLT/CMake_libAliHLTComp.txt new file mode 100644 index 00000000000..ba332755fea --- /dev/null +++ b/HLT/CMake_libAliHLTComp.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS +comp/AliHLTCompAgent.cxx +comp/AliHLTCompPreprocessor.cxx +comp/AliHLTCompDefinitions.cxx +comp/AliHLTCOMPHuffmanAltro.cxx +comp/AliHLTCOMPHuffmanAltroComponent.cxx +comp/AliHLTCOMPHuffmanCodeData.cxx +comp/AliHLTCOMPHuffmanData.cxx +comp/AliHLTCOMPHuffmanOccurrenceData.cxx +comp/AliHLTCOMPHuffmanAltroCalibComponent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTComp "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTEMCAL.txt b/HLT/CMake_libAliHLTEMCAL.txt new file mode 100644 index 00000000000..0d9935439f9 --- /dev/null +++ b/HLT/CMake_libAliHLTEMCAL.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +EMCAL/AliHLTEMCALClusterizerComponent.cxx +EMCAL/AliHLTEMCALDefinitions.cxx +EMCAL/AliHLTEMCALTrackerComponent.cxx +EMCAL/AliHLTEMCALCalibrationComponent.cxx +EMCAL/AliHLTEMCALUtils.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTEMCAL "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTHOMER.txt b/HLT/CMake_libAliHLTHOMER.txt new file mode 100644 index 00000000000..3becfe1dbfb --- /dev/null +++ b/HLT/CMake_libAliHLTHOMER.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS +BASE/HOMER/AliHLTHOMERReader.cxx +BASE/HOMER/AliHLTHOMERWriter.cxx +) + +Set_source_files_properties(${SRCS} PROPERTIES COMPILE_FLAGS + "-Duse_aliroot -DUSE_ROOT -Duse_root -DROWHOUGHPARAMS -Duse_reconstruction -Duse_newio -DROOTVERSION=\"unchecked\" -DALIROOTVERSION=\"unchecked\" -D__ROOT__ -DUSE_ALILOG -DLINUX") + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + + +Set(HDRS "${HDRS}" +BASE/HOMER/AliHLTHOMERData.h +) + +AddLibrary(AliHLTHOMER "${SRCS}" "${HDRS}") + diff --git a/HLT/CMake_libAliHLTITS.txt b/HLT/CMake_libAliHLTITS.txt new file mode 100644 index 00000000000..6b71a84d4a2 --- /dev/null +++ b/HLT/CMake_libAliHLTITS.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +ITS/AliHLTITStrack.cxx +ITS/AliHLTITStracker.cxx +ITS/AliHLTITSVertexerZ.cxx +ITS/AliHLTITSclusterer.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTITS "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTMUON.txt b/HLT/CMake_libAliHLTMUON.txt new file mode 100644 index 00000000000..92b97baa8f9 --- /dev/null +++ b/HLT/CMake_libAliHLTMUON.txt @@ -0,0 +1,53 @@ +# -*- mode: cmake -*- + +set(SRCS +MUON/OfflineInterface/AliHLTMUONAgent.cxx +MUON/OfflineInterface/AliHLTMUONTriggerRecordsSource.cxx +MUON/OfflineInterface/AliHLTMUONRecHitsSource.cxx +MUON/OfflineInterface/AliHLTMUONDigitPublisherComponent.cxx +MUON/OfflineInterface/AliHLTMUONRootifierComponent.cxx +MUON/OfflineInterface/AliHLTMUONESDMaker.cxx +MUON/OnlineAnalysis/AliHLTMUONTriggerReconstructorComponent.cxx +MUON/OnlineAnalysis/AliHLTMUONHitReconstructorComponent.cxx +MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMComponent.cxx +MUON/OnlineAnalysis/AliHLTMUONDecisionComponent.cxx +MUON/utils/AliHLTMUONEmptyEventFilterComponent.cxx +MUON/utils/AliHLTMUONDataCheckerComponent.cxx +MUON/AliHLTMUONProcessor.cxx +MUON/AliHLTMUONRecHit.cxx +MUON/AliHLTMUONTriggerRecord.cxx +MUON/AliHLTMUONMansoTrack.cxx +MUON/AliHLTMUONDecision.cxx +MUON/AliHLTMUONEvent.cxx +MUON/AliHLTMUONUtils.cxx +MUON/AliHLTMUONConstants.cxx +MUON/AliHLTMUONTriggerRecordsBlockStruct.cxx +MUON/AliHLTMUONTrigRecsDebugBlockStruct.cxx +MUON/AliHLTMUONRecHitsBlockStruct.cxx +MUON/AliHLTMUONClustersBlockStruct.cxx +MUON/AliHLTMUONChannelsBlockStruct.cxx +MUON/AliHLTMUONMansoTracksBlockStruct.cxx +MUON/AliHLTMUONMansoCandidatesBlockStruct.cxx +MUON/AliHLTMUONSinglesDecisionBlockStruct.cxx +MUON/AliHLTMUONPairsDecisionBlockStruct.cxx +MUON/OnlineAnalysis/AliHLTMUONCalculations.cxx +MUON/OnlineAnalysis/AliHLTMUONTriggerReconstructor.cxx +MUON/OnlineAnalysis/AliHLTMUONHitReconstructor.cxx +MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSM.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(HDRS "${HDRS}" +MUON/AliHLTMUONDataBlockReader.h +MUON/AliHLTMUONDataBlockWriter.h +MUON/AliHLTMUONDataTypes.h +MUON/AliHLTMUONList.h +MUON/AliHLTMUONCountedList.h +MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMCallback.h +) + +AddLibrary(AliHLTMUON "${SRCS}" "${HDRS}") + diff --git a/HLT/CMake_libAliHLTPHOS.txt b/HLT/CMake_libAliHLTPHOS.txt new file mode 100644 index 00000000000..2d5387ecb46 --- /dev/null +++ b/HLT/CMake_libAliHLTPHOS.txt @@ -0,0 +1,85 @@ +# -*- mode: cmake -*- + +set(SRCS +PHOS/AliHLTPHOSBase.cxx +PHOS/AliHLTPHOSClusterizer.cxx +PHOS/AliHLTPHOSClusterizerComponent.cxx +PHOS/AliHLTPHOSDataCorruptor.cxx +PHOS/AliHLTPHOSDataQualityMonitor.cxx +PHOS/AliHLTPHOSDefinitions.cxx +PHOS/AliHLTPHOSEmcCalibData.cxx +PHOS/AliHLTPHOSPhysicsAnalyzer.cxx +PHOS/AliHLTPHOSPhysicsAnalyzerPeakFitter.cxx +PHOS/AliHLTPHOSPhysicsAnalyzerSpectrum.cxx +PHOS/AliHLTPHOSPhysicsAnalyzerSpectrumComponent.cxx +PHOS/AliHLTPHOSProcessor.cxx +PHOS/AliHLTPHOSPulseGenerator.cxx +PHOS/AliHLTPHOSRawAnalyzer.cxx +PHOS/AliHLTPHOSRawAnalyzerChiSquareFit.cxx +PHOS/AliHLTPHOSRawAnalyzerComponent.cxx +PHOS/AliHLTPHOSRawAnalyzerCrude.cxx +PHOS/AliHLTPHOSRawAnalyzerCrudeComponent.cxx +PHOS/AliHLTPHOSRawAnalyzerKLevel.cxx +PHOS/AliHLTPHOSRawAnalyzerLMS.cxx +PHOS/AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx +PHOS/AliHLTPHOSRcuDataQualityMonitorComponent.cxx +PHOS/AliHLTPHOSRcuHistogramProducer.cxx +PHOS/AliHLTPHOSRcuHistogramProducerComponent.cxx +PHOS/AliHLTPHOSRcuProcessor.cxx +PHOS/AliHLTPHOSMapper.cxx +PHOS/AliHLTPHOSRawAnalyzerPeakFinder.cxx +PHOS/AliHLTPHOSSanityInspector.cxx +PHOS/AliHLTPHOSDigitMaker.cxx +PHOS/AliHLTPHOSDigitMakerComponent.cxx +PHOS/AliHLTPHOSDigit.cxx +PHOS/AliHLTPHOSBaselineAnalyzer.cxx +PHOS/AliHLTPHOSBaselineAnalyzerComponent.cxx +PHOS/AliHLTPHOSBaseline.cxx +PHOS/AliHLTPHOSConfig.cxx +PHOS/AliHLTPHOSAltroConfig.cxx +PHOS/AliHLTPHOSSharedMemoryInterface.cxx +PHOS/AliHLTPHOSClusterAnalyser.cxx +PHOS/AliHLTPHOSClusterAnalyserComponent.cxx +PHOS/AliHLTPHOSESDMaker.cxx +PHOS/AliHLTPHOSESDMakerComponent.cxx +PHOS/AliHLTPHOSRcuCalibrationProcessorComponent.cxx +PHOS/AliHLTPHOSRcuCalibrationProcessor.cxx +PHOS/AliHLTPHOSPattern.cxx +PHOS/AliHLTPHOSRcuAltroPatternTest.cxx +PHOS/AliHLTPHOSRcuAltroPatternTestComponent.cxx +PHOS/AliHLTPHOSModuleCalibrationProcessorComponent.cxx +PHOS/AliHLTPHOSRcuDAComponent.cxx +PHOS/AliHLTPHOSRcuProperties.cxx +PHOS/AliHLTPHOSUtilities.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + + +Set(HDRS "${HDRS}" +PHOS/AliHLTPHOSCommonDefs.h +PHOS/AliHLTPHOSConstants.h +PHOS/AliHLTPHOSRecPointDataStruct.h +PHOS/AliHLTPHOSRawAnalyzer.h +PHOS/AliHLTPHOSDefinitions.h +PHOS/AliHLTPHOSModuleCellEnergyDataStruct.h +PHOS/AliHLTPHOSRcuCellEnergyDataStruct.h +PHOS/AliHLTPHOSValidCellDataStruct.h +PHOS/AliHLTPHOSDataHeaderStruct.h +PHOS/AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h +PHOS/AliHLTPHOSModuleCellAverageEnergyDataStruct.h +PHOS/AliHLTPHOSRcuCellAccumulatedEnergyDataStruct.h +PHOS/AliHLTPHOSRcuCellAverageEnergyDataStruct.h +PHOS/AliHLTPHOSRecPointDataStruct.h +PHOS/AliHLTPHOSRecPointContainerStruct.h +PHOS/AliHLTPHOSDigitContainerDataStruct.h +PHOS/AliHLTPHOSRcuDigitContainerDataStruct.h +PHOS/AliHLTPHOSDigitDataStruct.h +PHOS/AliHLTPHOSCaloClusterDataStruct.h +PHOS/AliHLTPHOSCaloClusterContainerStruct.h +) + +AddLibrary(AliHLTPHOS "${SRCS}" "${HDRS}") + diff --git a/HLT/CMake_libAliHLTRCU.txt b/HLT/CMake_libAliHLTRCU.txt new file mode 100644 index 00000000000..65d00c361e3 --- /dev/null +++ b/HLT/CMake_libAliHLTRCU.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +RCU/AliHLTAltroChannelSelectorComponent.cxx +RCU/AliHLTAltroEncoder.cxx +RCU/AliHLTAltroGenerator.cxx +RCU/AliHLTRCUAgent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTRCU "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTSample.txt b/HLT/CMake_libAliHLTSample.txt new file mode 100644 index 00000000000..3fc685ae542 --- /dev/null +++ b/HLT/CMake_libAliHLTSample.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +SampleLib/AliHLTSampleComponent1.cxx +SampleLib/AliHLTSampleComponent2.cxx +SampleLib/AliHLTSampleMonitoringComponent.cxx +SampleLib/AliHLTAgentSample.cxx +SampleLib/AliHLTSamplePreprocessor.cxx +SampleLib/AliHLTSampleOfflineSinkComponent.cxx +SampleLib/AliHLTDummyComponent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTSample "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTTPC.txt b/HLT/CMake_libAliHLTTPC.txt new file mode 100644 index 00000000000..90b6b738cff --- /dev/null +++ b/HLT/CMake_libAliHLTTPC.txt @@ -0,0 +1,104 @@ +# -*- mode: cmake -*- + +set(SRCS +TPClib/AliHLTTPCTransform.cxx +TPClib/AliHLTTPCAgent.cxx +TPClib/AliHLTTPCMemHandler.cxx +TPClib/AliHLTTPCDataCompressorHelper.cxx +TPClib/AliHLTTPCFitter.cxx +TPClib/AliHLTTPCFileHandler.cxx +TPClib/AliHLTTPCClusterFinder.cxx +TPClib/AliHLTTPCMapping.cxx +TPClib/AliHLTTPCDigitReader.cxx +TPClib/AliHLTTPCDigitReaderPacked.cxx +TPClib/AliHLTTPCDigitReaderUnpacked.cxx +TPClib/AliHLTTPCDigitReaderDecoder.cxx +TPClib/AliHLTTPCDigitDumpComponent.cxx +TPClib/AliHLTTPCZeroSuppressionComponent.cxx +TPClib/AliHLTTPCNoiseMap.cxx +TPClib/AliHLTTPCNoiseMapComponent.cxx +TPClib/AliHLTTPCVertex.cxx +TPClib/AliHLTTPCVertexArray.cxx +TPClib/AliHLTTPCVertexFinder.cxx +TPClib/AliHLTTPCTrackArray.cxx +TPClib/AliHLTTPCTrack.cxx +TPClib/offline/AliHLTTPCDigitPublisherComponent.cxx +TPClib/offline/AliHLTTPCOfflineClustererComponent.cxx +TPClib/offline/AliHLTTPCOfflineTrackerComponent.cxx +TPClib/offline/AliHLTTPCOfflineCalibrationComponent.cxx +TPClib/offline/AliHLTTPCOfflineCluster.cxx +TPClib/AliHLTTPCClusters.cxx +TPClib/AliHLTTPCConfMapFit.cxx +TPClib/AliHLTTPCConfMapTrack.cxx +TPClib/AliHLTTPCConfMapPoint.cxx +TPClib/AliHLTTPCConfMapper.cxx +TPClib/AliHLTTPCModelTrack.cxx +TPClib/AliHLTTPCMerger.cxx +TPClib/AliHLTTPCTrackMerger.cxx +TPClib/AliHLTTPCGlobalMerger.cxx +TPClib/AliHLTTPCInterMerger.cxx +TPClib/AliHLTTPCPad.cxx +TPClib/AliHLTTPCDefinitions.cxx +TPClib/AliHLTTPCRawDataUnpackerComponent.cxx +TPClib/AliHLTTPCClusterFinderComponent.cxx +TPClib/AliHLTTPCVertexFinderComponent.cxx +TPClib/AliHLTTPCSliceTrackerComponent.cxx +TPClib/AliHLTTPCGlobalMergerComponent.cxx +TPClib/AliHLTTPCEsdWriterComponent.cxx +TPClib/AliHLTTPCHistogramHandlerComponent.cxx +TPClib/AliHLTTPCClusterConverterComponent.cxx +TPClib/tracking-ca/AliHLTTPCCACell.cxx +TPClib/tracking-ca/AliHLTTPCCADisplay.cxx +TPClib/tracking-ca/AliHLTTPCCAHit.cxx +TPClib/tracking-ca/AliHLTTPCCAOutTrack.cxx +TPClib/tracking-ca/AliHLTTPCCAParam.cxx +TPClib/tracking-ca/AliHLTTPCCARow.cxx +TPClib/tracking-ca/AliHLTTPCCATrackerComponent.cxx +TPClib/tracking-ca/AliHLTTPCCATracker.cxx +TPClib/tracking-ca/AliHLTTPCCATrack.cxx +TPClib/tracking-ca/AliHLTTPCCATrackPar.cxx +TPClib/comp/AliHLTTPCCompDataCompressorHelper.cxx +TPClib/comp/AliHLTTPCCompDumpComponent.cxx +TPClib/comp/AliHLTTPCCompModelAnalysis.cxx +TPClib/comp/AliHLTTPCCompModelConverter.cxx +TPClib/comp/AliHLTTPCCompModelConverterComponent.cxx +TPClib/comp/AliHLTTPCCompModelDeconverter.cxx +TPClib/comp/AliHLTTPCCompModelDeconverterComponent.cxx +TPClib/comp/AliHLTTPCCompModelDeflater.cxx +TPClib/comp/AliHLTTPCCompModelDeflaterComponent.cxx +TPClib/comp/AliHLTTPCCompModelInflater.cxx +TPClib/comp/AliHLTTPCCompModelInflaterComponent.cxx +TPClib/AliHLTTPCCalibPedestalComponent.cxx +TPClib/AliHLTTPCCalibPulserComponent.cxx +TPClib/AliHLTTPCCalibCEComponent.cxx +TPClib/AliHLTTPCEventStatistics.cxx +TPClib/AliHLTTPCEventStatisticsProducerComponent.cxx +TPClib/AliHLTTPCRunStatistics.cxx +TPClib/AliHLTTPCRunStatisticsProducerComponent.cxx +TPClib/AliHLTTPCKryptonClusterFinder.cxx +TPClib/AliHLTTPCKryptonClusterFinderComponent.cxx +TPClib/AliHLTTPCClusterHistoComponent.cxx +TPClib/AliHLTTPCTrackHistoComponent.cxx +TPClib/AliHLTTPCTrackDumpComponent.cxx +TPClib/AliHLTTPCClusterDumpComponent.cxx +TPCLib/AliHLTTPCLog.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + + +set(HDRS ${HDRS} +TPClib/AliHLTTPCLogging.h +TPClib/AliHLTTPCSpacePointData.h +TPClib/AliHLTTPCRootTypes.h +TPClib/AliHLTTPCDigitData.h +TPClib/AliHLTTPCTrackSegmentData.h +TPClib/AliHLTTPCVertexData.h +TPClib/AliHLTTPCTrackletDataFormat.h +TPClib/AliHLTTPCClusterDataFormat.h +TPClib/AliHLTTPCModels.h +) + +AddLibrary(AliHLTTPC "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTTRD.txt b/HLT/CMake_libAliHLTTRD.txt new file mode 100644 index 00000000000..db9f17390c5 --- /dev/null +++ b/HLT/CMake_libAliHLTTRD.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +TRD/AliHLTTRDClusterizerComponent.cxx +TRD/AliHLTTRDDefinitions.cxx +TRD/AliHLTTRDTrackerComponent.cxx +TRD/AliHLTTRDTrackerV1Component.cxx +TRD/AliTRDclusterizerHLT.cxx +TRD/AliHLTTRDEsdWriterComponent.cxx +TRD/AliHLTTRDCalibrationComponent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTTRD "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTTrigger.txt b/HLT/CMake_libAliHLTTrigger.txt new file mode 100644 index 00000000000..d3a86201b8e --- /dev/null +++ b/HLT/CMake_libAliHLTTrigger.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +trigger/AliHLTEventSummary.cxx +trigger/AliHLTEventSummaryProducerComponent.cxx +trigger/AliHLTRunSummary.cxx +trigger/AliHLTRunSummaryProducerComponent.cxx +trigger/AliHLTTriggerSelectiveReadoutComponent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTTrigger "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libAliHLTUtil.txt b/HLT/CMake_libAliHLTUtil.txt new file mode 100644 index 00000000000..a4a6c6bf185 --- /dev/null +++ b/HLT/CMake_libAliHLTUtil.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- + +set(SRCS +BASE/util/AliHLTFilePublisher.cxx +BASE/util/AliHLTFileWriter.cxx +BASE/util/AliHLTRootFilePublisherComponent.cxx +BASE/util/AliHLTRootFileWriterComponent.cxx +BASE/util/AliHLTRootFileStreamerComponent.cxx +BASE/util/AliHLTLoaderPublisherComponent.cxx +BASE/util/AliHLTRawReaderPublisherComponent.cxx +BASE/util/AliHLTOUTPublisherComponent.cxx +BASE/util/AliHLTEsdCollectorComponent.cxx +BASE/util/AliHLTDataGenerator.cxx +BASE/util/AliHLTBlockFilterComponent.cxx +BASE/util/AliHLTAgentUtil.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliHLTUtil "${SRCS}" "${HDRS}") + + + + + + + diff --git a/HLT/CMake_libHLTbase.txt b/HLT/CMake_libHLTbase.txt new file mode 100644 index 00000000000..40a62deb1f0 --- /dev/null +++ b/HLT/CMake_libHLTbase.txt @@ -0,0 +1,52 @@ +# -*- mode: cmake -*- + +set(SRCS +BASE/AliHLTComponent.cxx +BASE/AliHLTComponentHandler.cxx +BASE/AliHLTSystem.cxx +BASE/AliHLTReconstructorBase.cxx +BASE/AliHLTProcessor.cxx +BASE/AliHLTCalibrationProcessor.cxx +BASE/AliHLTConfiguration.cxx +BASE/AliHLTConfigurationHandler.cxx +BASE/AliHLTTask.cxx +BASE/AliHLTLogging.cxx +BASE/AliHLTDataBuffer.cxx +BASE/AliHLTConsumerDescriptor.cxx +BASE/AliHLTDataSource.cxx +BASE/AliHLTDataSink.cxx +BASE/AliHLTOfflineInterface.cxx +BASE/AliHLTOfflineDataSource.cxx +BASE/AliHLTOfflineDataSink.cxx +BASE/AliHLTModuleAgent.cxx +BASE/AliHLTModulePreprocessor.cxx +BASE/AliHLTShuttleInterface.cxx +BASE/AliHLTHOMERLibManager.cxx +BASE/AliHLTHOMERBlockDesc.cxx +BASE/AliHLTHOMERSourceDesc.cxx +BASE/AliHLTEsdManager.cxx +BASE/AliHLTOUT.cxx +BASE/AliHLTOUTHomerBuffer.cxx +BASE/AliHLTOUTHandler.cxx +BASE/AliHLTOUTHandlerEquId.cxx +BASE/AliHLTMemoryFile.cxx +BASE/AliHLTMessage.cxx +BASE/AliHLTEventStatistics.cxx +BASE/AliHLTRunStatistics.cxx +BASE/AliHLT_C_Component_WrapperInterface.cxx +BASE/AliHLTDataTypes.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +set(HDRS ${HDRS} +BASE/AliHLTCommonCDBEntries.h +BASE/AliHLTMisc.h +BASE/AliHLTDefinitions.h +BASE/AliHLTStdIncludes.h +) + +AddLibrary(HLTbase "${SRCS}" "${HDRS}") + diff --git a/HLT/CMake_libHLTinterface.txt b/HLT/CMake_libHLTinterface.txt new file mode 100644 index 00000000000..bcbf134f02f --- /dev/null +++ b/HLT/CMake_libHLTinterface.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +BASE/interface/AliHLTExternalInterface.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HLTinterface "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libHLTrec.txt b/HLT/CMake_libHLTrec.txt new file mode 100644 index 00000000000..4de3bd8f348 --- /dev/null +++ b/HLT/CMake_libHLTrec.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +rec/AliHLTReconstructor.cxx +rec/AliRawReaderHLT.cxx +rec/AliHLTOUTHomerCollection.cxx +rec/AliHLTEsdManagerImplementation.cxx +rec/AliHLTOUTDigitReader.cxx +rec/AliHLTOUTRawReader.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HLTrec "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libHLTshuttle.txt b/HLT/CMake_libHLTshuttle.txt new file mode 100644 index 00000000000..daab83a056c --- /dev/null +++ b/HLT/CMake_libHLTshuttle.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +shuttle/AliHLTPreprocessor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HLTshuttle "${SRCS}" "${HDRS}") diff --git a/HLT/CMake_libHLTsim.txt b/HLT/CMake_libHLTsim.txt new file mode 100644 index 00000000000..e831447e4a8 --- /dev/null +++ b/HLT/CMake_libHLTsim.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +sim/AliHLTSimulation.cxx +sim/AliHLTAgentSim.cxx +sim/AliHLTOUTComponent.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HLTsim "${SRCS}" "${HDRS}") diff --git a/HLT/HLTbaseLinkDef.h b/HLT/HLTbaseLinkDef.h new file mode 100644 index 00000000000..dc377e8053a --- /dev/null +++ b/HLT/HLTbaseLinkDef.h @@ -0,0 +1,40 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTComponent+; +#pragma link C++ class AliHLTComponentHandler+; +#pragma link C++ class AliHLTSystem+; +#pragma link C++ class AliHLTReconstructorBase+; +#pragma link C++ class AliHLTProcessor+; +#pragma link C++ class AliHLTCalibrationProcessor+; +#pragma link C++ class AliHLTConfiguration+; +#pragma link C++ class AliHLTConfigurationHandler+; +#pragma link C++ class AliHLTTask+; +#pragma link C++ class AliHLTLogging+; +#pragma link C++ class AliHLTDataBuffer+; +#pragma link C++ class AliHLTConsumerDescriptor+; +#pragma link C++ class AliHLTDataSource+; +#pragma link C++ class AliHLTDataSink+; +#pragma link C++ class AliHLTOfflineInterface+; +#pragma link C++ class AliHLTOfflineDataSource+; +#pragma link C++ class AliHLTOfflineDataSink+; +#pragma link C++ class AliHLTModuleAgent+; +#pragma link C++ class AliHLTModulePreprocessor+; +#pragma link C++ class AliHLTShuttleInterface+; +#pragma link C++ class AliHLTHOMERLibManager+; +#pragma link C++ class AliHLTHOMERBlockDesc+; +#pragma link C++ class AliHLTHOMERSourceDesc+; +#pragma link C++ class AliHLTEsdManager+; +#pragma link C++ class AliHLTOUT+; +#pragma link C++ class AliHLTOUTHomerBuffer+; +#pragma link C++ class AliHLTOUTHandler+; +#pragma link C++ class AliHLTOUTHandlerEquId+; +#pragma link C++ class AliHLTMemoryFile+; +#pragma link C++ class AliHLTMessage+; +#pragma link C++ class AliHLTEventStatistics+; +#pragma link C++ class AliHLTRunStatistics+; +#endif diff --git a/HLT/ITS/AliHLTITSLinkDef.h b/HLT/ITS/AliHLTITSLinkDef.h new file mode 100644 index 00000000000..d87baa53250 --- /dev/null +++ b/HLT/ITS/AliHLTITSLinkDef.h @@ -0,0 +1,12 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTITStrack+; +#pragma link C++ class AliHLTITStracker+; +#pragma link C++ class AliHLTITSVertexerZ+; +#pragma link C++ class AliHLTITSclusterer+; +#endif diff --git a/HLT/RCU/AliHLTRCULinkDef.h b/HLT/RCU/AliHLTRCULinkDef.h new file mode 100644 index 00000000000..cf33d469740 --- /dev/null +++ b/HLT/RCU/AliHLTRCULinkDef.h @@ -0,0 +1,12 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTAltroChannelSelectorComponent+; +#pragma link C++ class AliHLTAltroEncoder+; +#pragma link C++ class AliHLTAltroGenerator+; +#pragma link C++ class AliHLTRCUAgent+; +#endif diff --git a/HLT/SampleLib/AliHLTSampleLinkDef.h b/HLT/SampleLib/AliHLTSampleLinkDef.h new file mode 100644 index 00000000000..6a74f08ccec --- /dev/null +++ b/HLT/SampleLib/AliHLTSampleLinkDef.h @@ -0,0 +1,15 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTSampleComponent1+; +#pragma link C++ class AliHLTSampleComponent2+; +#pragma link C++ class AliHLTSampleMonitoringComponent+; +#pragma link C++ class AliHLTAgentSample+; +#pragma link C++ class AliHLTSamplePreprocessor+; +#pragma link C++ class AliHLTSampleOfflineSinkComponent+; +#pragma link C++ class AliHLTDummyComponent+; +#endif diff --git a/HLT/TPCLib/AliHLTTPCLinkDef.h b/HLT/TPCLib/AliHLTTPCLinkDef.h new file mode 100644 index 00000000000..9fce0d24f25 --- /dev/null +++ b/HLT/TPCLib/AliHLTTPCLinkDef.h @@ -0,0 +1,73 @@ + +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTTPCTransform+; +#pragma link C++ class AliHLTTPCAgent+; +#pragma link C++ class AliHLTTPCMemHandler+; +#pragma link C++ class AliHLTTPCDataCompressorHelper+; +#pragma link C++ class AliHLTTPCFitter+; +#pragma link C++ class AliHLTTPCFileHandler+; +#pragma link C++ class AliHLTTPCClusterFinder+; +#pragma link C++ class AliHLTTPCMapping+; +#pragma link C++ class AliHLTTPCDigitReader+; +#pragma link C++ class AliHLTTPCDigitReaderPacked+; +#pragma link C++ class AliHLTTPCDigitReaderUnpacked+; +#pragma link C++ class AliHLTTPCDigitReaderDecoder+; +#pragma link C++ class AliHLTTPCDigitDumpComponent+; +#pragma link C++ class AliHLTTPCZeroSuppressionComponent+; +#pragma link C++ class AliHLTTPCNoiseMapComponent+; +#pragma link C++ class AliHLTTPCVertex+; +#pragma link C++ class AliHLTTPCVertexArray+; +#pragma link C++ class AliHLTTPCVertexFinder+; +#pragma link C++ class AliHLTTPCTrackArray+; +#pragma link C++ class AliHLTTPCTrack+; +#pragma link C++ class AliHLTTPCDigitPublisherComponent+; +#pragma link C++ class AliHLTTPCClusters+; +#pragma link C++ class AliHLTTPCConfMapFit+; +#pragma link C++ class AliHLTTPCConfMapTrack+; +#pragma link C++ class AliHLTTPCConfMapPoint+; +#pragma link C++ class AliHLTTPCConfMapper+; +#pragma link C++ class AliHLTTPCModelTrack+; +#pragma link C++ class AliHLTTPCMerger+; +#pragma link C++ class AliHLTTPCTrackMerger+; +#pragma link C++ class AliHLTTPCGlobalMerger+; +#pragma link C++ class AliHLTTPCInterMerger+; +#pragma link C++ class AliHLTTPCPad+; +#pragma link C++ class AliHLTTPCDefinitions+; +#pragma link C++ class AliHLTTPCRawDataUnpackerComponent+; +#pragma link C++ class AliHLTTPCClusterFinderComponent+; +#pragma link C++ class AliHLTTPCVertexFinderComponent+; +#pragma link C++ class AliHLTTPCSliceTrackerComponent+; +#pragma link C++ class AliHLTTPCGlobalMergerComponent+; +#pragma link C++ class AliHLTTPCEsdWriterComponent+; +#pragma link C++ class AliHLTTPCCACell+; +#pragma link C++ class AliHLTTPCCADisplay+; +#pragma link C++ class AliHLTTPCCAHit+; +#pragma link C++ class AliHLTTPCCAOutTrack+; +#pragma link C++ class AliHLTTPCCAParam+; +#pragma link C++ class AliHLTTPCCARow+; +#pragma link C++ class AliHLTTPCCATrackerComponent+; +#pragma link C++ class AliHLTTPCCATracker+; +#pragma link C++ class AliHLTTPCCATrack+; +#pragma link C++ class AliHLTTPCCATrackPar+; +#pragma link C++ class AliHLTTPCCompDataCompressorHelper+; +#pragma link C++ class AliHLTTPCCompDumpComponent+; +#pragma link C++ class AliHLTTPCCompModelAnalysis+; +#pragma link C++ class AliHLTTPCCompModelConverter+; +#pragma link C++ class AliHLTTPCCompModelConverterComponent+; +#pragma link C++ class AliHLTTPCCompModelDeconverter+; +#pragma link C++ class AliHLTTPCCompModelDeconverterComponent+; +#pragma link C++ class AliHLTTPCCompModelDeflater+; +#pragma link C++ class AliHLTTPCCompModelDeflaterComponent+; +#pragma link C++ class AliHLTTPCCompModelInflater+; +#pragma link C++ class AliHLTTPCCompModelInflaterComponent+; +#pragma link C++ class AliHLTTPCCalibPedestalComponent+; +#pragma link C++ class AliHLTTPCCalibPulserComponent+; +#pragma link C++ class AliHLTTPCCalibCEComponent+; +#pragma link C++ class AliHLTTPCEventStatistics+; +#pragma link C++ class AliHLTTPCEventStatisticsProducerComponent+; +#pragma link C++ class AliHLTTPCRunStatistics+; +#pragma link C++ class AliHLTTPCRunStatisticsProducerComponent+; +#endif diff --git a/HLT/comp/AliHLTCompLinkDef.h b/HLT/comp/AliHLTCompLinkDef.h new file mode 100644 index 00000000000..a51c220d0ab --- /dev/null +++ b/HLT/comp/AliHLTCompLinkDef.h @@ -0,0 +1,17 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTCompAgent+; +#pragma link C++ class AliHLTCompPreprocessor+; +#pragma link C++ class AliHLTCompDefinitions+; +#pragma link C++ class AliHLTCOMPHuffmanAltro+; +#pragma link C++ class AliHLTCOMPHuffmanAltroComponent+; +#pragma link C++ class AliHLTCOMPHuffmanCodeData+; +#pragma link C++ class AliHLTCOMPHuffmanData+; +#pragma link C++ class AliHLTCOMPHuffmanOccurrenceData+; +#pragma link C++ class AliHLTCOMPHuffmanAltroCalibComponent+; +#endif diff --git a/HLT/rec/HLTrecLinkDef.h b/HLT/rec/HLTrecLinkDef.h new file mode 100644 index 00000000000..1bc19c7201a --- /dev/null +++ b/HLT/rec/HLTrecLinkDef.h @@ -0,0 +1,12 @@ + +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTReconstructor+; +#pragma link C++ class AliRawReaderHLT+; +#pragma link C++ class AliHLTOUTHomerCollection+; +#pragma link C++ class AliHLTEsdManager+; +#pragma link C++ class AliHLTOUTDigitReader+; +#pragma link C++ class AliHLTOUTRawReader+; +#endif diff --git a/HLT/shuttle/HLTshuttleLinkDef.h b/HLT/shuttle/HLTshuttleLinkDef.h new file mode 100644 index 00000000000..bf6352b4002 --- /dev/null +++ b/HLT/shuttle/HLTshuttleLinkDef.h @@ -0,0 +1,9 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTPreprocessor+; +#endif diff --git a/HLT/sim/HLTsimLinkDef.h b/HLT/sim/HLTsimLinkDef.h new file mode 100644 index 00000000000..b24835381bb --- /dev/null +++ b/HLT/sim/HLTsimLinkDef.h @@ -0,0 +1,11 @@ +//automatically generated ROOT DICT definition +//!!! DO NOT EDIT THIS FILE !!! +//add further class definitions to the CLASS_HDRS variable in Makefile.am +#ifdef __CINT__ +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; +#pragma link C++ class AliHLTSimulation+; +#pragma link C++ class AliHLTAgentSim+; +#pragma link C++ class AliHLTOUTComponent+; +#endif diff --git a/HLT/trigger/AliHLTTriggerLinkDef.h b/HLT/trigger/AliHLTTriggerLinkDef.h index bcd2a85aaba..fd31cf52ae6 100644 --- a/HLT/trigger/AliHLTTriggerLinkDef.h +++ b/HLT/trigger/AliHLTTriggerLinkDef.h @@ -6,9 +6,11 @@ #pragma link off all classes; #pragma link off all functions; -#pragma link C++ class AliD0toKpi; -#pragma link C++ class AliD0Trigger; - +#pragma link C++ class AliHLTEventSummary+; +#pragma link C++ class AliHLTEventSummaryProducerComponent+; +#pragma link C++ class AliHLTRunSummary+; +#pragma link C++ class AliHLTRunSummaryProducerComponent+; +#pragma link C++ class AliHLTTriggerSelectiveReadoutComponent+; #endif diff --git a/HMPID/CMakeLists.txt b/HMPID/CMakeLists.txt new file mode 100644 index 00000000000..a22b9baf6f0 --- /dev/null +++ b/HMPID/CMakeLists.txt @@ -0,0 +1,27 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/HMPID +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libHMPIDbase.txt) + +include(CMake_libHMPIDsim.txt) + +include(CMake_libHMPIDrec.txt) diff --git a/HMPID/CMake_libHMPIDbase.txt b/HMPID/CMake_libHMPIDbase.txt new file mode 100644 index 00000000000..6581876d945 --- /dev/null +++ b/HMPID/CMake_libHMPIDbase.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS + AliHMPIDHit.cxx AliHMPIDDigit.cxx AliHMPIDCluster.cxx AliHMPIDParam.cxx AliHMPIDPreprocessor.cxx + AliHMPIDQAChecker.cxx AliHMPIDCalib.cxx AliHMPIDRawStream.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HMPIDbase "${SRCS}" "${HDRS}") diff --git a/HMPID/CMake_libHMPIDrec.txt b/HMPID/CMake_libHMPIDrec.txt new file mode 100644 index 00000000000..b73447ec011 --- /dev/null +++ b/HMPID/CMake_libHMPIDrec.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS + AliHMPIDReconstructor.cxx AliHMPIDTracker.cxx + AliHMPIDRecon.cxx AliHMPIDRecoParam.cxx + AliHMPIDReconHTA.cxx AliHMPIDPid.cxx + AliHMPIDQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HMPIDrec "${SRCS}" "${HDRS}") + diff --git a/HMPID/CMake_libHMPIDsim.txt b/HMPID/CMake_libHMPIDsim.txt new file mode 100644 index 00000000000..7edc89e5d7e --- /dev/null +++ b/HMPID/CMake_libHMPIDsim.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliHMPID.cxx AliHMPIDv0.cxx AliHMPIDv1.cxx AliHMPIDv2.cxx AliHMPIDv3.cxx AliHMPIDDigitizer.cxx AliHMPIDQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(HMPIDsim "${SRCS}" "${HDRS}") + diff --git a/ISAJET/CMakeLists.txt b/ISAJET/CMakeLists.txt new file mode 100644 index 00000000000..04224adf5bd --- /dev/null +++ b/ISAJET/CMakeLists.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ISAJET +${CMAKE_SOURCE_DIR}/ISAJET/isajet +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libisajet.txt) + + + + diff --git a/ISAJET/CMake_libisajet.txt b/ISAJET/CMake_libisajet.txt new file mode 100644 index 00000000000..855ef0959c8 --- /dev/null +++ b/ISAJET/CMake_libisajet.txt @@ -0,0 +1,363 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(isajet_SRCS +AliIsajetRndm.cxx +) + +set(isajet_CSRCS +main.c +) + +set(isajet_FSRCS +code/alqcd.F +code/amass.F +code/amgmw.F +code/charge.F +code/ctxc2i.F +code/ctxi2c.F +code/ctxin.F +code/ctxout.F +code/datime.F +code/dblpcm.F +code/dblvec.F +code/dboost.F +code/decay.F +code/decjet.F +code/decps1.F +code/decps2.F +code/decss3.F +code/dectau.F +code/decva.F +code/dhelas.F +code/dincgm.F +code/domssm.F +code/drllyn.F +code/ebeam.F +code/eebeg.F +code/eemax.F +code/elctrn.F +code/epf.F +code/estruc.F +code/evol01.F +code/evol02.F +code/evol03.F +code/evol05.F +code/evol06.F +code/evol07.F +code/evol11.F +code/evolms.F +code/evolve.F +code/fbrbm.F +code/flavor.F +code/fortop.F +code/frgjet.F +code/frgmnt.F +code/gamma.F +code/getpt.F +code/gettot.F +code/heavyx.F +code/hevolv.F +code/higgs.F +code/idanti.F +code/idgen.F +code/iframs.F +code/inisap.F +code/ipartns.F +code/ipjset.F +code/iprtns.F +code/irmov0.F +code/isabeg.F +code/isabg2.F +code/isaend.F +code/isaevt.F +code/isaini.F +code/isajet.F +code/isasrt.F +code/ispjet.F +code/istrad.F +code/iswdky.F +code/jetgen.F +code/kkgf1.F +code/kkgf2.F +code/kkgf3.F +code/label.F +code/lboost.F +code/logerr.F +code/logic.F +code/logmgm.F +code/logmgy.F +code/logmij.F +code/logp.F +code/logphi.F +code/logphw.F +code/logpt.F +code/logqm.F +code/logqt.F +code/logthw.F +code/logx.F +code/logxw.F +code/logyth.F +code/logyw.F +code/lstsq.F +code/mbias.F +code/mbset.F +code/mginit.F +code/muljet.F +code/nogood.F +code/ordecr.F +code/order.F +code/prtevt.F +code/prtlim.F +code/ptfun.F +code/qcdini.F +code/qcdint.F +code/qcdinz.F +code/qcdjet.F +code/qcdt.F +code/qcdz.F +code/qfunc.F +code/ranfgt.F +code/ranfmt.F +code/ranfst.F +code/readin.F +code/rejfrg.F +code/rejjet.F +code/rescal.F +code/reset.F +code/setcon.F +code/setdky.F +code/seth.F +code/sethss.F +code/setkkg.F +code/setnxt.F +code/settyp.F +code/setw.F +code/sigdy2.F +code/sigdy.F +code/sigee.F +code/sigfil.F +code/siggam.F +code/sigh2.F +code/sigh3.F +code/sigh.F +code/sighss.F +code/sigint.F +code/sigkkg.F +code/sigqcd.F +code/sigsse.F +code/sigssl.F +code/sigssy.F +code/sigssz.F +code/sigtc2.F +code/sigtc3.F +code/sigtc.F +code/sigwh.F +code/sigwhs.F +code/sigww2.F +code/sigww.F +code/smszg.F +code/spline.F +code/ssfel.F +code/ssgst.F +code/ssgt.F +code/struc.F +code/strucw.F +code/szjj1.F +code/szjj2.F +code/szjj3.F +code/szjj4.F +code/szjj5.F +code/szjj6.F +code/szjj7.F +code/timer.F +code/twojet.F +code/twokin.F +code/visaje.F +code/whiggs.F +code/wpair.F +code/wwkin.F +code/wwss.F +code/wwst.F +code/wwtt.F +code/wzss.F +code/wzst.F +code/wzsu.F +code/wztu.F +code/xwwww.F +code/xwwzz.F +code/xzzww.F +code/xzzzz.F +code/ygenj.F +code/zjj0.F +code/zjj1.F +code/zjj2.F +code/zjj3.F +code/zjj4.F +code/zjj5.F +code/zjj6.F +code/zjj7.F +code/zjj.F +code/zzall.F +code/zzstar.F +isasusy/ssalfs.F +isasusy/ssb0.F +isasusy/ssb1.F +isasusy/ssdhll.F +isasusy/ssdint.F +isasusy/ssdlam.F +isasusy/ssf0.F +isasusy/ssglbf.F +isasusy/ssgwq1.F +isasusy/ssgwq2.F +isasusy/ssgwt1.F +isasusy/ssgwt2.F +isasusy/ssgwt3.F +isasusy/ssgwt4.F +isasusy/ssgwt5.F +isasusy/ssgwt6.F +isasusy/ssgwt7.F +isasusy/ssgwt8.F +isasusy/ssgx10.F +isasusy/ssgx11.F +isasusy/ssgx1.F +isasusy/ssgx2.F +isasusy/ssgx3.F +isasusy/ssgx4.F +isasusy/ssgx5.F +isasusy/ssgx6.F +isasusy/ssgx7.F +isasusy/ssgx8.F +isasusy/ssgx9.F +isasusy/ssgzg1.F +isasusy/ssgzg2.F +isasusy/ssgzg3.F +isasusy/ssgzt.F +isasusy/sshcc.F +isasusy/sshff1.F +isasusy/sshff.F +isasusy/sshgl.F +isasusy/sshgm1.F +isasusy/sshgm.F +isasusy/sshhx.F +isasusy/sshibf.F +isasusy/sshnn.F +isasusy/sshsf.F +isasusy/sshww1.F +isasusy/sshww2.F +isasusy/sshww.F +isasusy/ssl1st.F +isasusy/sslpbf.F +isasusy/sslrt1.F +isasusy/ssmass.F +isasusy/ssme3.F +isasusy/ssmhc.F +isasusy/ssmhn.F +isasusy/ssmqcd.F +isasusy/ssmssm.F +isasusy/ssn1st.F +isasusy/ssnorm.F +isasusy/sspole.F +isasusy/ssqkbf.F +isasusy/sssave.F +isasusy/sssnws.F +isasusy/ssstbf.F +isasusy/sstest.F +isasusy/sstpbf.F +isasusy/sswibf.F +isasusy/sswwf1.F +isasusy/sswzbf.F +isasusy/sswzf1.F +isasusy/sswzf2.F +isasusy/sswzf3.F +isasusy/sswzf4.F +isasusy/sswzf5.F +isasusy/sswzf6.F +isasusy/sswzf7.F +isasusy/ssxint.F +isasusy/ssxlam.F +isasusy/sszhx.F +isasusy/sszibf.F +isasusy/sszwf1.F +isasusy/sszzf1.F +isasusy/sszzf2.F +isasusy/sszzf3.F +isasusy/sszzf4.F +isasusy/sszzf5.F +isasusy/sualfe.F +isasusy/sualfs.F +isasusy/sugeff.F +isasusy/sugfrz.F +isasusy/sugmas.F +isasusy/sugra.F +isasusy/sugrge.F +isasusy/surg06.F +isasusy/surg26.F +isatape/bufin.F +isatape/bufout.F +isatape/edit.F +isatape/isahep.F +isatape/isawbg.F +isatape/isawev.F +isatape/isawnd.F +isatape/itrans.F +isatape/movlev.F +isatape/prtlst.F +isatape/rdbeg.F +isatape/rdtape.F +isatape/rend.F +isatape/rgens.F +isatape/wgens.F +isatape/zerol.F +isadata/aldata.F +isarun/dialog.F +isarun/isaset.F +openfile/openfile.F +pdfinit/pdfinit.F +utils/cern_lib/ddilog.F +utils/cern_lib/eisrs1.F +utils/cern_lib/rkstp.F +utils/cern_lib/sorttf.F +utils/cern_lib/tql2.F +utils/cern_lib/tred2.F +) + +If(RULE_CHECKER_FOUND) + CHECK_RULES("${isajet_SRCS}" "${INCLUDE_DIRECTORIES}" isajet_RULES) +endIf(RULE_CHECKER_FOUND) + +## fill list of header files from list of source files +## by exchanging the file extension +CHANGE_FILE_EXTENSION(*.cxx *.h isajet_HEADERS "${isajet_SRCS}") + +set(isajet_LINKDEF isajetLinkDef.h) +set(isajet_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/isajetDict.cxx) +# +ROOT_GENERATE_DICTIONARY("${isajet_HEADERS}" "${isajet_LINKDEF}" "${isajet_DICTIONARY}" "${INCLUDE_DIRECTORIES}") +# +set(isajet_SRCS ${isajet_SRCS} ${isajet_DICTIONARY}) + +add_library(isajet SHARED ${isajet_SRCS} ${isajet_CSRCS} ${isajet_FSRCS}) +target_link_libraries(isajet ${ROOT_LIBRARIES}) +set_target_properties(isajet PROPERTIES ${ALIROOT_LIBRARY_PROPERTIES}) +SET_TARGET_PROPERTIES(isajet PROPERTIES LINKER_LANGUAGE CXX) + +################ install ################### +install(TARGETS isajet DESTINATION ${ALIROOT_INSTALL_DIR}/lib) + + + + + + + + + + + + + + diff --git a/ITS/CMakeLists.txt b/ITS/CMakeLists.txt new file mode 100644 index 00000000000..e0253ccaadf --- /dev/null +++ b/ITS/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ITS +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libITSrec.txt) + +include(CMake_libITSbase.txt) + +include(CMake_libITSsim.txt) + + diff --git a/ITS/CMake_libITSbase.txt b/ITS/CMake_libITSbase.txt new file mode 100644 index 00000000000..9f986f0a9df --- /dev/null +++ b/ITS/CMake_libITSbase.txt @@ -0,0 +1,75 @@ +# -*- mode: cmake -*- + +set(SRCS + AliITSgeom.cxx + AliITSgeomMatrix.cxx + AliITSgeomSPD.cxx + AliITSgeomSDD.cxx + AliITSgeomSSD.cxx + AliITSInitGeometry.cxx + AliITSLoader.cxx + AliITSRecPoint.cxx + AliITSclusterV2.cxx + AliITSdigit.cxx + AliITSdigitSPD.cxx + AliITSdigitSDD.cxx + AliITSTransientDigit.cxx + AliITSdigitSSD.cxx + AliITSMap.cxx + AliITSMapA1.cxx + AliITSMapA2.cxx + AliITSMisalignMaker.cxx + AliITSpList.cxx + AliITSpListItem.cxx + AliITSsegmentation.cxx + AliITSsegmentationSPD.cxx + AliITSsegmentationSDD.cxx + AliITSsegmentationSSD.cxx + AliITSresponse.cxx + AliITSCalibration.cxx + AliITSresponseSPD.cxx + AliITSresponseSDD.cxx + AliITSresponseSSD.cxx + AliITSCalibrationSPD.cxx + AliITSCalibrationSDD.cxx + AliITSCalibrationSSD.cxx + AliITSChannelStatus.cxx + AliITSMapSDD.cxx + AliITSDriftSpeedSDD.cxx + AliITSDDLModuleMapSDD.cxx + AliITSDriftSpeedArraySDD.cxx + AliITSBadChannelsSSD.cxx + AliITSGainSSD.cxx + AliITSNoiseSSD.cxx + AliITSChannelDaSSD.cxx + AliITSModuleDaSSD.cxx + AliITSHandleDaSSD.cxx + AliITSDDLRawData.cxx + AliITSRawStream.cxx + AliITSRawStreamSDDv2.cxx + AliITSRawStreamSDDv3.cxx + AliITSRawStreamSSD.cxx + AliITSRawStreamSDD.cxx + AliITSRawStreamSPD.cxx + AliITSEventHeader.cxx + AliITSRawStreamSSDv1.cxx + AliITSRawData.cxx + AliITSgeomTGeo.cxx + AliITSPlaneEff.cxx + AliITSPlaneEffSPD.cxx + AliITSPlaneEffSDD.cxx + AliITSPlaneEffSSD.cxx + AliITSRawStreamSPDErrorLog.cxx + AliITSDCSAnalyzerSDD.cxx + AliITSDCSDataSDD.cxx + AliITSIntMap.cxx + AliITSIntMapNode.cxx + AliITSPedestalSSD.cxx + AliITSSurveyToAlignSSD.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ITSbase "${SRCS}" "${HDRS}") diff --git a/ITS/CMake_libITSrec.txt b/ITS/CMake_libITSrec.txt new file mode 100644 index 00000000000..094f255e4af --- /dev/null +++ b/ITS/CMake_libITSrec.txt @@ -0,0 +1,106 @@ +# -*- mode: cmake -*- + +set(SRCS + AliITSDetTypeRec.cxx + AliITSRawCluster.cxx + AliITSClusterFinder.cxx + AliITSClusterFinderSPD.cxx + AliITSClusterFinderSDD.cxx + AliITSClusterFinderSSD.cxx + AliITSClusterFinderV2.cxx + AliITSClusterFinderV2SDD.cxx + AliITSClusterFinderV2SPD.cxx + AliITSClusterFinderV2SSD.cxx + AliITSClusterParam.cxx + AliITSclustererV2.cxx + AliITSclusterSSD.cxx + AliITSpackageSSD.cxx + AliITSIOTrack.cxx + AliITSRad.cxx + AliITStrackV2.cxx + AliITStrackerV2.cxx + AliITStrackMI.cxx + AliITStrackerMI.cxx + AliITSVertexer.cxx + AliITSVertexerIons.cxx + AliITSVertexerCosmics.cxx + AliITSVertexer3D.cxx + AliITSVertexerZ.cxx + AliITSVertexerFast.cxx + AliITSVertexer3DTapan.cxx + AliITSMeanVertexer.cxx + AliITSZPoint.cxx + AliITSPid.cxx + AliITStrackV2Pid.cxx + AliITSreconstruction.cxx + AliITSclusterTable.cxx + AliITStrackSA.cxx + AliITStrackerSA.cxx + AliITSNeuralPoint.cxx + AliITSNeuralTrack.cxx + AliITSNeuralTracker.cxx + AliITStrackerANN.cxx + AliITSpidESD.cxx + AliITSpidESD1.cxx + AliITSpidESD2.cxx + AliITSPident.cxx + AliITSSteerPid.cxx + AliITSPidParItem.cxx + AliITSRawClusterSPD.cxx + AliITSRawClusterSDD.cxx + AliITSRawClusterSSD.cxx + AliITSReconstructor.cxx + AliITSRecoParam.cxx + AliITSBeamTestDig.cxx + AliITSBeamTestDigSDD.cxx + AliITSBeamTestDigSPD.cxx + AliITSBeamTestDigSSD.cxx + AliITSBeamTestDigitizer.cxx + AliITSMultReconstructor.cxx + AliITSPreprocessorSPD.cxx + AliITSOnlineCalibrationSPD.cxx + AliITSOnlineCalibrationSPDhandler.cxx + AliITSOnlineSPDHitArray.cxx + AliITSOnlineSPDHitEvent.cxx + AliITSOnlineSPDscanAnalyzer.cxx + AliITSOnlineSPDscan.cxx + AliITSOnlineSPDscanInfo.cxx + AliITSOnlineSPDscanInfoMeanTh.cxx + AliITSOnlineSPDscanInfoMultiple.cxx + AliITSOnlineSPDscanMeanTh.cxx + AliITSOnlineSPDscanMultiple.cxx + AliITSOnlineSPDscanSingle.cxx + AliITSOnlineSPDphys.cxx + AliITSOnlineSPDphysAnalyzer.cxx + AliITSOnlineSPDphysInfo.cxx + AliITSBadChannelsAuxSPD.cxx + AliITSBadChannelsSPD.cxx + AliITSChannelSPD.cxx + AliITSPreprocessorSDD.cxx + AliITSOnlineSDD.cxx + AliITSOnlineSDDBase.cxx + AliITSOnlineSDDTP.cxx + AliITSOnlineSDDInjectors.cxx + AliITSOnlineSDDCMN.cxx + AliITSPreprocessorSSD.cxx + AliITSAlignMille.cxx + AliITSAlignMilleModule.cxx + AliITSQAChecker.cxx + AliITSResidualsAnalysis.cxx + AliITSQADataMakerRec.cxx + AliITSQASPDDataMakerRec.cxx + AliITSQASDDDataMakerRec.cxx + AliITSQASSDDataMakerRec.cxx + AliITSQASPDChecker.cxx + AliITSQASDDChecker.cxx + AliITSQASSDChecker.cxx + AliITSTrackleterSPDEff.cxx + AliITSRealignTracks.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ITSrec "${SRCS}" "${HDRS}") + diff --git a/ITS/CMake_libITSsim.txt b/ITS/CMake_libITSsim.txt new file mode 100644 index 00000000000..ec4ef00f24b --- /dev/null +++ b/ITS/CMake_libITSsim.txt @@ -0,0 +1,51 @@ +# -*- mode: cmake -*- + +set(SRCS + AliITS.cxx + AliITSvSPD02.cxx + AliITSvSDD03.cxx + AliITSvPPRcoarseasymm.cxx + AliITSvPPRasymmFMD.cxx + AliITSvBeamTestITS04.cxx + AliITSvtest.cxx + AliITSvSSD03.cxx + AliITShit.cxx + AliITSSimuParam.cxx + AliITSDetTypeSim.cxx + AliITSmodule.cxx + AliITSsimulationFastPoints.cxx + AliITSsimulationFastPointsV0.cxx + AliITSsimulation.cxx + AliITSsimulationSPD.cxx + AliITSsimulationSDD.cxx + AliITSsimulationSSD.cxx + AliITSTableSSD.cxx + AliITSetfSDD.cxx + AliITSHuffman.cxx + AliITSstatistics.cxx + AliITSstatistics2.cxx + AliITSsDigitize.cxx + AliITSDigitizer.cxx + AliITSFDigitizer.cxx + AliITSTrigger.cxx + AliITSv11.cxx + AliITSv11Geometry.cxx + AliITSv11GeomCable.cxx + AliITSv11GeomCableFlat.cxx + AliITSv11GeomCableRound.cxx + AliITSv11GeometrySDD.cxx + AliITSv11GeometrySSD.cxx + AliITSv11GeometrySPD.cxx + AliITSv11Hybrid.cxx + AliITSv11GeometrySupport.cxx + AliITSQADataMakerSim.cxx + AliITSQASPDDataMakerSim.cxx + AliITSQASDDDataMakerSim.cxx + AliITSQASSDDataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ITSsim "${SRCS}" "${HDRS}") diff --git a/JETAN/CMakeLists.txt b/JETAN/CMakeLists.txt new file mode 100644 index 00000000000..f49823c6f41 --- /dev/null +++ b/JETAN/CMakeLists.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/JETAN +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${CMAKE_SOURCE_DIR}/TPC +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include (CMake_libJETAN.txt) + +include (CMake_libJETANMC.txt) + + diff --git a/JETAN/CMake_libJETAN.txt b/JETAN/CMake_libJETAN.txt new file mode 100644 index 00000000000..c67a8c86b9e --- /dev/null +++ b/JETAN/CMake_libJETAN.txt @@ -0,0 +1,46 @@ +# -*- mode: cmake -*- + +set(SRCS + AliJet.cxx AliJetHeader.cxx + AliJetFinder.cxx AliJetReaderHeader.cxx + AliJetESDReaderHeader.cxx AliJetReader.cxx AliJetESDReader.cxx + AliJetControlPlots.cxx AliUA1JetHeader.cxx + AliLeading.cxx + AliJetProductionData.cxx AliJetProductionDataPDC2004.cxx + AliJetAnalysis.cxx AliJetDistributions.cxx + AliUA1JetFinderV1.cxx AliUA1JetFinderV2.cxx AliUA1JetHeaderV1.cxx + AliJetGrid.cxx AliJetUnitArray.cxx AliJetHadronCorrection.cxx + AliJetHadronCorrectionv0.cxx AliJetHadronCorrectionv1.cxx + AliJetFillUnitArrayTracks.cxx AliJetFillUnitArrayEMCalDigits.cxx + AliJetDummyGeo.cxx AliJetDummyShishKebabTrd1Module.cxx + AliJetFinderTypes.cxx + AliAnalysisTaskJets.cxx + AliDAJetFinder.cxx + AliDAJetHeader.cxx + AliJetAODReader.cxx + AliJetAODReaderHeader.cxx + AliJetKineReader.cxx + AliJetKineReaderHeader.cxx + AliJetMCReader.cxx + AliJetMCReaderHeader.cxx + AliJetHistos.cxx + AliAnalysisTaskDiJets.cxx + AliAnalysisTaskJetsCDF.cxx AliCdfJetFinder.cxx AliCdfJetHeader.cxx +) + +Set(FASTJET $ENV{FASTJET}) + +If(FASTJET) + set(SRCS ${SRCS} + AliFastJetFinder.cxx AliFastJetHeader.cxx +) + include_directories( ${INCLUDE_DIRECTORIES} ${FASTJET}/include ) + set_source_files_properties(${SRCS} PROPERTIES COMPILE_FLAGS -DWITHFASTJET) +endIf(FASTJET) + + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(JETAN "${SRCS}" "${HDRS}") diff --git a/JETAN/CMake_libJETANMC.txt b/JETAN/CMake_libJETANMC.txt new file mode 100644 index 00000000000..bef47008f59 --- /dev/null +++ b/JETAN/CMake_libJETANMC.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +AliJetESDmcReader.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(JETANMC "${SRCS}" "${HDRS}") diff --git a/LHAPDF/CMakeLists.txt b/LHAPDF/CMakeLists.txt new file mode 100644 index 00000000000..20008a98123 --- /dev/null +++ b/LHAPDF/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/LHAPDF +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libLHAPDF.txt) + diff --git a/LHAPDF/CMake_libLHAPDF.txt b/LHAPDF/CMake_libLHAPDF.txt new file mode 100644 index 00000000000..db9fe331736 --- /dev/null +++ b/LHAPDF/CMake_libLHAPDF.txt @@ -0,0 +1,62 @@ +# -*- mode: cmake -*- + +set(SRCS +AliStructFuncType.cxx +) + +set(FSRCS +lhapdf5.3.1/commons.f +lhapdf5.3.1/alphas.f +lhapdf5.3.1/description.f +lhapdf5.3.1/eks98.f +lhapdf5.3.1/eksarp.f +lhapdf5.3.1/EVLCTEQ.f +lhapdf5.3.1/evolution.f +lhapdf5.3.1/inputPDF.f +lhapdf5.3.1/LHpdflib.f +lhapdf5.3.1/parameter.f +lhapdf5.3.1/QCDNUM.f +lhapdf5.3.1/QCDparams.f +lhapdf5.3.1/Sqcdnum.f +lhapdf5.3.1/wrapa02.f +lhapdf5.3.1/wrapa02m.f +lhapdf5.3.1/wrapabfkwpi.f +lhapdf5.3.1/wrapacfgpg.f +lhapdf5.3.1/wrapcteq5.f +lhapdf5.3.1/wrapcteq65.f +lhapdf5.3.1/wrapcteq6.f +lhapdf5.3.1/wrapdgg.f +lhapdf5.3.1/wrapdog.f +lhapdf5.3.1/wrapEVLCTEQ.f +lhapdf5.3.1/wrapevolve.f +lhapdf5.3.1/wrapgrv.f +lhapdf5.3.1/wrapgrvg.f +lhapdf5.3.1/wrapgrvpi.f +lhapdf5.3.1/wrapgsg96.f +lhapdf5.3.1/wrapgsg.f +lhapdf5.3.1/wraph1.f +lhapdf5.3.1/wraplacg.f +lhapdf5.3.1/wrapmrst2006.f +lhapdf5.3.1/wrapmrst98.f +lhapdf5.3.1/wrapmrst.f +lhapdf5.3.1/wrapmrstqed.f +lhapdf5.3.1/wrapowpi.f +lhapdf5.3.1/wrapQCDNUM3.f +lhapdf5.3.1/wrapQCDNUM4.f +lhapdf5.3.1/wrapQCDNUM.f +lhapdf5.3.1/wrapsasg.f +lhapdf5.3.1/wrapsmrspi.f +lhapdf5.3.1/wrapwhitg.f +lhapdf5.3.1/wrapzeus.f +lhapdf5.3.1/lhaglue.f +lhapdf5.3.1/wrapUSER.f +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(lhapdf "${SRCS}" "${HDRS}") + diff --git a/LHC/CMakeLists.txt b/LHC/CMakeLists.txt new file mode 100644 index 00000000000..4d17512baad --- /dev/null +++ b/LHC/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/LHC +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libLHC.txt) + diff --git a/LHC/CMake_libLHC.txt b/LHC/CMake_libLHC.txt new file mode 100644 index 00000000000..c5d8016bc0f --- /dev/null +++ b/LHC/CMake_libLHC.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS +AliLHC.cxx +AliLhcIRegion.cxx +AliLhcBeam.cxx +AliLhcProcess.cxx +AliLhcProcessBB.cxx +AliLhcProcessIBS.cxx +AliLhcMonitor.cxx +AliLhcProcessBT.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(LHC "${SRCS}" "${HDRS}") + diff --git a/MICROCERN/CMakeLists.txt b/MICROCERN/CMakeLists.txt new file mode 100644 index 00000000000..b2ee4393142 --- /dev/null +++ b/MICROCERN/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/MICROCERN +${CMAKE_SOURCE_DIR}/MICROCERN/kerngen +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libMICROCERN.txt) + diff --git a/MICROCERN/CMake_libMICROCERN.txt b/MICROCERN/CMake_libMICROCERN.txt new file mode 100644 index 00000000000..a67443a20f6 --- /dev/null +++ b/MICROCERN/CMake_libMICROCERN.txt @@ -0,0 +1,37 @@ +# -*- mode: cmake -*- + +Set(SRCS) + +set(CSRCS +geteni.c +fchput.c +fchtak.c +dummies.c +) + +set(FSRCS +cltou.F +gamma.F +gamma64.F +sortzv.F +ufill.F +fint.F +abend.F +cfill.F +mtlprt.F +mtlset.F +kerset.F +gauss.F +getenvf.F +gauss64.F +) + + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS} ${CSRCS}) + +AddLibrary(microcern "${SRCS}" "${HDRS}") + diff --git a/MONITOR/CMakeLists.txt b/MONITOR/CMakeLists.txt new file mode 100644 index 00000000000..08be42ad718 --- /dev/null +++ b/MONITOR/CMakeLists.txt @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/MONITOR +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/ITS +${CMAKE_SOURCE_DIR}/TPC +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libMONITOR.txt) + +include(CMake_binmonitorCheck.txt) + +include(CMake_binmonitorGDC.txt) + +include(CMake_binderoot.txt) + diff --git a/MONITOR/CMake_binderoot.txt b/MONITOR/CMake_binderoot.txt new file mode 100644 index 00000000000..b9d7250cc86 --- /dev/null +++ b/MONITOR/CMake_binderoot.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +root2date.cxx +deroot.cxx +) + +Set(LIBS STEERBase ESD AOD CDB STEER RAWDatabase RAWDatarec RAWDatasim TPCbase + TPCsim TPCrec HLTbase ITSbase ITSsim ITSrec MUONsim MUONrec MUONbase + MUONgeometry MUONraw MUONcalib MUONmapping MUONtrigger MUONevaluation + MUONcore) + +AddExecutable(deroot "${SRCS}" "${LIBS}") diff --git a/MONITOR/CMake_binmonitorCheck.txt b/MONITOR/CMake_binmonitorCheck.txt new file mode 100644 index 00000000000..be44a32b2d6 --- /dev/null +++ b/MONITOR/CMake_binmonitorCheck.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +monitorCheck.cxx +) + +Set(LIBS STEERBase ESD AOD CDB STEER RAWDatabase RAWDatarec RAWDatasim TPCbase + TPCsim TPCrec ITSbase ITSsim ITSrec HLTbase MUONsim MUONrec MUONbase + MUONgeometry MUONraw MUONcalib MUONmapping MUONtrigger MUONevaluation + MUONcore) + +AddExecutable(monitorCheck "${SRCS}" "${LIBS}") diff --git a/MONITOR/CMake_binmonitorGDC.txt b/MONITOR/CMake_binmonitorGDC.txt new file mode 100644 index 00000000000..e199466f6ab --- /dev/null +++ b/MONITOR/CMake_binmonitorGDC.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +monitorGDC.cxx +) + +Set(LIBS STEERBase ESD AOD CDB STEER RAWDatabase RAWDatarec RAWDatasim TPCbase + TPCsim TPCrec HLTbase ITSbase ITSsim ITSrec MUONsim MUONrec MUONbase + MUONgeometry MUONraw MUONcalib MUONmapping MUONtrigger MUONevaluation + MUONcore) + +AddExecutable(monitorGDC "${SRCS}" "${LIBS}") diff --git a/MONITOR/CMake_libMONITOR.txt b/MONITOR/CMake_libMONITOR.txt new file mode 100644 index 00000000000..c7d63ed9dc3 --- /dev/null +++ b/MONITOR/CMake_libMONITOR.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMonitorPlot.cxx AliMonitorHisto.cxx AliMonitorTrend.cxx + AliMonitor.cxx + AliMonitorTPC.cxx AliMonitorITS.cxx AliMonitorV0s.cxx + AliMonitorDataTPC.cxx + AliMonitorProcess.cxx AliMonitorControl.cxx + AliMonitorDialog.cxx AliMonitorClient.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MONITOR "${SRCS}" "${HDRS}") diff --git a/MUON/CMakeLists.txt b/MUON/CMakeLists.txt new file mode 100644 index 00000000000..10771965465 --- /dev/null +++ b/MUON/CMakeLists.txt @@ -0,0 +1,49 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/MUON +${CMAKE_SOURCE_DIR}/MUON/mapping +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libMUONraw.txt) + +include(CMake_libMUONcalib.txt) + +include(CMake_libMUONrec.txt) + +include(CMake_libMUONgraphics.txt) + +include(CMake_libMUONsim.txt) + +include(CMake_libMUONtrigger.txt) + +include(CMake_libMUONcore.txt) + +include(CMake_libMUONmapping.txt) + +include(CMake_libMUONbase.txt) + +include(CMake_libMUONgeometry.txt) + +include(CMake_libMUONevaluation.txt) + +include(CMake_libMUONshuttle.txt) + +include(CMake_binmchview.txt) + diff --git a/MUON/CMake_binmchview.txt b/MUON/CMake_binmchview.txt new file mode 100644 index 00000000000..d34a9d37446 --- /dev/null +++ b/MUON/CMake_binmchview.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +mchview.cxx +) + +Set(LIBS STEERBase ESD AOD RAWDatarec STEER CDB Physics MUONmapping MUONcalib + MUONgeometry MUONtrigger RAWDatabase RAWDatasim MUONraw MUONbase + MUONshuttle MUONrec MUONgraphics MUONcore lhapdf pythia6 microcern) + +AddExecutable(mchview "${SRCS}" "${LIBS}") diff --git a/MUON/CMake_libMUONbase.txt b/MUON/CMake_libMUONbase.txt new file mode 100644 index 00000000000..dd183dff208 --- /dev/null +++ b/MUON/CMake_libMUONbase.txt @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONConstants.cxx + AliMUONMathieson.cxx + AliMUONDigit.cxx + AliMUONRealDigit.cxx + AliMUONVCluster.cxx + AliMUONRawCluster.cxx + AliMUONRawClusterV2.cxx + AliMUONDigitMaker.cxx + AliMUONRawWriter.cxx + AliMUONCDB.cxx + AliMUONVDigitStore.cxx + AliMUONDigitStoreV1.cxx + AliMUONDigitStoreV1Iterator.cxx + AliMUONDigitStoreVImpl.cxx + AliMUONDigitStoreVImplIterator.cxx + AliMUONDigitStoreV2R.cxx + AliMUONDigitStoreV2S.cxx + AliMUONTOTCAStoreIterator.cxx + AliMUONVDigit.cxx + AliMUONTriggerCircuit.cxx + AliMUONVTriggerStore.cxx + AliMUONTriggerStoreV1.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONbase "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONcalib.txt b/MUON/CMake_libMUONcalib.txt new file mode 100644 index 00000000000..5017aefb103 --- /dev/null +++ b/MUON/CMake_libMUONcalib.txt @@ -0,0 +1,27 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONTriggerLut.cxx + AliMUONVCalibParam.cxx + AliMUONCalibParamND.cxx + AliMUONCalibParamNF.cxx + AliMUONCalibParamNI.cxx + AliMUONCalibrationData.cxx + AliMUONTriggerEfficiencyCells.cxx + AliMUON2DStoreValidator.cxx + AliMUONTriggerIO.cxx + AliMUONTrackerIO.cxx + AliMUONRegionalTriggerConfig.cxx + AliMUONTriggerCrateConfig.cxx + AliMUONGlobalCrateConfig.cxx + AliMUONTriggerDisplay.cxx + AliMUONVTrackerData.cxx + AliMUONSparseHisto.cxx + AliMUONTrackerData.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONcalib "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONcore.txt b/MUON/CMake_libMUONcore.txt new file mode 100644 index 00000000000..b2a17aaf2f6 --- /dev/null +++ b/MUON/CMake_libMUONcore.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- + +set(SRCS + mapping/AliMpIntPair.cxx + mapping/AliMpExMap.cxx + mapping/AliMpExMapIterator.cxx + mapping/AliMpArrayI.cxx + mapping/AliMpStringObjMap.cxx + AliMUONObjectPair.cxx + AliMUONStringIntMap.cxx + AliMUON2DMap.cxx + AliMUON2DMapIterator.cxx + AliMUON2DMapIteratorByI.cxx + AliMUON1DArray.cxx + AliMUON1DMap.cxx + AliMUONCheckItem.cxx + AliMUONVStore.cxx + AliMUONTreeManager.cxx + AliMUONLogger.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONcore "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONevaluation.txt b/MUON/CMake_libMUONevaluation.txt new file mode 100644 index 00000000000..7cd34d94545 --- /dev/null +++ b/MUON/CMake_libMUONevaluation.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONPairLight.cxx + AliMUONTrackLight.cxx + AliMUONCheck.cxx + AliMUONRecoCheck.cxx + AliMUONDataInterface.cxx + AliMUONTriggerGUI.cxx + AliMUONTriggerGUIbdmap.cxx + AliMUONTriggerGUIdimap.cxx + AliMUONTriggerGUIboard.cxx + AliMUONClusterInfo.cxx + AliMUONPadInfo.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONevaluation "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONgeometry.txt b/MUON/CMake_libMUONgeometry.txt new file mode 100644 index 00000000000..6566af50349 --- /dev/null +++ b/MUON/CMake_libMUONgeometry.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONGeometryConstituent.cxx + AliMUONGeometryEnvelope.cxx + AliMUONGeometryEnvelopeStore.cxx + AliMUONGeometryDetElement.cxx + AliMUONGeometryModuleTransformer.cxx + AliMUONGeometryModule.cxx + AliMUONGeometryTransformer.cxx + AliMUONGeometryMisAligner.cxx + AliMUONGeometry.cxx + AliMUONVGeometryBuilder.cxx + AliMUONGeometryBuilder.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONgeometry "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONgraphics.txt b/MUON/CMake_libMUONgraphics.txt new file mode 100644 index 00000000000..31f2edf2b54 --- /dev/null +++ b/MUON/CMake_libMUONgraphics.txt @@ -0,0 +1,44 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONVPainter.cxx + AliMUONPCBPainter.cxx + AliMUONDEPainter.cxx + AliMUONPainterHelper.cxx + AliMUONChamberPainter.cxx + AliMUONManuPainter.cxx + AliMUONPainterPadStore.cxx + AliMUONPainterContourMaker.cxx + AliMUONPainterContour.cxx + AliMUONPainterMasterFrame.cxx + AliMUONPainterMatrixFrame.cxx + AliMUONManuPadPainter.cxx + AliMUONPainterGroup.cxx + AliMUONPainterMatrix.cxx + AliMUONAttPainter.cxx + AliMUONPainterRegistry.cxx + AliMUONPainterHighlighter.cxx + AliMUONPainterPlotSelector.cxx + AliMUONPainterInterfaceHelper.cxx + AliMUONBusPatchPainter.cxx + AliMUONPainterColorSlider.cxx + AliMUONAttPainterSelectorFrame.cxx + AliMUONPainterDataSourceFrame.cxx + AliMUONPainterDataSourceItem.cxx + AliMUONTrackerOCDBDataMaker.cxx + AliMUONPainterEnv.cxx + AliMUONVTrackerDataMaker.cxx + AliMUONTrackerRawDataMaker.cxx + AliMUONTrackerCalibratedDataMaker.cxx + AliMUONMchViewApplication.cxx + AliMUONTrackerDataHistogrammer.cxx + AliMUONTrackerDataWrapper.cxx + AliMUONTrackerDataCompareDialog.cxx + AliMUONTrackerACFDataMaker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONgraphics "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONmapping.txt b/MUON/CMake_libMUONmapping.txt new file mode 100644 index 00000000000..d0d404c5d53 --- /dev/null +++ b/MUON/CMake_libMUONmapping.txt @@ -0,0 +1,128 @@ +# -*- mode: cmake -*- + +# Category basic +# +set(SRCS + mapping/AliMpPlaneType.cxx + mapping/AliMpStationType.cxx + mapping/AliMpCathodType.cxx + mapping/AliMpArea.cxx + mapping/AliMpConstants.cxx + mapping/AliMpFiles.cxx + mapping/AliMpPad.cxx + mapping/AliMpPadIteratorPtr.cxx + mapping/AliMpPadPair.cxx + mapping/AliMpVIndexed.cxx + mapping/AliMpVPadIterator.cxx + mapping/AliMpVSegmentation.cxx + mapping/AliMpDataProcessor.cxx + mapping/AliMpDataStreams.cxx + mapping/AliMpDataMap.cxx +) + +# Category motif +# +set(SRCS ${SRCS} + mapping/AliMpConnection.cxx + mapping/AliMpMotif.cxx + mapping/AliMpMotifMap.cxx + mapping/AliMpMotifPosition.cxx + mapping/AliMpMotifPositionPadIterator.cxx + mapping/AliMpMotifReader.cxx + mapping/AliMpMotifSpecial.cxx + mapping/AliMpMotifType.cxx + mapping/AliMpMotifTypePadIterator.cxx + mapping/AliMpVMotif.cxx +) + +# Category sector +# +set(SRCS ${SRCS} + mapping/AliMpNeighboursPadIterator.cxx + mapping/AliMpPadRow.cxx + mapping/AliMpPadRowLSegment.cxx + mapping/AliMpPadRowRSegment.cxx + mapping/AliMpRow.cxx + mapping/AliMpRowSegment.cxx + mapping/AliMpRowSegmentLSpecial.cxx + mapping/AliMpRowSegmentRSpecial.cxx + mapping/AliMpSectorAreaHPadIterator.cxx + mapping/AliMpSectorAreaVPadIterator.cxx + mapping/AliMpSector.cxx + mapping/AliMpSectorPadIterator.cxx + mapping/AliMpSectorReader.cxx + mapping/AliMpSectorSegmentation.cxx + mapping/AliMpSubZone.cxx + mapping/AliMpVPadRowSegment.cxx + mapping/AliMpVRowSegment.cxx + mapping/AliMpVRowSegmentSpecial.cxx + mapping/AliMpZone.cxx +) + +# Category slat +# +set(SRCS ${SRCS} + mapping/AliMpHelper.cxx + mapping/AliMpPCB.cxx + mapping/AliMpSlat.cxx + mapping/AliMpSlatPadIterator.cxx + mapping/AliMpSlatSegmentation.cxx + mapping/AliMpPCBPadIterator.cxx + mapping/AliMpSt345Reader.cxx + mapping/AliMpSlatMotifMap.cxx +) + +# Category trigger +# +set(SRCS ${SRCS} + mapping/AliMpTrigger.cxx + mapping/AliMpTriggerReader.cxx + mapping/AliMpTriggerSegmentation.cxx + mapping/AliMpRegionalTrigger.cxx + mapping/AliMpTriggerCrate.cxx + mapping/AliMpLocalBoard.cxx +) + +# Category management +# +set(SRCS ${SRCS} + mapping/AliMpManuIterator.cxx + mapping/AliMpManuUID.cxx + mapping/AliMpPadUID.cxx + mapping/AliMpHVUID.cxx + mapping/AliMpHVNamer.cxx + mapping/AliMpSegmentation.cxx + mapping/AliMpDetElement.cxx + mapping/AliMpDEStore.cxx + mapping/AliMpDEIterator.cxx + mapping/AliMpDEManager.cxx + mapping/AliMpBusPatch.cxx + mapping/AliMpDDL.cxx + mapping/AliMpDDLStore.cxx + mapping/AliMpCDB.cxx + mapping/AliMpFrtCrocusConstants.cxx + mapping/AliMpManuStore.cxx +) + +# Category graphics +# +set(SRCS ${SRCS} + mapping/AliMpGraphContext.cxx + mapping/AliMpMotifPainter.cxx + mapping/AliMpPCBPainter.cxx + mapping/AliMpRowPainter.cxx + mapping/AliMpRowSegmentPainter.cxx + mapping/AliMpSectorPainter.cxx + mapping/AliMpSlatPainter.cxx + mapping/AliMpSubZonePainter.cxx + mapping/AliMpVPainter.cxx + mapping/AliMpZonePainter.cxx + mapping/AliMpDEVisu.cxx + mapping/AliMpIteratorPainter.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONmapping "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONraw.txt b/MUON/CMake_libMUONraw.txt new file mode 100644 index 00000000000..4e421eb0e3b --- /dev/null +++ b/MUON/CMake_libMUONraw.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONDDLTrigger.cxx + AliMUONDarcHeader.cxx + AliMUONRegHeader.cxx + AliMUONLocalStruct.cxx + AliMUONPayloadTrigger.cxx + AliMUONDDLTracker.cxx + AliMUONBlockHeader.cxx + AliMUONDspHeader.cxx + AliMUONBusStruct.cxx + AliMUONPayloadTracker.cxx + AliMUONVRawStreamTracker.cxx + AliMUONVRawStreamTrigger.cxx + AliMUONRawStreamTracker.cxx + AliMUONRawStreamTrackerHP.cxx + AliMUONRawStreamTrigger.cxx + AliMUONRawStreamTriggerHP.cxx + AliMUONRawStream.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONraw "${SRCS}" "${HDRS}") + diff --git a/MUON/CMake_libMUONrec.txt b/MUON/CMake_libMUONrec.txt new file mode 100644 index 00000000000..4b2bc59017b --- /dev/null +++ b/MUON/CMake_libMUONrec.txt @@ -0,0 +1,56 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONReconstructor.cxx + AliMUONVTrackReconstructor.cxx + AliMUONTrackReconstructor.cxx + AliMUONTrackReconstructorK.cxx + AliMUONTracker.cxx + AliMUONTrack.cxx + AliMUONTrackParam.cxx + AliMUONTrackExtrap.cxx + AliMUONTriggerTrack.cxx + AliMUONVTriggerTrackStore.cxx + AliMUONTriggerTrackStoreV1.cxx + AliMUONRecoTrack.cxx + AliMUONDigitCalibrator.cxx + AliMUONAlignment.cxx + AliMUONVClusterFinder.cxx + AliMUONPreClusterFinder.cxx + AliMUONPreClusterFinderV2.cxx + AliMUONPreClusterFinderV3.cxx + AliMUONClusterFinderMLEM.cxx + AliMUONClusterSplitterMLEM.cxx + AliMUONClusterFinderSimpleFit.cxx + AliMUONClusterFinderCOG.cxx + AliMUONPad.cxx + AliMUONCluster.cxx + AliMUONPadStatusMaker.cxx + AliMUONPadStatusMapMaker.cxx + AliMUONTrackHitPattern.cxx + AliMUONVClusterStore.cxx + AliMUONClusterStoreV1.cxx + AliMUONClusterStoreV2.cxx + AliMUONClusterStoreV2Iterator.cxx + AliMUONVTrackStore.cxx + AliMUONTrackStoreV1.cxx + AliMUONRecoParam.cxx + AliMUONVClusterServer.cxx + AliMUONSimpleClusterServer.cxx + AliMUONQADataMakerRec.cxx + AliMUONQAChecker.cxx + AliMUONClusterFinderPeakCOG.cxx + AliMUONClusterFinderPeakFit.cxx + AliMUONRefitter.cxx + AliMUONESDInterface.cxx + AliMUONLegacyClusterServer.cxx + AliMUONTriggerTrackToTrackerClusters.cxx + AliMUONTrackerRawDataMaker.cxx + AliMUONTrackerCalibratedDataMaker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONrec "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONshuttle.txt b/MUON/CMake_libMUONshuttle.txt new file mode 100644 index 00000000000..a2db08b8890 --- /dev/null +++ b/MUON/CMake_libMUONshuttle.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS +AliMUONPreprocessor.cxx +AliMUONVSubprocessor.cxx +AliMUONPedestalSubprocessor.cxx +AliMUONGMSSubprocessor.cxx +AliMUONHVSubprocessor.cxx +AliMUONGainSubprocessor.cxx +AliMUONTrackerPreprocessor.cxx +AliMUONTriggerSubprocessor.cxx +AliMUONTriggerPreprocessor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONshuttle "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONsim.txt b/MUON/CMake_libMUONsim.txt new file mode 100644 index 00000000000..f14ed6eee11 --- /dev/null +++ b/MUON/CMake_libMUONsim.txt @@ -0,0 +1,38 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUON.cxx + AliMUONv1.cxx + AliMUONHit.cxx + AliMUONCommonGeometryBuilder.cxx + AliMUONSt1GeometryBuilder.cxx + AliMUONSt1GeometryBuilderV2.cxx + AliMUONSt1SpecialMotif.cxx + AliMUONSt2GeometryBuilder.cxx + AliMUONSt2GeometryBuilderV2.cxx + AliMUONSlatGeometryBuilder.cxx + AliMUONTriggerGeometryBuilder.cxx + AliMUONResponseFactory.cxx + AliMUONChamber.cxx + AliMUONChamberTrigger.cxx + AliMUONResponse.cxx + AliMUONResponseV0.cxx + AliMUONResponseTrigger.cxx + AliMUONResponseTriggerV1.cxx + AliMUONTrigger.cxx + AliMUONSDigitizerV2.cxx + AliMUONDigitizerV3.cxx + AliMUONTriggerElectronics.cxx + AliMUONVHitStore.cxx + AliMUONHitStoreV1.cxx + AliMUONMCDataInterface.cxx + AliMUONPedestalEventGenerator.cxx + AliMUONGainEventGenerator.cxx + AliMUONQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONsim "${SRCS}" "${HDRS}") diff --git a/MUON/CMake_libMUONtrigger.txt b/MUON/CMake_libMUONtrigger.txt new file mode 100644 index 00000000000..5154297766e --- /dev/null +++ b/MUON/CMake_libMUONtrigger.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMUONLocalTrigger.cxx + AliMUONRegionalTrigger.cxx + AliMUONGlobalTrigger.cxx + AliMUONTriggerBoard.cxx + AliMUONLocalTriggerBoard.cxx + AliMUONRegionalTriggerBoard.cxx + AliMUONGlobalTriggerBoard.cxx + AliMUONTriggerCrate.cxx + AliMUONTriggerCrateStore.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MUONtrigger "${SRCS}" "${HDRS}") diff --git a/PHOS/CMakeLists.txt b/PHOS/CMakeLists.txt new file mode 100644 index 00000000000..0df02c810d7 --- /dev/null +++ b/PHOS/CMakeLists.txt @@ -0,0 +1,31 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PHOS +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPHOSrec.txt) + +include(CMake_libPHOSbase.txt) + +include(CMake_libPHOSsim.txt) + +include(CMake_libPHOSshuttle.txt) + + diff --git a/PHOS/CMake_libPHOSbase.txt b/PHOS/CMake_libPHOSbase.txt new file mode 100644 index 00000000000..6d50e76a957 --- /dev/null +++ b/PHOS/CMake_libPHOSbase.txt @@ -0,0 +1,41 @@ +# -*- mode: cmake -*- + +set(SRCS + AliPHOSGeometry.cxx + AliPHOSEMCAGeometry.cxx + AliPHOSCPVGeometry.cxx AliPHOSCPVBaseGeometry.cxx + AliPHOSSupportGeometry.cxx + AliPHOSLoader.cxx + AliPHOSHit.cxx AliPHOSTrackSegmentMaker.cxx AliPHOSPID.cxx + AliPHOSClusterizer.cxx + AliPHOSCalibrationDB.cxx AliPHOSDigitizer.cxx + AliPHOSSDigitizer.cxx AliPHOSDigit.cxx + AliPHOSFastRecParticle.cxx AliPHOSRawStream2004.cxx + AliPHOSCalibData.cxx + AliPHOSCalibrationData.cxx + AliPHOSCpvCalibData.cxx + AliPHOSEmcCalibData.cxx AliPHOSCalibrManager.cxx + AliPHOSConTableDB.cxx + AliPHOSPulseGenerator.cxx + AliPHOSRawDecoder.cxx + AliPHOSRawDecoderv1.cxx + AliPHOSRawDecoderv2.cxx + AliPHOSRawDigiProducer.cxx + AliPHOSEmcBadChannelsMap.cxx + AliPHOSSurvey.cxx + AliPHOSSurvey1.cxx + AliPHOSQAChecker.cxx + AliPHOSRecParticle.cxx AliPHOSRecPoint.cxx + AliPHOSEmcRecPoint.cxx + AliPHOSCpvRecPoint.cxx AliPHOSTrackSegment.cxx + AliPHOSRecoParam.cxx + AliPHOSImpact.cxx + AliPHOSTrigger.cxx + AliPHOSSimParam.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PHOSbase "${SRCS}" "${HDRS}") diff --git a/PHOS/CMake_libPHOSrec.txt b/PHOS/CMake_libPHOSrec.txt new file mode 100644 index 00000000000..5f392548625 --- /dev/null +++ b/PHOS/CMake_libPHOSrec.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +set(SRCS + AliPHOSClusterizerv1.cxx + AliPHOSLink.cxx + AliPHOSTrackSegmentMakerv1.cxx + AliPHOSTrackSegmentMakerv2.cxx + AliPHOSPIDv0.cxx + AliPHOSAnalyze.cxx + AliPHOSIhepAnalyze.cxx AliPHOSEvalRecPoint.cxx + AliPHOSRecManager.cxx AliPHOSRecCpvManager.cxx + AliPHOSRecEmcManager.cxx + AliPHOSClusterizerv2.cxx AliPHOSPIDv1.cxx + AliPHOSJet.cxx AliPHOSJetFinder.cxx + AliPHOSGridFile.cxx + AliPHOSTracker.cxx + AliPHOSEsdCluster.cxx + AliPHOSQADataMakerRec.cxx AliPHOSReconstructor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PHOSrec "${SRCS}" "${HDRS}") diff --git a/PHOS/CMake_libPHOSshuttle.txt b/PHOS/CMake_libPHOSshuttle.txt new file mode 100644 index 00000000000..bb10b18ce01 --- /dev/null +++ b/PHOS/CMake_libPHOSshuttle.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + AliPHOSCalibHistoProducer.cxx + AliPHOSPreprocessor.cxx + AliPHOSRcuDA1.cxx + AliPHOSDA1.cxx + AliPHOSDA2.cxx + AliPHOSCpvDA1.cxx + AliPHOSCpvPreprocessor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PHOSshuttle "${SRCS}" "${HDRS}") + diff --git a/PHOS/CMake_libPHOSsim.txt b/PHOS/CMake_libPHOSsim.txt new file mode 100644 index 00000000000..18a2c57fea0 --- /dev/null +++ b/PHOS/CMake_libPHOSsim.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx + AliPHOSvFast.cxx AliPHOSvImpacts.cxx + AliPHOSCPVDigit.cxx + AliPHOSTick.cxx + AliPHOSRaw2Digits.cxx AliPHOSBeamTestEvent.cxx + AliPHOSCalibrator.cxx + AliPHOSOnlineMonitor.cxx + AliPHOSQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PHOSsim "${SRCS}" "${HDRS}") diff --git a/PMD/CMakeLists.txt b/PMD/CMakeLists.txt new file mode 100644 index 00000000000..a152fb6f2a8 --- /dev/null +++ b/PMD/CMakeLists.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PMD +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPMDbase.txt) + +include(CMake_libPMDsim.txt) + +include(CMake_libPMDrec.txt) + diff --git a/PMD/CMake_libPMDbase.txt b/PMD/CMake_libPMDbase.txt new file mode 100644 index 00000000000..131d1e32712 --- /dev/null +++ b/PMD/CMake_libPMDbase.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPMDLoader.cxx AliPMDdigit.cxx AliPMDBlockHeader.cxx AliPMDDspHeader.cxx AliPMDPatchBusHeader.cxx AliPMDddldata.cxx AliPMDRawStream.cxx AliPMDCalibData.cxx AliPMDCalibrator.cxx AliPMDPreprocessor.cxx AliPMDRawToSDigits.cxx AliPMDPedestal.cxx AliPMDsdigit.cxx AliPMDQAChecker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PMDbase "${SRCS}" "${HDRS}") \ No newline at end of file diff --git a/PMD/CMake_libPMDrec.txt b/PMD/CMake_libPMDrec.txt new file mode 100644 index 00000000000..614e364d43f --- /dev/null +++ b/PMD/CMake_libPMDrec.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPMDRecPoint.cxx AliPMDUtility.cxx AliPMDrecpoint1.cxx AliPMDrechit.cxx AliPMDcluster.cxx AliPMDClusteringV1.cxx AliPMDClusteringV2.cxx AliPMDclupid.cxx AliPMDEmpDiscriminator.cxx AliPMDClusterFinder.cxx AliPMDtracker.cxx AliPMDReconstructor.cxx AliPMDcludata.cxx AliPMDCalibPedestal.cxx AliPMDCalibGain.cxx AliPMDQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PMDrec "${SRCS}" "${HDRS}") + diff --git a/PMD/CMake_libPMDsim.txt b/PMD/CMake_libPMDsim.txt new file mode 100644 index 00000000000..f708ee7249c --- /dev/null +++ b/PMD/CMake_libPMDsim.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDhit.cxx AliPMDcell.cxx AliPMDDigitizer.cxx AliPMDDDLRawData.cxx AliPMDQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PMDsim "${SRCS}" "${HDRS}") diff --git a/PMD/libPMDsim.pkg b/PMD/libPMDsim.pkg index 8d15a381ebf..34d3944534c 100644 --- a/PMD/libPMDsim.pkg +++ b/PMD/libPMDsim.pkg @@ -1,4 +1,5 @@ #-*- Mode: Makefile -*- + # $Id$ SRCS:= AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDhit.cxx AliPMDcell.cxx AliPMDDigitizer.cxx AliPMDDDLRawData.cxx AliPMDQADataMakerSim.cxx diff --git a/PWG0/CMakeLists.txt b/PWG0/CMakeLists.txt new file mode 100644 index 00000000000..0e2b0ecb1e9 --- /dev/null +++ b/PWG0/CMakeLists.txt @@ -0,0 +1,36 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PWG0 +${CMAKE_SOURCE_DIR}/PWG0/dNdEta +${CMAKE_SOURCE_DIR}/PWG0/esdTrackCuts +${CMAKE_SOURCE_DIR}/PWG0/TPC +${CMAKE_SOURCE_DIR}/PWG0/highMultiplicity +${CMAKE_SOURCE_DIR}/PWG0/multiplicity +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/ANALYSIS +${CMAKE_SOURCE_DIR}/TPC +${CMAKE_SOURCE_DIR}/ITS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPWG0selectors.txt) + +include(CMake_libPWG0dep.txt) + +include(CMake_libPWG0base.txt) + diff --git a/PWG0/CMake_libPWG0base.txt b/PWG0/CMake_libPWG0base.txt new file mode 100644 index 00000000000..2a2fa594bbc --- /dev/null +++ b/PWG0/CMake_libPWG0base.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS + dNdEta/dNdEtaAnalysis.cxx + dNdEta/AlidNdEtaCorrection.cxx + AliCorrectionMatrix.cxx + AliCorrectionMatrix2D.cxx + AliCorrectionMatrix3D.cxx + AliCorrection.cxx + AliPWG0Helper.cxx + multiplicity/AliMultiplicityCorrection.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG0base "${SRCS}" "${HDRS}") + diff --git a/PWG0/CMake_libPWG0dep.txt b/PWG0/CMake_libPWG0dep.txt new file mode 100644 index 00000000000..bb7e1c3666f --- /dev/null +++ b/PWG0/CMake_libPWG0dep.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +TPC/AliTPCClusterHistograms.cxx +TPC/AliTPCRawHistograms.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG0dep "${SRCS}" "${HDRS}") diff --git a/PWG0/CMake_libPWG0selectors.txt b/PWG0/CMake_libPWG0selectors.txt new file mode 100644 index 00000000000..2509621c8c2 --- /dev/null +++ b/PWG0/CMake_libPWG0selectors.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + dNdEta/AlidNdEtaTask.cxx + dNdEta/AlidNdEtaCorrectionTask.cxx + TPC/AliROCESDAnalysisSelector.cxx + TPC/AliROCRawAnalysisSelector.cxx + TPC/AliROCClusterAnalysisSelector.cxx + highMultiplicity/AliHighMultiplicitySelector.cxx + multiplicity/AliMultiplicityTask.cxx + esdTrackCuts/AliCutTask.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG0selectors "${SRCS}" "${HDRS}") diff --git a/PWG1/CMakeLists.txt b/PWG1/CMakeLists.txt new file mode 100644 index 00000000000..c9640e5bc4b --- /dev/null +++ b/PWG1/CMakeLists.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PWG1 +${CMAKE_SOURCE_DIR}/PWG0 +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${CMAKE_SOURCE_DIR}/ITS +${CMAKE_SOURCE_DIR}/TRD +${CMAKE_SOURCE_DIR}/TPC +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPWG1.txt) + diff --git a/PWG1/CMake_libPWG1.txt b/PWG1/CMake_libPWG1.txt new file mode 100644 index 00000000000..eb781af327a --- /dev/null +++ b/PWG1/CMake_libPWG1.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- + +set(SRCS + AliTreeDraw.cxx + AliMCInfo.cxx + AliGenV0Info.cxx + AliGenKinkInfo.cxx + AliGenInfoMaker.cxx + AliESDRecInfo.cxx + AliESDRecV0Info.cxx + AliESDRecKinkInfo.cxx + AliRecInfoMaker.cxx + AliComparisonDraw.cxx + AliRecInfoCuts.cxx + AliMCInfoCuts.cxx + AliComparisonTask.cxx + AliComparisonRes.cxx + AliComparisonEff.cxx + AliComparisonDEdx.cxx + AliComparisonDCA.cxx + AliComparisonObject.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG1 "${SRCS}" "${HDRS}") + diff --git a/PWG2/CMakeLists.txt b/PWG2/CMakeLists.txt new file mode 100644 index 00000000000..e026e891f24 --- /dev/null +++ b/PWG2/CMakeLists.txt @@ -0,0 +1,46 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ANALYSIS +${CMAKE_SOURCE_DIR}/PWG2 +${CMAKE_SOURCE_DIR}/PWG2/AOD +${CMAKE_SOURCE_DIR}/PWG2/EBYE +${CMAKE_SOURCE_DIR}/PWG2/EBYE/LRC +${CMAKE_SOURCE_DIR}/PWG2/FEMTOSCOPY +${CMAKE_SOURCE_DIR}/PWG2/FEMTOSCOPY/AliFemto +${CMAKE_SOURCE_DIR}/PWG2/FEMTOSCOPY/AliFemtoUser +${CMAKE_SOURCE_DIR}/PWG2/FLOW +${CMAKE_SOURCE_DIR}/PWG2/SPECTRA +${CMAKE_SOURCE_DIR}/STEER +${ALIROOT_INSTALL_DIR}/include +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPWG2spectra.txt) + +include(CMake_libPWG2flow.txt) + +include(CMake_libPWG2femtoscopyUser.txt) + +include(CMake_libPWG2femtoscopy.txt) + +include(CMake_libPWG2ebye.txt) + +include(CMake_libPWG2AOD.txt) + +include(CMake_libPWG2.txt) + + diff --git a/PWG2/CMake_libPWG2.txt b/PWG2/CMake_libPWG2.txt new file mode 100644 index 00000000000..03c8781f4f1 --- /dev/null +++ b/PWG2/CMake_libPWG2.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS + AliESDtrackCuts.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2 "${SRCS}" "${HDRS}") diff --git a/PWG2/CMake_libPWG2AOD.txt b/PWG2/CMake_libPWG2AOD.txt new file mode 100644 index 00000000000..f7f5ab2adc8 --- /dev/null +++ b/PWG2/CMake_libPWG2AOD.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +AOD/AliPWG2AODTrack.cxx +AOD/AliAnalysisTaskPWG2ESDfilter.cxx +AOD/AliAnalysisTaskPWG2AODUpdate.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2AOD "${SRCS}" "${HDRS}") diff --git a/PWG2/CMake_libPWG2ebye.txt b/PWG2/CMake_libPWG2ebye.txt new file mode 100644 index 00000000000..e988c3c9f5b --- /dev/null +++ b/PWG2/CMake_libPWG2ebye.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + EBYE/AliBalance.cxx + EBYE/LRC/AliLRCAnalysis.cxx + EBYE/LRC/AliLRCFit.cxx + EBYE/LRC/AliLRCNN.cxx + EBYE/LRC/AliLRCPtN.cxx + EBYE/LRC/AliLRCPtPt.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2ebye "${SRCS}" "${HDRS}") + + diff --git a/PWG2/CMake_libPWG2femtoscopy.txt b/PWG2/CMake_libPWG2femtoscopy.txt new file mode 100644 index 00000000000..cf73ed8b472 --- /dev/null +++ b/PWG2/CMake_libPWG2femtoscopy.txt @@ -0,0 +1,111 @@ +# -*- mode: cmake -*- + +Set(SRCS +FEMTOSCOPY/AliFemto/AliFemtoSimpleAnalysis.cxx +FEMTOSCOPY/AliFemto/AliFemtoLikeSignAnalysis.cxx +FEMTOSCOPY/AliFemto/AliFemtoVertexAnalysis.cxx +FEMTOSCOPY/AliFemto/AliFemtoVertexMultAnalysis.cxx +FEMTOSCOPY/AliFemto/AliFemtoBPLCMS3DCorrFctn.cxx +FEMTOSCOPY/AliFemto/AliFemtoQinvCorrFctn.cxx +FEMTOSCOPY/AliFemto/AliFemtoBasicEventCut.cxx +FEMTOSCOPY/AliFemto/AliFemtoBasicTrackCut.cxx +FEMTOSCOPY/AliFemto/AliFemtoDummyPairCut.cxx +FEMTOSCOPY/AliFemto/AliFemtoCoulomb.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitorHandler.cxx +FEMTOSCOPY/AliFemto/AliFemtoEvent.cxx +FEMTOSCOPY/AliFemto/AliFemtoKink.cxx +FEMTOSCOPY/AliFemto/AliFemtoManager.cxx +FEMTOSCOPY/AliFemto/AliFemtoPair.cxx +FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx +FEMTOSCOPY/AliFemto/AliFemtoPicoEvent.cxx +FEMTOSCOPY/AliFemto/AliFemtoPicoEventCollectionVectorHideAway.cxx +FEMTOSCOPY/AliFemto/AliFemtoTrack.cxx +FEMTOSCOPY/AliFemto/AliFemtoV0.cxx +FEMTOSCOPY/AliFemto/AliFemtoXi.cxx +FEMTOSCOPY/AliFemto/AliFmHelix.cxx +FEMTOSCOPY/AliFemto/AliFmPhysicalHelix.cxx +FEMTOSCOPY/AliFemto/TpcLocalTransform.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReader.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReaderESD.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReaderESDChain.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReaderESDChainKine.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelHiddenInfo.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelGlobalHiddenInfo.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelGausLCMSFreezeOutGenerator.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelWeightGenerator.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelWeightGeneratorBasic.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelManager.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelCorrFctn.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelFreezeOutGenerator.cxx +FEMTOSCOPY/AliFemto/AliFemtoModelWeightGeneratorLednicky.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitorParticleYPt.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitorParticleVertPos.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitorEventMult.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitorEventVertex.cxx +FEMTOSCOPY/AliFemto/AliFemtoKTPairCut.cxx +FEMTOSCOPY/AliFemto/AliFemtoCorrFctnNonIdDR.cxx +FEMTOSCOPY/AliFemto/AliFemtoCorrFctn3DSpherical.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReaderAOD.cxx +FEMTOSCOPY/AliFemto/AliFemtoEventReaderAODChain.cxx +FEMTOSCOPY/AliFemto/AliFemtoAODTrackCut.cxx +FEMTOSCOPY/AliFemto/AliFemtoCutMonitor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(HDRS ${HDRS} + FEMTOSCOPY/AliFemto/AliFmThreeVector.h + FEMTOSCOPY/AliFemto/AliFmThreeVectorF.h + FEMTOSCOPY/AliFemto/AliFmThreeVectorD.h + FEMTOSCOPY/AliFemto/AliFmPhysicalHelixD.h + FEMTOSCOPY/AliFemto/AliFmHelixD.h + FEMTOSCOPY/AliFemto/AliFmLorentzVectorD.h + FEMTOSCOPY/AliFemto/AliFemtoV0Cut.h + FEMTOSCOPY/AliFemto/AliFemtoKinkCut.h + FEMTOSCOPY/AliFemto/AliFemtoXiCut.h + FEMTOSCOPY/AliFemto/AliFemtoAnalysisCollection.h + FEMTOSCOPY/AliFemto/AliFemtoAnalysis.h + FEMTOSCOPY/AliFemto/AliFemtoCorrFctnCollection.h + FEMTOSCOPY/AliFemto/AliFemtoCorrFctn.h + FEMTOSCOPY/AliFemto/AliFemtoEnumeration.h + FEMTOSCOPY/AliFemto/AliFemtoHelix.h + FEMTOSCOPY/AliFemto/AliFemtoHiddenInfo.h + FEMTOSCOPY/AliFemto/AliFemtoLikeSignCorrFctn.h + FEMTOSCOPY/AliFemto/AliFemtoLorentzVectorD.h + FEMTOSCOPY/AliFemto/AliFemtoLorentzVector.h + FEMTOSCOPY/AliFemto/AliFemtoString.h + FEMTOSCOPY/AliFemto/AliFemtoThreeVectorD.h + FEMTOSCOPY/AliFemto/AliFemtoThreeVector.h + FEMTOSCOPY/AliFemto/AliFemtoTypes.h + FEMTOSCOPY/AliFemto/AliFemtoVector.h + FEMTOSCOPY/AliFemto/AliFmLorentzVectorD.h + FEMTOSCOPY/AliFemto/AliFmLorentzVector.h + FEMTOSCOPY/AliFemto/phys_constants.h + FEMTOSCOPY/AliFemto/PhysicalConstants.h + FEMTOSCOPY/AliFemto/SystemOfUnits.h + FEMTOSCOPY/AliFemto/AliFemtoPairCut.h + FEMTOSCOPY/AliFemto/AliFemtoEventCut.h + FEMTOSCOPY/AliFemto/AliFemtoParticleCut.h + FEMTOSCOPY/AliFemto/AliFemtoTrackCollection.h + FEMTOSCOPY/AliFemto/AliFemtoV0Collection.h + FEMTOSCOPY/AliFemto/AliFemtoXiCollection.h + FEMTOSCOPY/AliFemto/AliFemtoKinkCollection.h + FEMTOSCOPY/AliFemto/AliFemtoPicoEventCollection.h + FEMTOSCOPY/AliFemto/AliFemtoParticleCollection.h + FEMTOSCOPY/AliFemto/AliFemtoCutMonitorCollection.h + FEMTOSCOPY/AliFemto/AliFemtoTrackCut.h + FEMTOSCOPY/AliFemto/AliFemtoPicoEventCollectionVector.h + FEMTOSCOPY/AliFemto/AliFemtoEventWriter.h + FEMTOSCOPY/AliFemto/AliFemtoEventWriterCollection.h +) + +Set(FSRCS + FEMTOSCOPY/AliFemto/AliFemtoFsiTools.F + FEMTOSCOPY/AliFemto/AliFemtoFsiWeightLednicky.F +) + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(PWG2femtoscopy "${SRCS}" "${HDRS}") diff --git a/PWG2/CMake_libPWG2femtoscopyUser.txt b/PWG2/CMake_libPWG2femtoscopyUser.txt new file mode 100644 index 00000000000..6ca27a1a2a6 --- /dev/null +++ b/PWG2/CMake_libPWG2femtoscopyUser.txt @@ -0,0 +1,27 @@ +# -*- mode: cmake -*- + +set(SRCS + FEMTOSCOPY/AliFemtoUser/AliFemtoQPairCut.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoShareQualityPairCut.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoShareQualityKTPairCut.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoShareQualityTPCEntranceSepPairCut.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoESDTrackCut.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoShareQualityCorrFctn.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoTPCInnerCorrFctn.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoChi2CorrFctn.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnSource.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelBPLCMSCorrFctn.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelGausRinvFreezeOutGenerator.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnTrueQ.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnNonIdDR.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctn3DSpherical.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctn3DLCMSSpherical.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoCutMonitorParticleMomRes.cxx + FEMTOSCOPY/AliFemtoUser/AliFemtoModelAllHiddenInfo.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2femtoscopyUser "${SRCS}" "${HDRS}") diff --git a/PWG2/CMake_libPWG2flow.txt b/PWG2/CMake_libPWG2flow.txt new file mode 100644 index 00000000000..3574f566d81 --- /dev/null +++ b/PWG2/CMake_libPWG2flow.txt @@ -0,0 +1,33 @@ +# -*- mode: cmake -*- + +set(SRCS + FLOW/AliFlowEventSimple.cxx + FLOW/AliFlowTrackSimple.cxx + FLOW/AliFlowCommonConstants.cxx + FLOW/AliFlowLYZConstants.cxx + FLOW/AliFlowCumuConstants.cxx + FLOW/AliFlowCommonHist.cxx + FLOW/AliFlowCommonHistResults.cxx + FLOW/AliFlowLYZHist1.cxx + FLOW/AliFlowLYZHist2.cxx + FLOW/AliFlowVector.cxx + FLOW/AliFlowLYZEventPlane.cxx + FLOW/AliFlowEventSimpleMaker.cxx + FLOW/AliFlowAnalysisWithScalarProduct.cxx + FLOW/AliFlowAnalysisWithMCEventPlane.cxx + FLOW/AliFlowAnalysisWithLYZEventPlane.cxx + FLOW/AliFlowAnalysisWithLeeYangZeros.cxx + FLOW/AliFlowAnalysisWithCumulants.cxx + FLOW/AliAnalysisTaskScalarProduct.cxx + FLOW/AliAnalysisTaskMCEventPlane.cxx + FLOW/AliAnalysisTaskLYZEventPlane.cxx + FLOW/AliAnalysisTaskCumulants.cxx + FLOW/AliAnalysisTaskLeeYangZeros.cxx + FLOW/AliCumulantsFunctions.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2flow "${SRCS}" "${HDRS}") diff --git a/PWG2/CMake_libPWG2resonances.txt b/PWG2/CMake_libPWG2resonances.txt new file mode 100644 index 00000000000..135d979c471 --- /dev/null +++ b/PWG2/CMake_libPWG2resonances.txt @@ -0,0 +1,30 @@ +# -*- mode: cmake -*- + +set(SRCS + RESONANCES/AliRsnMCInfo.cxx + RESONANCES/AliRsnDaughter.cxx + RESONANCES/AliRsnPairParticle.cxx + RESONANCES/AliRsnCut.cxx + RESONANCES/AliRsnExpression.cxx + RESONANCES/AliRsnCutSet.cxx + RESONANCES/AliRsnCutMgr.cxx + RESONANCES/AliRsnPID.cxx + RESONANCES/AliRsnPIDWeightsMgr.cxx + RESONANCES/AliRsnPIDIndex.cxx + RESONANCES/AliRsnEvent.cxx + RESONANCES/AliRsnReader.cxx + RESONANCES/AliRsnReaderTaskSE.cxx + RESONANCES/AliRsnPairDef.cxx + RESONANCES/AliRsnPairSimple.cxx + RESONANCES/AliRsnEventBuffer.cxx + RESONANCES/AliRsnAnalysisSimple.cxx + RESONANCES/AliRsnAnalyzerSimple.cxx + RESONANCES/AliRsnAnalysisSimpleTask.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2resonances "${SRCS}" "${HDRS}") + diff --git a/PWG2/CMake_libPWG2spectra.txt b/PWG2/CMake_libPWG2spectra.txt new file mode 100644 index 00000000000..0f6792a748f --- /dev/null +++ b/PWG2/CMake_libPWG2spectra.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS + SPECTRA/AliProtonAnalysis.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG2spectra "${SRCS}" "${HDRS}") + diff --git a/PWG3/CMakeLists.txt b/PWG3/CMakeLists.txt new file mode 100644 index 00000000000..818f647edbd --- /dev/null +++ b/PWG3/CMakeLists.txt @@ -0,0 +1,35 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PWG3 +${CMAKE_SOURCE_DIR}/PWG3/base +${CMAKE_SOURCE_DIR}/PWG3/muon +${CMAKE_SOURCE_DIR}/PWG3/vertexingHF +${CMAKE_SOURCE_DIR}/PWG3/vertexingOld +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPWG3base.txt) + +include(CMake_libPWG3.txt) + +include(CMake_libPWG3vertexingHF.txt) + +include(CMake_libPWG3vertexingOld.txt) + +include(CMake_libPWG3muon.txt) diff --git a/PWG3/CMake_libPWG3.txt b/PWG3/CMake_libPWG3.txt new file mode 100644 index 00000000000..df43b88920b --- /dev/null +++ b/PWG3/CMake_libPWG3.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG3 "${SRCS}" "${HDRS}") + diff --git a/PWG3/CMake_libPWG3base.txt b/PWG3/CMake_libPWG3base.txt new file mode 100644 index 00000000000..d3ad58a2a82 --- /dev/null +++ b/PWG3/CMake_libPWG3base.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS + base/AliQuarkoniaAcceptance.cxx + base/AliQuarkoniaEfficiency.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG3base "${SRCS}" "${HDRS}") diff --git a/PWG3/CMake_libPWG3muon.txt b/PWG3/CMake_libPWG3muon.txt new file mode 100644 index 00000000000..c029cf56d9a --- /dev/null +++ b/PWG3/CMake_libPWG3muon.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + muon/AliAnalysisTaskESDMuonFilter.cxx + muon/AliAnalysisTaskMuonAODfromGeneral.cxx + muon/AliAnalysisTaskSingleMu.cxx + muon/AliAnalysisTaskLUT.cxx + muon/AliAnalysisTaskTrigChEff.cxx + muon/AliAODDimuon.cxx + muon/AliAODEventInfo.cxx + muon/AliESDMuonTrackCuts.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG3muon "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/PWG3/CMake_libPWG3vertexingHF.txt b/PWG3/CMake_libPWG3vertexingHF.txt new file mode 100644 index 00000000000..08f2a8932d4 --- /dev/null +++ b/PWG3/CMake_libPWG3vertexingHF.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS + vertexingHF/AliAODRecoDecayHF.cxx + vertexingHF/AliAODRecoDecayHF2Prong.cxx vertexingHF/AliAODRecoDecayHF3Prong.cxx + vertexingHF/AliAODRecoDecayHF4Prong.cxx + vertexingHF/AliAnalysisVertexingHF.cxx vertexingHF/AliAnalysisTaskVertexingHF.cxx + vertexingHF/AliAnalysisTaskSEVertexingHF.cxx + vertexingHF/AliAnalysisTaskSESelectHF.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG3vertexingHF "${SRCS}" "${HDRS}") diff --git a/PWG3/CMake_libPWG3vertexingOld.txt b/PWG3/CMake_libPWG3vertexingOld.txt new file mode 100644 index 00000000000..f2478e0f20f --- /dev/null +++ b/PWG3/CMake_libPWG3vertexingOld.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS + vertexingOld/AliD0toKpi.cxx vertexingOld/AliD0toKpiAnalysis.cxx + vertexingOld/AliBtoJPSItoEle.cxx vertexingOld/AliBtoJPSItoEleAnalysis.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG3vertexingOld "${SRCS}" "${HDRS}") diff --git a/PWG4/CMakeLists.txt b/PWG4/CMakeLists.txt new file mode 100644 index 00000000000..630260b9d9f --- /dev/null +++ b/PWG4/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PWG4 +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libPWG4PartCorr.txt) + diff --git a/PWG4/CMake_libPWG4PartCorr.txt b/PWG4/CMake_libPWG4PartCorr.txt new file mode 100644 index 00000000000..e3cdfb9241c --- /dev/null +++ b/PWG4/CMake_libPWG4PartCorr.txt @@ -0,0 +1,20 @@ +# -*- mode: cmake -*- + +set(SRCS + AliAnaCaloTrigger.cxx AliAnaCaloTriggerMC.cxx + AliAODParticleCorrelation.cxx AliAnalysisTaskPHOSExample.cxx + AliNeutralMesonSelection.cxx AliFidutialCut.cxx AliCaloPID.cxx AliIsolationCut.cxx + AliAnaScale.cxx AliAnaPartCorrMaker.cxx + AliAnaPartCorrBaseClass.cxx AliAnaExample.cxx AliAnaGammaDirect.cxx + AliAnaParticlePartonCorrelation.cxx AliAnaParticleHadronCorrelation.cxx + AliAnaParticleJetLeadingConeCorrelation.cxx AliAnalysisTaskParticleCorrelation.cxx + AliCaloTrackReader.cxx AliCaloTrackESDReader.cxx + AliCaloTrackAODReader.cxx AliCaloTrackMCReader.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(PWG4PartCorr "${SRCS}" "${HDRS}") + diff --git a/PYTHIA6/CMakeLists.txt b/PYTHIA6/CMakeLists.txt new file mode 100644 index 00000000000..9e2cfe81c03 --- /dev/null +++ b/PYTHIA6/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PYTHIA6 +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/LHAPDF +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/FASTSIM +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libpythia6.txt) + +include(CMake_libAliPythia6.txt) + + diff --git a/PYTHIA6/CMake_libAliPythia6.txt b/PYTHIA6/CMake_libAliPythia6.txt new file mode 100644 index 00000000000..8dfec69782d --- /dev/null +++ b/PYTHIA6/CMake_libAliPythia6.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPythiaBase.cxx AliPythia.cxx AliPythia6.cxx AliGenPythia.cxx AliGenPythiaPlus.cxx AliDecayerPythia.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliPythia6 "${SRCS}" "${HDRS}") + diff --git a/PYTHIA6/CMake_libpythia6.txt b/PYTHIA6/CMake_libpythia6.txt new file mode 100644 index 00000000000..3751a3554c6 --- /dev/null +++ b/PYTHIA6/CMake_libpythia6.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPythiaRndm.cxx +) + +set(CSRCS +main.c +pythia6_common_address.c +) + +set(FSRCS +pythia6214.f +pdf_alice.F +pythia6_common_block_address.F +tpythia6_called_from_cc.F +openDecayTable.F +pyquen1_3.F +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS} ${CSRCS}) + +AddLibrary(pythia6 "${SRCS}" "${HDRS}") + diff --git a/PYTHIA8/CMakeLists.txt b/PYTHIA8/CMakeLists.txt new file mode 100644 index 00000000000..acb1930897b --- /dev/null +++ b/PYTHIA8/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/PYTHIA8 +${ALIROOT_INSTALL_DIR}/include +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libAliPythia8.txt) + diff --git a/PYTHIA8/CMake_libAliPythia8.txt b/PYTHIA8/CMake_libAliPythia8.txt new file mode 100644 index 00000000000..a867f3b1ca0 --- /dev/null +++ b/PYTHIA8/CMake_libAliPythia8.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliPythia8.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AliPythia8 "${SRCS}" "${HDRS}") + diff --git a/RALICE/CMakeLists.txt b/RALICE/CMakeLists.txt new file mode 100644 index 00000000000..f1f5d1a5a29 --- /dev/null +++ b/RALICE/CMakeLists.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/RALICE +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libRALICE.txt) + diff --git a/RALICE/CMake_libRALICE.txt b/RALICE/CMake_libRALICE.txt new file mode 100644 index 00000000000..16d601a50d8 --- /dev/null +++ b/RALICE/CMake_libRALICE.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + Ali3Vector.cxx Ali4Vector.cxx AliBoost.cxx AliCalcluster.cxx + AliCalmodule.cxx AliCalorimeter.cxx AliInvmass.cxx AliJet.cxx + AliMath.cxx AliPosition.cxx AliRandom.cxx AliSample.cxx AliSignal.cxx + AliTrack.cxx AliVertex.cxx Ali3VectorObj.cxx Ali4VectorObj.cxx + AliPositionObj.cxx AliEvent.cxx AliCollider.cxx AliObjMatrix.cxx + AliAttrib.cxx AliAttribObj.cxx AliHelix.cxx AliDevice.cxx + AliTimestamp.cxx AliJob.cxx AliAstrolab.cxx AliEventSelector.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(RALICE "${SRCS}" "${HDRS}") + diff --git a/RAW/CMakeLists.txt b/RAW/CMakeLists.txt new file mode 100644 index 00000000000..9405da8a075 --- /dev/null +++ b/RAW/CMakeLists.txt @@ -0,0 +1,39 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libRAWDatasim.txt) + +include(CMake_libMDC.txt) + +include(CMake_libMDCFilter.txt) + +include(CMake_libRAWDatarec.txt) + +include(CMake_libRAWDatabase.txt) + +include(CMake_libRAWDatarecOnline.txt) + +include(CMake_binalimdc.txt) + +include(CMake_binalirawdump.txt) + +include(CMake_bindateStream.txt) + diff --git a/RAW/CMake_binalimdc.txt b/RAW/CMake_binalimdc.txt new file mode 100644 index 00000000000..6f33d970e91 --- /dev/null +++ b/RAW/CMake_binalimdc.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +alimdc_main.cxx +) + +Set(LIBS + AOD CDB ESD HLTbase ITSbase ITSrec ITSsim MDC MUONbase MUONcalib + MUONcore MUONevaluation MUONgeometry MUONmapping MUONraw MUONrec + MUONsim MUONtrigger RAWDatabase RAWDatarec RAWDatasim STEER + STEERBase TPCbase TPCrec TPCsim) + +AddExecutable(alimdc "${SRCS}" "${LIBS}") + diff --git a/RAW/CMake_binalirawdump.txt b/RAW/CMake_binalirawdump.txt new file mode 100644 index 00000000000..5fe2ce140a6 --- /dev/null +++ b/RAW/CMake_binalirawdump.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +alirawdump_main.cxx +) + +Set(LIBS + STEERBase ESD AOD RAWDatabase RAWDatarec RAWDatasim MDC CDB STEER TPCbase + TPCsim TPCrec HLTbase ITSbase ITSsim ITSrec MUONevaluation MUONsim MUONrec + MUONbase MUONtrigger MUONgeometry MUONraw MUONcalib MUONmapping MUONcore) + +AddExecutable(alirawdump "${SRCS}" "${LIBS}") diff --git a/RAW/CMake_bindateStream.txt b/RAW/CMake_bindateStream.txt new file mode 100644 index 00000000000..576da3093a7 --- /dev/null +++ b/RAW/CMake_bindateStream.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +dateStream.cxx +) + +Set(LIBS STEERBase ESD AOD RAWDatabase RAWDatarec RAWDatasim MDC CDB STEER + TPCbase TPCsim TPCrec HLTbase ITSbase ITSsim ITSrec MUONevaluation MUONsim + MUONrec MUONbase MUONtrigger MUONgeometry MUONraw MUONcalib MUONmapping + MUONcore) + +AddExecutable(dateStream "${SRCS}" "${LIBS}") diff --git a/RAW/CMake_libMDC.txt b/RAW/CMake_libMDC.txt new file mode 100644 index 00000000000..423fda58ac6 --- /dev/null +++ b/RAW/CMake_libMDC.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMDC.cxx AliRawDB.cxx + AliRawRFIODB.cxx AliRawCastorDB.cxx AliRawRootdDB.cxx + AliRawNullDB.cxx AliTagDB.cxx AliTagNullDB.cxx + mdc.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MDC "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/RAW/CMake_libMDCFilter.txt b/RAW/CMake_libMDCFilter.txt new file mode 100644 index 00000000000..25418938065 --- /dev/null +++ b/RAW/CMake_libMDCFilter.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS + +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(MDCFilter "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/RAW/CMake_libRAWDatabase.txt b/RAW/CMake_libRAWDatabase.txt new file mode 100644 index 00000000000..a0338ed5eab --- /dev/null +++ b/RAW/CMake_libRAWDatabase.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + AliRawEventHeaderBase.cxx AliRawEquipmentHeader.cxx + AliRawData.cxx AliRawEquipment.cxx AliRawEvent.cxx + AliRawDataArray.cxx + AliStats.cxx AliRawEventTag.cxx + AliAltroMapping.cxx AliCaloAltroMapping.cxx + AliDAQ.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(HDRS ${HDRS} ${ROOTSYS}/include/TH1F.h) + +AddLibrary(RAWDatabase "${SRCS}" "${HDRS}") diff --git a/RAW/CMake_libRAWDatarec.txt b/RAW/CMake_libRAWDatarec.txt new file mode 100644 index 00000000000..8354f7dcf2a --- /dev/null +++ b/RAW/CMake_libRAWDatarec.txt @@ -0,0 +1,20 @@ +# -*- mode: cmake -*- + +set(SRCS + AliFilter.cxx + AliRawReader.cxx AliRawReaderFile.cxx AliRawReaderRoot.cxx + AliRawReaderDate.cxx AliRawReaderDateV3.cxx + AliRawReaderMemory.cxx + AliRawHLTManager.cxx + AliAltroRawStream.cxx + AliCaloRawStream.cxx + AliVMERawStream.cxx + AliAltroDecoder.cxx AliAltroData.cxx AliAltroBunch.cxx AliAltroRawStreamFast.cxx + AliRawReaderChain.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(RAWDatarec "${SRCS}" "${HDRS}") diff --git a/RAW/CMake_libRAWDatarecOnline.txt b/RAW/CMake_libRAWDatarecOnline.txt new file mode 100644 index 00000000000..d6c1cd6f38d --- /dev/null +++ b/RAW/CMake_libRAWDatarecOnline.txt @@ -0,0 +1,11 @@ +# -*- mode: cmake -*- + +set(SRCS +AliRawReaderDateOnline.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(RAWDatarecOnline "${SRCS}" "${HDRS}") diff --git a/RAW/CMake_libRAWDatasim.txt b/RAW/CMake_libRAWDatasim.txt new file mode 100644 index 00000000000..7c34c34af1b --- /dev/null +++ b/RAW/CMake_libRAWDatasim.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +AliBitPacking.cxx +AliAltroBuffer.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(RAWDatasim "${SRCS}" "${HDRS}") diff --git a/STAT/CMakeLists.txt b/STAT/CMakeLists.txt new file mode 100644 index 00000000000..6aecf03a0cc --- /dev/null +++ b/STAT/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/STAT +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libSTAT.txt) + + diff --git a/STAT/CMake_libSTAT.txt b/STAT/CMake_libSTAT.txt new file mode 100644 index 00000000000..91e7bc2d32b --- /dev/null +++ b/STAT/CMake_libSTAT.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS + TKDTree.cxx + TKDInterpolatorBase.cxx + TKDNodeInfo.cxx + TKDPDF.cxx + TKDInterpolator.cxx + TKDSpline.cxx + AliTMinuitToolkit.cxx + TStatToolkit.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STAT "${SRCS}" "${HDRS}" "${HDRS}") + diff --git a/STEER/ARVersion.h.in b/STEER/ARVersion.h.in new file mode 100644 index 00000000000..4d628fa9a3d --- /dev/null +++ b/STEER/ARVersion.h.in @@ -0,0 +1,6 @@ +#ifndef ALIROOT_ARVersion +#define ALIROOT_ARVersion +#define ALIROOT_SVN_REVISION @ALIROOT_SVN_REVISION@ +#define ALIROOT_SVN_BRANCH "@ALIROOT_SVN_BRANCH@" +#define ALIROOT_VERSION @ALIROOT_VERSION@ +#endif diff --git a/STEER/CMakeLists.txt b/STEER/CMakeLists.txt new file mode 100644 index 00000000000..3492b724264 --- /dev/null +++ b/STEER/CMakeLists.txt @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- +# Create all libraries of STEER subdirectory + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/HLT/sim +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +# include files with the descriptions how to build the +# different libraries of this subdirectory + +include(CMake_libESD.txt) + +include(CMake_libCDB.txt) + +include(CMake_libSTEERBase.txt) + +include(CMake_libSTEER.txt) + +include(CMake_libAOD.txt) diff --git a/STEER/CMake_libAOD.txt b/STEER/CMake_libAOD.txt new file mode 100644 index 00000000000..53901a089c4 --- /dev/null +++ b/STEER/CMake_libAOD.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + AliAODEvent.cxx AliAODHeader.cxx + AliAODTrack.cxx AliAODPid.cxx AliAODVertex.cxx + AliAODCluster.cxx AliAODCaloCluster.cxx AliAODPmdCluster.cxx AliAODFmdCluster.cxx + AliAODJet.cxx AliAODPhoton.cxx AliAODRedCov.cxx AliAODRecoDecay.cxx + AliAODHandler.cxx AliAODTracklets.cxx AliAODTagCreator.cxx + AliAODv0.cxx AliAODCaloCells.cxx AliAODInputHandler.cxx AliMultiAODInputHandler.cxx AliAODDiJet.cxx + AliAODcascade.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(AOD "${SRCS}" "${HDRS}" "${HDRS}") + diff --git a/STEER/CMake_libCDB.txt b/STEER/CMake_libCDB.txt new file mode 100644 index 00000000000..653523cfc82 --- /dev/null +++ b/STEER/CMake_libCDB.txt @@ -0,0 +1,17 @@ +# -*- mode: cmake -*- + +set(SRCS +AliCDBEntry.cxx AliCDBId.cxx AliCDBMetaData.cxx +AliCDBPath.cxx AliCDBRunRange.cxx AliCDBManager.cxx +AliCDBStorage.cxx AliCDBLocal.cxx AliCDBDump.cxx AliCDBGrid.cxx +AliDCSValue.cxx AliDCSSensor.cxx AliDCSSensorArray.cxx +AliDCSGenDB.cxx AliSplineFit.cxx TTreeStream.cxx +AliPreprocessor.cxx AliShuttleInterface.cxx +AliGRPDCS.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(CDB "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/STEER/CMake_libESD.txt b/STEER/CMake_libESD.txt new file mode 100644 index 00000000000..de9726fd11a --- /dev/null +++ b/STEER/CMake_libESD.txt @@ -0,0 +1,38 @@ +# -*- mode: cmake -*- + +set(SRCS + AliESDEvent.cxx AliESDInputHandler.cxx AliESDInputHandlerRP.cxx AliESDfriend.cxx AliESD.cxx + AliESDtrack.cxx AliESDfriendTrack.cxx + AliESDMuonTrack.cxx AliESDPmdTrack.cxx AliESDTrdTrack.cxx AliESDHLTtrack.cxx + AliESDv0.cxx AliESDcascade.cxx AliVertex.cxx AliESDVertex.cxx + AliESDpid.cxx AliESDkink.cxx + AliESDCaloCluster.cxx AliESDMuonCluster.cxx AliESDMuonPad.cxx + AliKFParticleBase.cxx AliKFParticle.cxx AliKFVertex.cxx + AliKalmanTrack.cxx AliExternalTrackParam.cxx + AliVertexerTracks.cxx AliStrLine.cxx + AliESDV0Params.cxx + AliESDTagCreator.cxx + AliTrackPointArray.cxx + AliESDFMD.cxx AliFMDMap.cxx AliFMDFloatMap.cxx + AliESDMultITS.cxx + AliESDVZERO.cxx + AliMultiplicity.cxx + AliSelector.cxx + AliESDRun.cxx + AliESDHeader.cxx + AliESDZDC.cxx + AliESDTZERO.cxx + AliESDCaloTrigger.cxx + AliRawDataErrorLog.cxx + AliMeanVertex.cxx + AliESDCaloCells.cxx + AliESDACORDE.cxx + AliTriggerIR.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ESD "${SRCS}" "${HDRS}" "${HDRS}") + diff --git a/STEER/CMake_libSTEER.txt b/STEER/CMake_libSTEER.txt new file mode 100644 index 00000000000..9ef6165329d --- /dev/null +++ b/STEER/CMake_libSTEER.txt @@ -0,0 +1,123 @@ +# -*- mode: cmake -*- + +set(SRCS +AliRunLoader.cxx +AliLoader.cxx +AliDataLoader.cxx +AliObjectLoader.cxx +AliBaseLoader.cxx +AliTreeLoader.cxx +AliTaskLoader.cxx +AliDetector.cxx +AliDigit.cxx +AliHit.cxx +AliPoints.cxx +AliDisplay.cxx +AliRun.cxx +AliGenerator.cxx +AliVertexGenerator.cxx +AliLego.cxx +AliModule.cxx +AliDigitNew.cxx +AliGeometry.cxx +AliRecPoint.cxx +AliHitMap.cxx +AliMagFC.cxx +AliMagFCM.cxx +AliMagFDM.cxx +AliLegoGenerator.cxx +AliLegoGeneratorXYZ.cxx +AliLegoGeneratorPhiZ.cxx +AliLegoGeneratorEta.cxx +AliLegoGeneratorEtaR.cxx +AliRndm.cxx +AliMCQA.cxx +AliDebugVolume.cxx +AliConfig.cxx +AliRunDigitizer.cxx +AliDigitizer.cxx +AliStream.cxx +AliMergeCombi.cxx +AliMagFMaps.cxx +AliFieldMap.cxx +AliMagFCheb.cxx +AliCheb3D.cxx +AliCheb3DCalc.cxx +AliGausCorr.cxx +AliTrackMap.cxx +AliTrackMapper.cxx +AliMemoryWatcher.cxx +AliVertexer.cxx +AliV0vertexer.cxx +AliCascadeVertexer.cxx +AliMC.cxx +AliSimulation.cxx +AliReconstruction.cxx +AliVertexGenFile.cxx +AliReconstructor.cxx +AliGeomManager.cxx +AliAlignObj.cxx +AliAlignObjParams.cxx +AliAlignObjMatrix.cxx +AliTriggerInput.cxx +AliTriggerDetector.cxx +AliTriggerConfiguration.cxx +AliTriggerBCMask.cxx +AliTriggerInteraction.cxx +AliTriggerDescriptor.cxx +AliTriggerClass.cxx +AliTriggerCluster.cxx +AliTriggerPFProtection.cxx +AliCentralTrigger.cxx +AliRieman.cxx +AliTrackFitter.cxx +AliTrackFitterRieman.cxx +AliTrackFitterKalman.cxx +AliTrackFitterStraight.cxx +AliTrackResiduals.cxx +AliTrackResidualsChi2.cxx +AliTrackResidualsFast.cxx +AliTrackResidualsLinear.cxx +AliAlignmentTracks.cxx +AliRelAlignerKalman.cxx +AliExpression.cxx +AliCTPRawStream.cxx +AliMathBase.cxx +AliSignalProcesor.cxx +AliTracker.cxx +AliCluster.cxx +AliCluster3D.cxx +AliHelix.cxx +AliV0.cxx +AliKink.cxx +AliSelectorRL.cxx +AliMagFMapsV1.cxx +AliMagWrapCheb.cxx +AliSurveyObj.cxx +AliSurveyPoint.cxx +AliFstream.cxx +AliCTPRawData.cxx +AliQADataMaker.cxx +AliGlobalQADataMaker.cxx +AliQADataMakerSim.cxx +AliQADataMakerRec.cxx +AliQADataMakerSteer.cxx +AliQAChecker.cxx +AliQACheckerBase.cxx +AliMillepede.cxx +AliRecoParam.cxx +AliDetectorRecoParam.cxx +AliPlaneEff.cxx +AliTriggerRunScalers.cxx +AliGRPPreprocessor.cxx +AliEventInfo.cxx +AliGlobalQAChecker.cxx +AliRunInfo.cxx +) + + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STEER "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/STEER/CMake_libSTEER.txt.ori b/STEER/CMake_libSTEER.txt.ori new file mode 100644 index 00000000000..615d9afba5d --- /dev/null +++ b/STEER/CMake_libSTEER.txt.ori @@ -0,0 +1,121 @@ +# -*- mode: cmake -*- + +set(SRCS +AliRunLoader.cxx +AliLoader.cxx +AliDataLoader.cxx +AliObjectLoader.cxx +AliBaseLoader.cxx +AliTreeLoader.cxx +AliTaskLoader.cxx +AliDetector.cxx +AliDigit.cxx +AliHit.cxx +AliPoints.cxx +AliDisplay.cxx +AliRun.cxx +AliGenerator.cxx +AliVertexGenerator.cxx +AliLego.cxx +AliModule.cxx +AliDigitNew.cxx +AliGeometry.cxx +AliRecPoint.cxx +AliSegmentation.cxx +AliHitMap.cxx +AliMagFC.cxx +AliMagFCM.cxx +AliMagFDM.cxx +AliLegoGenerator.cxx +AliLegoGeneratorXYZ.cxx +AliLegoGeneratorPhiZ.cxx +AliLegoGeneratorEta.cxx +AliLegoGeneratorEtaR.cxx +AliRndm.cxx +AliMCQA.cxx +AliDebugVolume.cxx +AliConfig.cxx +AliRunDigitizer.cxx +AliDigitizer.cxx +AliStream.cxx +AliMergeCombi.cxx +AliMagFMaps.cxx +AliFieldMap.cxx +AliMagFCheb.cxx +AliCheb3D.cxx +AliCheb3DCalc.cxx +AliGausCorr.cxx +AliTrackMap.cxx +AliTrackMapper.cxx +AliMemoryWatcher.cxx +AliVertexer.cxx +AliV0vertexer.cxx +AliCascadeVertexer.cxx +AliMC.cxx +AliSimulation.cxx +AliReconstruction.cxx +AliVertexGenFile.cxx +AliReconstructor.cxx +AliGeomManager.cxx +AliAlignObj.cxx +AliAlignObjParams.cxx +AliAlignObjMatrix.cxx +AliTriggerInput.cxx +AliTriggerDetector.cxx +AliTriggerConfiguration.cxx +AliTriggerBCMask.cxx +AliTriggerInteraction.cxx +AliTriggerDescriptor.cxx +AliTriggerClass.cxx +AliTriggerCluster.cxx +AliTriggerPFProtection.cxx +AliCentralTrigger.cxx +AliRieman.cxx +AliTrackFitter.cxx +AliTrackFitterRieman.cxx +AliTrackFitterKalman.cxx +AliTrackFitterStraight.cxx +AliTrackResiduals.cxx +AliTrackResidualsChi2.cxx +AliTrackResidualsFast.cxx +AliTrackResidualsLinear.cxx +AliAlignmentTracks.cxx +AliRelAlignerKalman.cxx +AliExpression.cxx +AliCTPRawStream.cxx +AliMathBase.cxx +AliSignalProcesor.cxx +AliTracker.cxx +AliCluster.cxx +AliCluster3D.cxx +AliHelix.cxx +AliV0.cxx +AliKink.cxx +AliSelectorRL.cxx +AliMagFMapsV1.cxx +AliMagWrapCheb.cxx +AliSurveyObj.cxx +AliSurveyPoint.cxx +AliFstream.cxx +AliCTPRawData.cxx +AliQADataMaker.cxx +AliGlobalQADataMaker.cxx +AliQADataMakerSim.cxx +AliQADataMakerRec.cxx +AliQADataMakerSteer.cxx +AliQAChecker.cxx +AliQACheckerBase.cxx +AliMillepede.cxx +AliRecoParam.cxx +AliDetectorRecoParam.cxx +AliPlaneEff.cxx +AliTriggerRunScalers.cxx +AliGRPPreprocessor.cxx +AliEventInfo.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STEER "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/STEER/CMake_libSTEERBase.txt b/STEER/CMake_libSTEERBase.txt new file mode 100644 index 00000000000..a47a9e430c7 --- /dev/null +++ b/STEER/CMake_libSTEERBase.txt @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- + +set(SRCS + AliVParticle.cxx + AliVEvent.cxx + AliVHeader.cxx + AliVEventHandler.cxx + AliPID.cxx AliLog.cxx + AliRunTag.cxx AliLHCTag.cxx AliDetectorTag.cxx AliEventTag.cxx + AliEventTagCuts.cxx AliRunTagCuts.cxx + AliLHCTagCuts.cxx AliDetectorTagCuts.cxx + AliTagCreator.cxx + AliHeader.cxx AliGenEventHeader.cxx AliDetectorEventHeader.cxx + AliGenPythiaEventHeader.cxx AliGenCocktailEventHeader.cxx + AliGenHijingEventHeader.cxx AliCollisionGeometry.cxx + AliGenDPMjetEventHeader.cxx + AliStack.cxx AliMCEventHandler.cxx AliInputEventHandler.cxx + AliTrackReference.cxx AliSysInfo.cxx + AliMCEvent.cxx AliMCParticle.cxx + AliMagF.cxx + AliCodeTimer.cxx + AliPDG.cxx + AliQA.cxx + AliTimeStamp.cxx AliTriggerScalers.cxx AliTriggerScalersRecord.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STEERBase "${SRCS}" "${HDRS}" "${HDRS}") + diff --git a/STEER/CMake_libSTEERBase.txt.ori b/STEER/CMake_libSTEERBase.txt.ori new file mode 100644 index 00000000000..3f0a3699f10 --- /dev/null +++ b/STEER/CMake_libSTEERBase.txt.ori @@ -0,0 +1,32 @@ +# -*- mode: cmake -*- + +set(SRCS + AliVParticle.cxx + AliVEvent.cxx + AliVHeader.cxx + AliVEventHandler.cxx + AliPID.cxx AliLog.cxx + AliRunTag.cxx AliLHCTag.cxx AliDetectorTag.cxx AliEventTag.cxx + AliEventTagCuts.cxx AliRunTagCuts.cxx + AliLHCTagCuts.cxx AliDetectorTagCuts.cxx + AliTagCreator.cxx + AliHeader.cxx AliGenEventHeader.cxx AliDetectorEventHeader.cxx + AliGenPythiaEventHeader.cxx AliGenCocktailEventHeader.cxx + AliGenHijingEventHeader.cxx AliCollisionGeometry.cxx + AliGenDPMjetEventHeader.cxx + AliStack.cxx AliMCEventHandler.cxx AliInputEventHandler.cxx + AliTrackReference.cxx AliSysInfo.cxx + AliMCEvent.cxx AliMCParticle.cxx + AliMagF.cxx + AliCodeTimer.cxx + AliPDG.cxx + AliQA.cxx + AliTimeStamp.cxx AliTriggerScalers.cxx AliTriggerScalersRecord.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STEERbase "${SRCS}" "${HDRS}" "${HDRS}") + diff --git a/STRUCT/CMakeLists.txt b/STRUCT/CMakeLists.txt new file mode 100644 index 00000000000..e604b23fcf3 --- /dev/null +++ b/STRUCT/CMakeLists.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/STRUCT +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libSTRUCT.txt) + diff --git a/STRUCT/CMake_libSTRUCT.txt b/STRUCT/CMake_libSTRUCT.txt new file mode 100644 index 00000000000..ebc15ece372 --- /dev/null +++ b/STRUCT/CMake_libSTRUCT.txt @@ -0,0 +1,18 @@ +# -*- mode: cmake -*- + +set(SRCS + AliMAG.cxx AliABSO.cxx AliABSOv0.cxx + AliDIPO.cxx AliDIPOv2.cxx AliDIPOv3.cxx + AliFRAME.cxx AliFRAMEv0.cxx AliFRAMEv1.cxx AliFRAMEv2.cxx + AliHALL.cxx AliHALLv3.cxx + AliSHIL.cxx AliSHILv0.cxx AliABSOv3.cxx + AliPIPE.cxx AliPIPEv0.cxx AliPIPEv3.cxx + AliBODY.cxx AliSHILv2.cxx AliSHILv3.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(STRUCT "${SRCS}" "${HDRS}") + diff --git a/T0/CMakeLists.txt b/T0/CMakeLists.txt new file mode 100644 index 00000000000..21de597bb0f --- /dev/null +++ b/T0/CMakeLists.txt @@ -0,0 +1,30 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/T0 +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libT0shuttle.txt) + +include(CMake_libT0rec.txt) + +include(CMake_libT0base.txt) + +include(CMake_libT0sim.txt) + diff --git a/T0/CMake_libT0base.txt b/T0/CMake_libT0base.txt new file mode 100644 index 00000000000..619c864164a --- /dev/null +++ b/T0/CMake_libT0base.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- + +set(SRCS +AliT0.cxx +AliT0digit.cxx +AliT0Trigger.cxx +AliT0CalibData.cxx +AliT0CalibTimeEq.cxx +AliT0CalibWalk.cxx +AliT0Parameters.cxx +AliT0LookUpValue.cxx +AliT0LookUpKey.cxx +AliT0Align.cxx +AliT0QAChecker.cxx +AliT0RecPoint.cxx +AliT0hit.cxx +AliT0RawReader.cxx +AliT0RawData.cxx +AliT0Digitizer.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(T0base "${SRCS}" "${HDRS}") diff --git a/T0/CMake_libT0rec.txt b/T0/CMake_libT0rec.txt new file mode 100644 index 00000000000..62b8fc531f0 --- /dev/null +++ b/T0/CMake_libT0rec.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +AliT0Reconstructor.cxx +AliT0Calibrator.cxx +AliT0CalibLaserData.cxx +AliT0QADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(T0rec "${SRCS}" "${HDRS}") diff --git a/T0/CMake_libT0shuttle.txt b/T0/CMake_libT0shuttle.txt new file mode 100644 index 00000000000..afec3c8cce2 --- /dev/null +++ b/T0/CMake_libT0shuttle.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +AliT0Preprocessor.cxx +AliT0DataDCS.cxx +AliT0PreprocessorCosmic.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(T0shuttle "${SRCS}" "${HDRS}") diff --git a/T0/CMake_libT0sim.txt b/T0/CMake_libT0sim.txt new file mode 100644 index 00000000000..a3029044e73 --- /dev/null +++ b/T0/CMake_libT0sim.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +AliT0v0.cxx +AliT0v1.cxx +AliT0QADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(T0sim "${SRCS}" "${HDRS}") + + diff --git a/TDPMjet/CMakeLists.txt b/TDPMjet/CMakeLists.txt new file mode 100644 index 00000000000..20f85e6d810 --- /dev/null +++ b/TDPMjet/CMakeLists.txt @@ -0,0 +1,27 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TDPMjet +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/DPMJET +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTDPMjet.txt) + + diff --git a/TDPMjet/CMake_libTDPMjet.txt b/TDPMjet/CMake_libTDPMjet.txt new file mode 100644 index 00000000000..7046ac4f954 --- /dev/null +++ b/TDPMjet/CMake_libTDPMjet.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +TDPMjet.cxx +AliGenDPMjet.cxx +AliIonPDGCodes.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TDPMjet "${SRCS}" "${HDRS}") + diff --git a/TEPEMGEN/CMakeLists.txt b/TEPEMGEN/CMakeLists.txt new file mode 100644 index 00000000000..40d593b7923 --- /dev/null +++ b/TEPEMGEN/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TEPEMGEN +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTEPEMGEN.txt) + diff --git a/TEPEMGEN/CMake_libTEPEMGEN.txt b/TEPEMGEN/CMake_libTEPEMGEN.txt new file mode 100644 index 00000000000..d2bebd30043 --- /dev/null +++ b/TEPEMGEN/CMake_libTEPEMGEN.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS +TEpEmGen.cxx +AliGenEpEmv1.cxx +) + +set(FSRCS +epemgen.f +diffcross.f +dtrint.f +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(TEPEMGEN "${SRCS}" "${HDRS}") + diff --git a/TFluka/CMakeLists.txt b/TFluka/CMakeLists.txt new file mode 100644 index 00000000000..d14e30fbc36 --- /dev/null +++ b/TFluka/CMakeLists.txt @@ -0,0 +1,71 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TFluka +${CMAKE_SOURCE_DIR}/include +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +set(TFluka_SRCS +TFluka.cxx +TFlukaMCGeometry.cxx +TFlukaCerenkov.cxx +TFlukaConfigOption.cxx +TFlukaScoringOption.cxx +magfld.cxx +source.cxx +mgdraw.cxx +bxdraw.cxx +eedraw.cxx +endraw.cxx +sodraw.cxx +usdraw.cxx +stupre.cxx +stuprf.cxx +abscff.cxx +dffcff.cxx +queffc.cxx +rflctv.cxx +rfrndx.cxx +) +set(TFluka_FSRCS +FLUKA_input.f +crnkvp.f +) + +If(RULE_CHECKER_FOUND) + CHECK_RULES("${TFluka_SRCS}" "${INCLUDE_DIRECTORIES}" TFluka_RULES) +endIf(RULE_CHECKER_FOUND) + +# fill list of header files from list of source files +# by exchanging the file extension +CHANGE_FILE_EXTENSION(*.cxx *.h TFluka_HEADERS "${TFluka_SRCS}") + +set(TFluka_LINKDEF TFlukaLinkDef.h) +set(TFluka_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/TFlukaDict.cxx) + +ROOT_GENERATE_DICTIONARY("${TFluka_HEADERS}" "${TFluka_LINKDEF}" "${TFluka_DICTIONARY}" "${INCLUDE_DIRECTORIES}") + +set(TFluka_SRCS ${TFluka_SRCS} ${TFluka_DICTIONARY}) + +add_library(TFluka SHARED ${TFluka_SRCS} ${TFluka_FSRCS}) +target_link_libraries(TFluka ${ROOT_LIBRARIES}) +#set_target_properties(TFluka PROPERTIES ${CBMROOT_LIBRARY_PROPERTIES}) +SET_TARGET_PROPERTIES(TFluka PROPERTIES LINKER_LANGUAGE CXX) + +################ install ################### +install(TARGETS TFluka DESTINATION ${CMAKE_BINARY_DIR}/lib) + diff --git a/THbtp/CMakeLists.txt b/THbtp/CMakeLists.txt new file mode 100644 index 00000000000..8b593d95577 --- /dev/null +++ b/THbtp/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/THbtp +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTHbtp.txt) + diff --git a/THbtp/CMake_libTHbtp.txt b/THbtp/CMake_libTHbtp.txt new file mode 100644 index 00000000000..32cff88a5b8 --- /dev/null +++ b/THbtp/CMake_libTHbtp.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +THBTprocessor.cxx +AliGenHBTprocessor.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(THbtp "${SRCS}" "${HDRS}") + diff --git a/THerwig/CMakeLists.txt b/THerwig/CMakeLists.txt new file mode 100644 index 00000000000..fa38a7e8bce --- /dev/null +++ b/THerwig/CMakeLists.txt @@ -0,0 +1,28 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/THerwig +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/LHAPDF +${CMAKE_SOURCE_DIR}/HERWIG +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTHerwig.txt) + + diff --git a/THerwig/CMake_libTHerwig.txt b/THerwig/CMake_libTHerwig.txt new file mode 100644 index 00000000000..074bd3354d9 --- /dev/null +++ b/THerwig/CMake_libTHerwig.txt @@ -0,0 +1,12 @@ +# -*- mode: cmake -*- + +set(SRCS +THerwig6.cxx +AliGenHerwig.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(THerwig "${SRCS}" "${HDRS}") diff --git a/THijing/CMakeLists.txt b/THijing/CMakeLists.txt new file mode 100644 index 00000000000..db6b0a4f354 --- /dev/null +++ b/THijing/CMakeLists.txt @@ -0,0 +1,27 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/THijing +${CMAKE_SOURCE_DIR}/HIJING +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/STEER +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTHijing.txt) + + diff --git a/THijing/CMake_libTHijing.txt b/THijing/CMake_libTHijing.txt new file mode 100644 index 00000000000..f206d37e640 --- /dev/null +++ b/THijing/CMake_libTHijing.txt @@ -0,0 +1,14 @@ +# -*- mode: cmake -*- + +set(SRCS +THijing.cxx +AliGenHijing.cxx +AliGenBeamGasNew.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(THijing "${SRCS}" "${HDRS}") + diff --git a/THydjet/CMakeLists.txt b/THydjet/CMakeLists.txt new file mode 100644 index 00000000000..53ca4b563e7 --- /dev/null +++ b/THydjet/CMakeLists.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/THydjet +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/PYTHIA6 +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTHydjet.txt) + diff --git a/THydjet/CMake_libTHydjet.txt b/THydjet/CMake_libTHydjet.txt new file mode 100644 index 00000000000..44ba1efe9fd --- /dev/null +++ b/THydjet/CMake_libTHydjet.txt @@ -0,0 +1,22 @@ +# -*- mode: cmake -*- + +set(SRCS +THydjet.cxx +AliGenHydjet.cxx +AliGenHydjetEventHeader.cxx +) + +set(FSRCS +hydjet1_1/hydjet1_1.f +hydjet1_1/pyquen1_1.f +hydjet1_1/jetset_73.f +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) + +AddLibrary(THydjet "${SRCS}" "${HDRS}") + diff --git a/TIsajet/CMakeLists.txt b/TIsajet/CMakeLists.txt new file mode 100644 index 00000000000..9a6c60bd657 --- /dev/null +++ b/TIsajet/CMakeLists.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- + +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/TIsajet +${CMAKE_SOURCE_DIR}/ISAJET +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTIsajet.txt) + diff --git a/TIsajet/CMake_libTIsajet.txt b/TIsajet/CMake_libTIsajet.txt new file mode 100644 index 00000000000..0263ff3da2e --- /dev/null +++ b/TIsajet/CMake_libTIsajet.txt @@ -0,0 +1,13 @@ +# -*- mode: cmake -*- + +set(SRCS +TIsajet.cxx +AliGenIsajet.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TIsajet "${SRCS}" "${HDRS}") + diff --git a/TOF/CMakeLists.txt b/TOF/CMakeLists.txt new file mode 100644 index 00000000000..ad1df4c31e8 --- /dev/null +++ b/TOF/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TOF +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTOFrec.txt) + +include(CMake_libTOFbase.txt) + +include(CMake_libTOFsim.txt) + + diff --git a/TOF/CMake_libTOFbase.txt b/TOF/CMake_libTOFbase.txt new file mode 100644 index 00000000000..921b0d4aeef --- /dev/null +++ b/TOF/CMake_libTOFbase.txt @@ -0,0 +1,31 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTOFGeometry.cxx +AliTOFdigit.cxx +AliTOFRawMap.cxx +AliTOFrawData.cxx +AliTOFRawStream.cxx +AliTOFHitData.cxx +AliTOFHitDataBuffer.cxx +AliTOFDecoder.cxx +AliTOFChannelOffline.cxx +AliTOFChannelOnline.cxx +AliTOFChannelOnlineStatus.cxx +AliTOFChannelOnlineArray.cxx +AliTOFChannelOnlineStatusArray.cxx +AliTOFcalib.cxx +AliTOFAlignment.cxx +AliTOFPreprocessor.cxx +AliTOFDataDCS.cxx +AliTOFFormatDCS.cxx +AliTOFPreprocessorFDR.cxx +AliTOFFEEReader.cxx +AliTOFCableLengthMap.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TOFbase "${SRCS}" "${HDRS}") diff --git a/TOF/CMake_libTOFrec.txt b/TOF/CMake_libTOFrec.txt new file mode 100644 index 00000000000..f9b7dd5ebba --- /dev/null +++ b/TOF/CMake_libTOFrec.txt @@ -0,0 +1,20 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTOFcluster.cxx +AliTOFClusterFinder.cxx +AliTOFtrack.cxx +AliTOFtracker.cxx +AliTOFtrackerMI.cxx +AliTOFtrackerV1.cxx +AliTOFpidESD.cxx +AliTOFReconstructor.cxx +AliTOFRecoParam.cxx +AliTOFQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TOFrec "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/TOF/CMake_libTOFsim.txt b/TOF/CMake_libTOFsim.txt new file mode 100644 index 00000000000..a3953b902d9 --- /dev/null +++ b/TOF/CMake_libTOFsim.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTOF.cxx +AliTOFv6T0.cxx +AliTOFv5T0.cxx +AliTOFhit.cxx +AliTOFhitT0.cxx +AliTOFHitMap.cxx +AliTOFSDigit.cxx +AliTOFSDigitizer.cxx +AliTOFDigitizer.cxx +AliTOFDigitMap.cxx +AliTOFDDLRawData.cxx +AliTOFT0.cxx +AliTOFTrigger.cxx +AliTOFQADataMakerSim.cxx +AliTOFQAChecker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TOFsim "${SRCS}" "${HDRS}") diff --git a/TPC/CMakeLists.txt b/TPC/CMakeLists.txt new file mode 100644 index 00000000000..5a15d44501a --- /dev/null +++ b/TPC/CMakeLists.txt @@ -0,0 +1,37 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TPC +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/STAT +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTPCbase.txt) + +include(CMake_libTPCcalib.txt) + +include(CMake_libTPCfast.txt) + +include(CMake_libTPCrec.txt) + +include(CMake_libTPCmon.txt) + +include(CMake_libTPCsim.txt) + + diff --git a/TPC/CMake_libTPCbase.txt b/TPC/CMake_libTPCbase.txt new file mode 100644 index 00000000000..32b874bd1de --- /dev/null +++ b/TPC/CMake_libTPCbase.txt @@ -0,0 +1,30 @@ +# -*- mode: cmake -*- + +set(SRCS + AliSegmentID.cxx AliSegmentArray.cxx AliDigits.cxx AliH2F.cxx + AliTPCLoader.cxx AliTPCPRF2D.cxx AliTPCRF1D.cxx + AliDetectorParam.cxx AliTPCParam.cxx + AliTPCParamSR.cxx AliTPCParamCR.cxx + AliTPCdigit.cxx + AliSimDigits.cxx AliDigitsArray.cxx AliTPCDigitsArray.cxx + AliTPCmapper.cxx + AliTPCROC.cxx AliTPCCalROC.cxx AliTPCCalPad.cxx AliTPCCalDet.cxx + AliTPCcalibDB.cxx + AliTPCAltroMapping.cxx AliTPCRawStream.cxx AliTPCRawStreamFast.cxx + AliTPCLaserTracks.cxx AliTPCSensorTemp.cxx AliTPCSensorTempArray.cxx + AliTPCCalibPedestal.cxx AliTPCCalibPulser.cxx AliTPCCalibCE.cxx + AliTPCPreprocessor.cxx AliTPCPreprocessorOnline.cxx + AliTPCCalibViewer.cxx AliTPCCalibViewerGUI.cxx + AliTPCGenDBTemp.cxx AliTPCGenDBConf.cxx + AliTPCExB.cxx AliTPCExBExact.cxx AliTPCExBFirst.cxx + AliTPCTempMap.cxx AliTPCCalibVdrift.cxx + AliTPCCalibTCF.cxx AliTPCAltroEmulator.cxx AliTPCeventInfo.cxx + AliTransform.cxx AliTPCTransform.cxx AliTPCAlign.cxx AliTPCGoofieValues.cxx + AliTPCdataQA.cxx AliTPCQAChecker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCbase "${SRCS}" "${HDRS}") diff --git a/TPC/CMake_libTPCcalib.txt b/TPC/CMake_libTPCcalib.txt new file mode 100644 index 00000000000..753ab79f30c --- /dev/null +++ b/TPC/CMake_libTPCcalib.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTPCcalibTracksCuts.cxx +AliTPCcalibTracks.cxx +AliTPCcalibTracksGain.cxx +AliTPCSelectorESD.cxx +AliTPCSelectorTracks.cxx +AliTPCCalPadRegion.cxx +AliTPCFitPad.cxx +AliAnaTPCTrackBase.cxx +AliAnaTPCTrackCalib.cxx +AliTPCcalibAlign.cxx +AliTPCcalibAlignment.cxx +AliTPCcalibV0.cxx +AliTPCCalibKr.cxx +AliTPCcalibBase.cxx +AliTPCAnalysisTaskcalib.cxx +AliTPCCalibKrTask.cxx +AliTPCcalibLaser.cxx +AliTPCcalibCosmic.cxx +AliTPCLaserTrack.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCcalib "${SRCS}" "${HDRS}") diff --git a/TPC/CMake_libTPCfast.txt b/TPC/CMake_libTPCfast.txt new file mode 100644 index 00000000000..2fa1ff39dd8 --- /dev/null +++ b/TPC/CMake_libTPCfast.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTPCFast.cxx +AliTPCtrackerParam.cxx +AliTPCkineGrid.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCfast "${SRCS}" "${HDRS}") + + + diff --git a/TPC/CMake_libTPCmon.txt b/TPC/CMake_libTPCmon.txt new file mode 100644 index 00000000000..e77706869ef --- /dev/null +++ b/TPC/CMake_libTPCmon.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTPCMonitorConfig.cxx +AliTPCMonitorAltro.cxx +AliTPCMonitorFFT.cxx +AliTPCMonitorMappingHandler.cxx +AliTPCMonitor.cxx +AliTPCMonitorDateFile.cxx +AliTPCMonitorDateFormat.cxx +AliTPCMonitorDialog.cxx +) + +#TODO check for DATE_ROOT and ALI_DATE is missing + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCmon "${SRCS}" "${HDRS}") + diff --git a/TPC/CMake_libTPCrec.txt b/TPC/CMake_libTPCrec.txt new file mode 100644 index 00000000000..440930a57d7 --- /dev/null +++ b/TPC/CMake_libTPCrec.txt @@ -0,0 +1,39 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTPCcluster.cxx +AliTPCclusterMI.cxx +AliComplexCluster.cxx +AliTPCclusterInfo.cxx +AliClusters.cxx +AliTPCClustersRow.cxx +AliClustersArray.cxx +AliTPCClustersArray.cxx +AliTPCclusterer.cxx +AliTPCclustererMI.cxx +AliTPCtrack.cxx +AliTPCtracker.cxx +AliTPCpolyTrack.cxx +AliTPCseed.cxx +AliTPCtrackerMI.cxx +AliTPCtrackerSector.cxx +AliTPCPid.cxx +AliTPCtrackPid.cxx +AliTPCpidESD.cxx +AliTPCReconstructor.cxx +AliTPCRecoParam.cxx +AliTPCClusterParam.cxx +AliTPCTracklet.cxx +AliTPCQADataMakerRec.cxx +AliPadMax.cxx +AliTPCclustererKr.cxx +AliTPCclusterKr.cxx +AliTPCvtpr.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCrec "${SRCS}" "${HDRS}") + diff --git a/TPC/CMake_libTPCsim.txt b/TPC/CMake_libTPCsim.txt new file mode 100644 index 00000000000..33bb018d8e6 --- /dev/null +++ b/TPC/CMake_libTPCsim.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTPC.cxx +AliTPCv0.cxx +AliTPCv1.cxx +AliTPCv2.cxx +AliTPCv3.cxx +AliTPCv4.cxx +AliTPCLaser.cxx +AliTPCTrackHitsV2.cxx +AliTPCDigitizer.cxx +AliTPCBuffer.cxx +AliTPCDDLRawData.cxx +AliTPCQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TPCsim "${SRCS}" "${HDRS}") + diff --git a/TPHIC/CMakeLists.txt b/TPHIC/CMakeLists.txt new file mode 100644 index 00000000000..6b1f7e8e863 --- /dev/null +++ b/TPHIC/CMakeLists.txt @@ -0,0 +1,26 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TPHIC +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${CMAKE_SOURCE_DIR}/PYTHIA6 +${CMAKE_SOURCE_DIR}/LHAPDF +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTPHIC.txt) + diff --git a/TPHIC/CMake_libTPHIC.txt b/TPHIC/CMake_libTPHIC.txt new file mode 100644 index 00000000000..2f0c97f8902 --- /dev/null +++ b/TPHIC/CMake_libTPHIC.txt @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- + +set(SRCS +TPHICgen.cxx +AliGenTPHIC.cxx +) + +set(FSRCS +tphic17.f +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +Set(SRCS ${SRCS} ${FSRCS}) +AddLibrary(TPHIC "${SRCS}" "${HDRS}") + + diff --git a/TRD/CMakeLists.txt b/TRD/CMakeLists.txt new file mode 100644 index 00000000000..62f3313f187 --- /dev/null +++ b/TRD/CMakeLists.txt @@ -0,0 +1,40 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TRD +${CMAKE_SOURCE_DIR}/TRD/Cal +${CMAKE_SOURCE_DIR}/TRD/qaGui +${CMAKE_SOURCE_DIR}/TRD/qaAnalysis +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${CMAKE_SOURCE_DIR}/ANALYSIS +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTRDgui.txt) + +include(CMake_libTRDqaAnalysis.txt) + +include(CMake_libTRDrec.txt) + +include(CMake_libTRDbase.txt) + +include(CMake_libTRDsim.txt) + +include(CMake_libTRDfast.txt) + + + diff --git a/TRD/CMake_libTRDbase.txt b/TRD/CMake_libTRDbase.txt new file mode 100644 index 00000000000..341c878012e --- /dev/null +++ b/TRD/CMake_libTRDbase.txt @@ -0,0 +1,76 @@ +# -*- mode: cmake -*- + +set(SRCS + AliTRDarrayI.cxx + AliTRDarrayS.cxx + AliTRDarrayF.cxx + AliTRDsegmentID.cxx + AliTRDdataArray.cxx + AliTRDdataArrayI.cxx + AliTRDdataArrayS.cxx + AliTRDdataArrayF.cxx + AliTRDdataArrayDigits.cxx + AliTRDsegmentArray.cxx + AliTRDSignalIndex.cxx + AliTRDgeometry.cxx + AliTRDdigit.cxx + AliTRDdigitsManager.cxx + AliTRDrawData.cxx + AliTRDpadPlane.cxx + AliTRDRawStream.cxx + AliTRDRawStreamV2.cxx + AliTRDrawStreamTB.cxx + AliTRDrawStreamBase.cxx + AliTRDtestBeam.cxx + AliTRDCommonParam.cxx + AliTRDfeeParam.cxx + AliTRDcalibDB.cxx + Cal/AliTRDCalROC.cxx + Cal/AliTRDCalPad.cxx + Cal/AliTRDCalDet.cxx + Cal/AliTRDCalFEE.cxx + Cal/AliTRDCalDCS.cxx + Cal/AliTRDCalDCSFEE.cxx + Cal/AliTRDCalDCSPTR.cxx + Cal/AliTRDCalDCSGTU.cxx + Cal/AliTRDCalPID.cxx + Cal/AliTRDCalPIDLQ.cxx + Cal/AliTRDCalPIDNN.cxx + Cal/AliTRDCalPIDRefMaker.cxx + Cal/AliTRDCalMonitoring.cxx + Cal/AliTRDCalChamberStatus.cxx + Cal/AliTRDCalPadStatus.cxx + Cal/AliTRDCalSingleChamberStatus.cxx + AliTRDCalibraFit.cxx + AliTRDCalibraMode.cxx + AliTRDCalibraVector.cxx + AliTRDCalibraVdriftLinearFit.cxx + AliTRDCalibPadStatus.cxx + AliTRDQAChecker.cxx + AliTRDPreprocessor.cxx + AliTRDSaxHandler.cxx + AliTRDDataDCS.cxx + AliTRDSensor.cxx + AliTRDSensorArray.cxx + AliTRDalignment.cxx + AliTRDTriggerL1.cxx + AliTRDmcmTracklet.cxx + AliTRDmcm.cxx + AliTRDmcmSim.cxx + AliTRDtrigParam.cxx + AliTRDtrigger.cxx + AliTRDtrackletBase.cxx + AliTRDltuTracklet.cxx + AliTRDgtuTrack.cxx + AliTRDtrapAlu.cxx + AliTRDmodule.cxx + AliTRDhit.cxx + AliTRDrecoParam.cxx + AliTRDSimParam.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDbase "${SRCS}" "${HDRS}") diff --git a/TRD/CMake_libTRDfast.txt b/TRD/CMake_libTRDfast.txt new file mode 100644 index 00000000000..38180d93409 --- /dev/null +++ b/TRD/CMake_libTRDfast.txt @@ -0,0 +1,10 @@ +# -*- mode: cmake -*- + +set(SRCS +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDfast "${SRCS}" "${HDRS}") diff --git a/TRD/CMake_libTRDgui.txt b/TRD/CMake_libTRDgui.txt new file mode 100644 index 00000000000..ce07b156ea9 --- /dev/null +++ b/TRD/CMake_libTRDgui.txt @@ -0,0 +1,23 @@ +# -*- mode: cmake -*- + +set(SRCS +qaGui/AliTRDqaGuiMain.cxx +qaGui/AliTRDqaGuiClusters.cxx +qaGui/AliTRDqaGuiClustersSM.cxx +qaGui/AliTRDqaGuiClustersStack.cxx +qaGui/AliTRDqaGuiESDs.cxx +qaGui/AliTRDqaGuiMainBlack.cxx +qaGui/AliTRDqaGuiBlackSM.cxx +qaGui/AliTRDqaGuiBlackChamber.cxx +qaGui/AliTRDqaGuiJPsi.cxx +qaGui/AliTRDqaGuiEnergyDeposit.cxx +qaGui/AliTRDqaGuiMainAnalysis.cxx +qaGui/AliTRDqaGuiBlackError.cxx +qaGui/AliTRDqaGuiBlackGlobal.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDgui "${SRCS}" "${HDRS}") diff --git a/TRD/CMake_libTRDqaAnalysis.txt b/TRD/CMake_libTRDqaAnalysis.txt new file mode 100644 index 00000000000..0f1a8a04a94 --- /dev/null +++ b/TRD/CMake_libTRDqaAnalysis.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +qaAnalysis/AliTRDqaElectronSpectra.cxx +qaAnalysis/AliTRDqaESDFriends.cxx +qaAnalysis/AliTRDqaEnergyDeposit.cxx +qaAnalysis/AliTRDqaJPsi.cxx +qaAnalysis/AliTRDqaAT.cxx +qaAnalysis/AliTRDqaBasic.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDqaAnalysis "${SRCS}" "${HDRS}") diff --git a/TRD/CMake_libTRDrec.txt b/TRD/CMake_libTRDrec.txt new file mode 100644 index 00000000000..001d8651fa5 --- /dev/null +++ b/TRD/CMake_libTRDrec.txt @@ -0,0 +1,33 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTRDcluster.cxx +AliTRDclusterizer.cxx +AliTRDtransform.cxx +AliTRDtracklet.cxx +AliTRDtrack.cxx +AliTRDtracker.cxx +AliTRDseed.cxx +AliTRDpropagationLayer.cxx +AliTRDpidESD.cxx +AliTRDReconstructor.cxx +AliTRDtrackingAnalysis.cxx +AliTRDseedV1.cxx +AliTRDtrackV1.cxx +AliTRDtrackerV1.cxx +AliTRDtrackerDebug.cxx +AliTRDtrackingSector.cxx +AliTRDtrackingChamber.cxx +AliTRDchamberTimeBin.cxx +AliTRDQADataMakerRec.cxx +AliTRDqaBlackEvents.cxx +AliTRDCalibraFillHisto.cxx +AliTRDqaBuildReference.cxx +AliTRDqaRecPoints.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDrec "${SRCS}" "${HDRS}") diff --git a/TRD/CMake_libTRDsim.txt b/TRD/CMake_libTRDsim.txt new file mode 100644 index 00000000000..a39f443dca1 --- /dev/null +++ b/TRD/CMake_libTRDsim.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +AliTRDpoints.cxx +AliTRDsimTR.cxx +AliTRD.cxx +AliTRDv1.cxx +AliTRDdigitizer.cxx +AliTRDQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TRDsim "${SRCS}" "${HDRS}" "${HDRS}") diff --git a/TTherminator/CMakeLists.txt b/TTherminator/CMakeLists.txt new file mode 100644 index 00000000000..299c39a7e93 --- /dev/null +++ b/TTherminator/CMakeLists.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/TTherminator +${CMAKE_SOURCE_DIR}/TTherminator/Therminator +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/EVGEN +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libTTherminator.txt) + diff --git a/TTherminator/CMake_libTTherminator.txt b/TTherminator/CMake_libTTherminator.txt new file mode 100644 index 00000000000..2460d0ae153 --- /dev/null +++ b/TTherminator/CMake_libTTherminator.txt @@ -0,0 +1,25 @@ +# -*- mode: cmake -*- + +set(SRCS +AliGenTherminator.cxx +TTherminator.cxx +Therminator/DecayChannel.cxx +Therminator/DecayTable.cxx +Therminator/Event.cxx +Therminator/Hypersurface.cxx +Therminator/Integrator.cxx +Therminator/Parser.cxx +Therminator/Particle.cxx +Therminator/ParticleDB.cxx +Therminator/ParticleDecayer.cxx +Therminator/ParticleType.cxx +Therminator/ReadPar.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(TTherminator "${SRCS}" "${HDRS}") + + diff --git a/VZERO/CMakeLists.txt b/VZERO/CMakeLists.txt new file mode 100644 index 00000000000..80dbbeed72b --- /dev/null +++ b/VZERO/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/VZERO +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libVZERObase.txt) + +include(CMake_libVZEROsim.txt) + +include(CMake_libVZEROrec.txt) + + diff --git a/VZERO/CMake_libVZERObase.txt b/VZERO/CMake_libVZERObase.txt new file mode 100644 index 00000000000..e4d379966c9 --- /dev/null +++ b/VZERO/CMake_libVZERObase.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +AliVZEROLoader.cxx +AliVZEROdigit.cxx +AliVZEROCalibData.cxx +AliVZEROPreprocessor.cxx +AliVZERODataDCS.cxx +AliVZEROQAChecker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(VZERObase "${SRCS}" "${HDRS}") diff --git a/VZERO/CMake_libVZEROrec.txt b/VZERO/CMake_libVZEROrec.txt new file mode 100644 index 00000000000..f54886d3140 --- /dev/null +++ b/VZERO/CMake_libVZEROrec.txt @@ -0,0 +1,15 @@ +# -*- mode: cmake -*- + +set(SRCS +AliVZEROReconstructor.cxx +AliVZERORawStream.cxx +AliVZEROQADataMakerRec.cxx +AliVZEROTriggerMask.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(VZEROrec "${SRCS}" "${HDRS}") + diff --git a/VZERO/CMake_libVZEROsim.txt b/VZERO/CMake_libVZEROsim.txt new file mode 100644 index 00000000000..c79fe8787d9 --- /dev/null +++ b/VZERO/CMake_libVZEROsim.txt @@ -0,0 +1,24 @@ +# -*- mode: cmake -*- + +set(SRCS +AliVZERO.cxx +AliVZEROv2.cxx +AliVZEROv3.cxx +AliVZEROv4.cxx +AliVZEROv5.cxx +AliVZEROv6.cxx +AliVZEROv7.cxx +AliVZEROhit.cxx +AliVZERODigitizer.cxx +AliVZEROBuffer.cxx +AliVZEROTrigger.cxx +AliVZEROTriggerMask.cxx +AliVZEROQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(VZEROsim "${SRCS}" "${HDRS}") + diff --git a/ZDC/CMakeLists.txt b/ZDC/CMakeLists.txt new file mode 100644 index 00000000000..816eb0c625d --- /dev/null +++ b/ZDC/CMakeLists.txt @@ -0,0 +1,29 @@ +# -*- mode: cmake -*- +# Create a library called "lib" which includes the source files given in +# the array . +# The extension is already found. Any number of sources could be listed here. + +set(INCLUDE_DIRECTORIES +${CMAKE_SOURCE_DIR}/ZDC +${CMAKE_SOURCE_DIR}/STEER +${CMAKE_SOURCE_DIR}/RAW +${ROOT_INCLUDE_DIR} +) + +include_directories( ${INCLUDE_DIRECTORIES}) + +set(LINK_DIRECTORIES +${ROOT_LIBRARY_DIR} +) + +link_directories( ${LINK_DIRECTORIES}) + +SetModule() + +include(CMake_libZDCsim.txt) + +include(CMake_libZDCrec.txt) + +include(CMake_libZDCbase.txt) + + diff --git a/ZDC/CMake_libZDCbase.txt b/ZDC/CMake_libZDCbase.txt new file mode 100644 index 00000000000..c7469f8934a --- /dev/null +++ b/ZDC/CMake_libZDCbase.txt @@ -0,0 +1,21 @@ +# -*- mode: cmake -*- +# $Id$ + +set(SRCS +AliZDCLaserCalib.cxx +AliZDCChMap.cxx +AliZDCDigit.cxx +AliZDCRawStream.cxx +AliZDCPedestals.cxx +AliZDCCalib.cxx +AliZDCDataDCS.cxx +AliZDCPreprocessor.cxx +AliZDCQAChecker.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ZDCbase "${SRCS}" "${HDRS}") + diff --git a/ZDC/CMake_libZDCrec.txt b/ZDC/CMake_libZDCrec.txt new file mode 100644 index 00000000000..3984462940a --- /dev/null +++ b/ZDC/CMake_libZDCrec.txt @@ -0,0 +1,16 @@ +# -*- mode: cmake -*- + +set(SRCS +AliZDCReco.cxx +AliZDCRecoParam.cxx +AliZDCRecoParampp.cxx +AliZDCRecoParamPbPb.cxx +AliZDCReconstructor.cxx +AliZDCQADataMakerRec.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ZDCrec "${SRCS}" "${HDRS}") diff --git a/ZDC/CMake_libZDCsim.txt b/ZDC/CMake_libZDCsim.txt new file mode 100644 index 00000000000..845beb97d6f --- /dev/null +++ b/ZDC/CMake_libZDCsim.txt @@ -0,0 +1,20 @@ +# -*- mode: cmake -*- + +set(SRCS +AliZDC.cxx +AliZDCv3.cxx +AliZDCHit.cxx +AliZDCSDigit.cxx +AliZDCFragment.cxx +AliZDCDigitizer.cxx +AliGenZDC.cxx +AliZDCTrigger.cxx +AliZDCQADataMakerSim.cxx +) + +# fill list of header files from list of source files +# by exchanging the file extension +String(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +AddLibrary(ZDCsim "${SRCS}" "${HDRS}") + diff --git a/cmake/modules/ALICEMacros.cmake b/cmake/modules/ALICEMacros.cmake new file mode 100644 index 00000000000..5ca45f10341 --- /dev/null +++ b/cmake/modules/ALICEMacros.cmake @@ -0,0 +1,1156 @@ +# -*- mode: cmake -*- +#_______________________________________________________________________________ +Macro(CHANGE_FILE_EXTENSION OLD_EXT NEW_EXT RESULT LIST) + +# This is probably an obsolete Macro + + If (${OLD_EXT} MATCHES "^[*][.]+.*$") + String(REGEX REPLACE "^[*]+([.].*)$" "\\1" OLD_EXT1 ${OLD_EXT}) + Endif (${OLD_EXT} MATCHES "^[*][.]+.*$") + + If (${NEW_EXT} MATCHES "^[*][.]+.*$") + String(REGEX REPLACE "^[*]+([.].*)" "\\1" NEW_EXT1 ${NEW_EXT}) + Endif (${NEW_EXT} MATCHES "^[*][.]+.*$") + + Set(FLIST) + Foreach (_current_FILE ${LIST}) + + String(REGEX REPLACE "^(.*)${OLD_EXT1}$" "\\1${NEW_EXT1}" res ${_current_FILE}) + Set (FLIST ${FLIST} ${res}) + + Endforeach (_current_FILE ${LIST}) + Set(${RESULT} ${FLIST}) + +Endmacro (CHANGE_FILE_EXTENSION) + +#_______________________________________________________________________________ +Macro (CHECK_OUT_OF_SOURCE_BUILD) + +# Checks that the binary is built outside the source + + String(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) + If(insource) + File(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Testing) + File(REMOVE ${CMAKE_SOURCE_DIR}/DartConfiguration.tcl) + Message(FATAL_ERROR "ALIROOT should be installed as an out of source build, to keep the source directory clean. Please create a extra build directory and run the command 'cmake path_to_source_dir' in this newly created directory. You have also to delete the directory CMakeFiles and the file CMakeCache.txt in the source directory. Otherwise cmake will complain even if you run it from an out-of-source directory.") + Endif(insource) + +EndMacro (CHECK_OUT_OF_SOURCE_BUILD) + +#_______________________________________________________________________________ +Function (AddLibrary LIB SRCS DHDRS) + +# Adds an AliRoot library as a target + + Set(LDEF "${LIB}LinkDef.h") + Set(DICT) + If(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LDEF}) +# even with no cxx files, one may want to build an empty lib as a placeholder +# in AliRoot this is signalled by the existence of an (empty) ${LIB}LinkDef.h + Set(DICT "G__${LIB}.cxx") + Set(ASRCS ${SRCS} ${DICT}) + Root_Generate_Dictionary("${DHDRS}" "${LDEF}" "${DICT}" "${INCLUDE_DIRECTORIES}") + Else(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LDEF}) + Set(ASRCS ${SRCS}) + Endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LDEF}) + + Add_Library(${LIB} SHARED ${ASRCS}) + Target_Link_Libraries(${LIB} ${ALIROOT_LIBRARIES}) + Set_Target_Properties(${LIB} PROPERTIES ${ALIROOT_LIBRARY_PROPERTIES}) + + Install(TARGETS ${LIB} DESTINATION ${ALIROOT_INSTALL_DIR}/lib + COMPONENT shared) + + If(ALICE_STATIC_BUILD) + Add_Library(${LIB}_a STATIC ${ASRCS}) + Install(TARGETS ${LIB}_a DESTINATION ${ALIROOT_INSTALL_DIR}/lib/static) + EndIf(ALICE_STATIC_BUILD) + + If(ARGV3) + Install(FILES ${ARGV3} DESTINATION ${ALIROOT_INSTALL_DIR}/include) + Endif(ARGV3) + + CheckViols(${LIB} "${SRCS}") + +EndFunction (AddLibrary) + +#_______________________________________________________________________________ +Macro (SetModule) + +String(REGEX REPLACE "${ALICE_ROOT}/?([^/]*)/?$" "\\1" ALIROOT_MODULE "${CMAKE_CURRENT_SOURCE_DIR}") +Add_Definitions(-D_MODULE_=\"${ALIROOT_MODULE}\") + +EndMacro(SetModule) + + +#_______________________________________________________________________________ +Function (AddExecutable BIN SRCS LIBS) + +# Adds an AliRoot executable as a target + + Add_Executable(${BIN} ${SRCS}) + Target_Link_Libraries(${BIN} ${ROOT_LIBRARIES} ${LIBS}) + Install(TARGETS ${BIN} DESTINATION ${ALIROOT_INSTALL_DIR}/bin) + + If(ALICE_STATIC_BUILD) + Add_Executable(${BIN}_a ${SRCS}) + Set(_ar_libs) + Foreach(_lib ${LIBS}) + Set(_ar_libs ${_ar_libs} ${_lib}_a) + EndForeach(_lib ${LIBS}) + Foreach(_lib ${LIBS}) + Set(_ar_libs ${_ar_libs} ${_lib}_a) + EndForeach(_lib ${LIBS}) + Target_Link_Libraries(${BIN}_a ${ROOT_LIBRARIES} ${_ar_libs}) + Install(TARGETS ${BIN}_a DESTINATION ${ALIROOT_INSTALL_DIR}/bin) + EndIf(ALICE_STATIC_BUILD) + + CheckViols(${BIN} "${SRCS}") + +EndFunction (AddExecutable) + +#_______________________________________________________________________________ +Macro (SetupSystem) + +# Set up all system dependencies of AliRoot + +Message(STATUS "Setting up system dependent parameters for ${ALICE_TARGET}" ) + +If(ALICE_TARGET STREQUAL macosx64) + + Execute_process( + COMMAND sw_vers -productVersion + OUTPUT_VARIABLE MACOSX + OUTPUT_STRIP_TRAILING_WHITESPACE) + + String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\1" MACOSX_MAJOR "${MACOSX}") + String(REGEX REPLACE "^(.*)[.](.*)[.](.*)$" "\\2" MACOSX_MINOR "${MACOSX}") + + Message(STATUS "Mac OS X ${MACOSX_MAJOR}.${MACOSX_MINOR}") + + Find_Package(fink) + + Set(CMAKE_CXX_COMPILER g++) + Set(CMAKE_C_COMPILER gcc) +# I found no way to make this work... +# Set(CMAKE_CXX_LINK_EXECUTABLE +# "MACOSX_DEPLOYMENT_TARGET=${MACOSX_MAJOR}.${MACOSX_MINOR} ${CMAKE_CXX_LINK_EXECUTABLE}") + + Set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -flat_namespace -single_module -undefined dynamic_lookup -m64") + + Set(CMAKE_Fortran_FLAGS "-fno-second-underscore -m64") + + Set(CLIBDEFS "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC") + + Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -pipe -Wall -W -Wno-long-double -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include") + Set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -Wall -W -fno-common -pipe -I${FINK_ROOT}/include") + + If(CMAKE_Fortran_COMPILER MATCHES g95) + Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fbounds-check -ftrace=full -DFORTRAN_G95") + Execute_process(COMMAND svn info $ENV{ALICE_ROOT} + COMMAND g95 --print-search-dirs + OUTPUT_VARIABLE _out) + String(REGEX REPLACE "^.*install: *([^\n]*)/\n.*$" "\\1" _libdir ${_out}) + Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} -L${_libdir} -lf95") + Else(CMAKE_Fortran_COMPILER MATCHES g95) + Set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DFORTRAN_GFORTRAN") + Execute_process( + COMMAND gfortran -m64 -print-file-name=libgfortran.dylib + OUTPUT_VARIABLE FLIB + OUTPUT_STRIP_TRAILING_WHITESPACE) + Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}") + Execute_process( + COMMAND gfortran -m64 -print-file-name=libgfortranbegin.a + OUTPUT_VARIABLE FLIB + OUTPUT_STRIP_TRAILING_WHITESPACE) + Set(ROOT_LIBRARIES "${ROOT_LIBRARIES} ${FLIB}") + Endif(CMAKE_Fortran_COMPILER MATCHES g95) + + Set(LINK_FLAGS "${LINK_FLAGS} -m64") + +# I think this is useless +# Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES} -L/usr/X11R6/lib -lX11") + Set(ALIROOT_LIBRARIES "${ROOT_LIBRARIES}") + +# Would like to use this, but did not manage on the Mac +#Include(FindOpenGL) +#Set(ROOT_LIBRARIES ${ROOT_LIBRARIES} ${OPENGL_LIBRARIES}) +#Set(ROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR}) +# Poor man's version of the above + Set(ALIROOT_INCLUDE_DIR ${ROOT_INCLUDE_DIR} /usr/X11/include) + + Set(LINK_FLAGS "${LINK_FLAGS} -bind_at_load") + +# +# LD = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \ +# unset LD_PREBIND ; \ +# g++ +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# + +Endif(ALICE_TARGET STREQUAL macosx64) + +EndMacro (SetupSystem) + +# ../build/Makefile.alphacxx6 +# # -*- mode: makefile -*- +# # Makefile to build AliRoot for Alpha OSF1 +# +# # System dependent commands +# +# XARGS = xargs +# +# # The compilers +# CXX = cxx +# F77 = f77 +# +# # Global optimisation +# OPT = -O +# NOOPT = -O0 +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = -I. $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) -nostdnew -rtti -taso +# CXXFLAGSNO = $(CXXNOOPT) -nostdnew -rtti -taso +# CFLAGS = $(COPT) -fPIC -pipe -mcpu=ev5 -D__osf__ -D__alpha +# FFLAGS = $(FOPT) -nofor_main -warn noinformational -taso $(CLIBFOPT) +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(filter-out -warn noinformational,$(FFLAGS)) +# +# # rootcint flags +# CINTFLAGS = -D__DECCXX +# +# LD = cxx +# LDFLAGS = +# +# SHLD = ld +# SOFLAGS = -L/usr/lib/cmplrs/cxx -rpath /usr/lib/cmplrs/cxx \ +# -expect_unresolved "*" -msym -shared -taso \ +# /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/cxx/_main.o +# +# SHLIB = -lUfor -lfor -lFutil +# SOEXT = so +# +# #System libraries +# +# # Flags for static libraries +# AFLAGS = $(filter-out -rpath /usr/lib/cmplrs/cxx -msym -shared /usr/lib/cmplrs/cc/crt0.o,$(SOFLAGS)) +# AFLAGS += $(SHLIB) +# +# # Additional flags and libraries for building aliroot executable +# SYSLIBS := -lXm -lXt -lX11 -lPW -lUfor -lfor -lFutil -lots -taso -lbsd +# +# # Cure funny problem +# # sometimes in dependencies system include files of the sort +# # /usr/.../filename AND /usr/.../filename.cc are present +# # DEC believes that /usr/.../filename is the executable to be +# # built from /usr/.../filename.cc +# # Just avoid this to happen +# +# % : %.cc +# @; +# +# +# +# +# +# +# +# +# +# ../build/Makefile.hpuxacc +# # -*- mode: makefile -*- +# # Makefile to build AliRoot on HP-UX +# +# # System dependent commands +# +# XARGS = xargs +# +# # The compilers +# CXX = aCC +# F77 = f77 +# CC = cc +# +# # Global optimisation +# OPT = -g -O +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_HPUX -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +z -Ae +# CLIBFOPT = $(CLIBDEFS) -WF,-P +# +# CXXFLAGS = $(CXXOPT) -Wc,-ansi_for_scope,on +Z -z +W70,495,740,749,823,829 -Dextname +# CXXFLAGSNO = $(CXXNOOPT) -Wc,-ansi_for_scope,on +Z -z +W70,495,740,749,823,829 -Dextname +# CFLAGS = $(COPT) +Z -Ae +# FFLAGS = $(CLIBFOPT) $(FOPT) +ppu +Z +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = aCC +# LDFLAGS = $(OPT) -z -Wl,+s -Wl,-E +# +# SHLD = $(LD) +# SOFLAGS = -b /usr/lib/libm.sl +# +# SOEXT = sl +# +# # additional ROOT libraries +# SYSLIBS := -lcrypt -L/usr/lib/X11R6 -lX11 +# +# +# +# +# +# ../build/Makefile.linux +# # -*- mode: makefile -*- +# # Makefile to build AliRoot for Linux +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = g++ +# CC = gcc +# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) +# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) +# F77 = $(shell root-config --f77) +# +# # Global optimisation +# OPT = -O -g +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# ifeq ($(CCMAJORV),2) +# CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe +# CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe +# else +# ifeq ($(CCMAJORV),3) +# CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi +# else +# ifeq ($(CCMAJORV),4) +# CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi +# else +# CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi +# endif +# endif +# endif +# CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi +# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore +# +# ifeq (g95,$(F77)) +# FFLAGS +=-DFORTRAN_G95 +# else +# ifeq (gfortran,$(F77)) +# FFLAGS +=-DFORTRAN_GFORTRAN +# else +# FFLAGS += +# endif +# endif +# +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = g++ +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = $(OPT) -shared -Wl +# SOEXT = so +# +# #System libraries +# SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib -lX11 +# +# ifeq (g95,$(F77)) +# SHLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95 +# else +# ifeq (gfortran,$(F77)) +# SHLIB := $(shell gfortran -print-file-name=libgfortran.so) +# SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a) +# SYSLIBS += $(SHLIB) +# else +# SHLIB = -lg2c +# SYSLIBS += -lg2c +# endif +# endif +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# # additional ROOT libraries +# +# +# +# +# +# +# ../build/Makefile.linuxalphagcc +# # -*- mode: makefile -*- +# # Makefile to build AliRoot for Linux on alpha +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = g++ +# F77 = g77 +# CC = gcc +# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) +# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) +# +# # Global optimisation +# OPT = -O -g -mieee -mno-soft-float +# NOOPT = -g -mieee -mno-soft-float +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_UNIX -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# +# CXXFLAGS = $(OPT) -Wall -fPIC -pipe +# CXXFLAGSNO = $(NOOPT) -Wall -fPIC -pipe +# CFLAGS = $(OPT) -Wall -fPIC -pipe -ansi +# FFLAGS = $(CLIBFOPT) $(FOPT) -Wall -fPIC -pipe -fno-second-underscore +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = g++ +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = $(OPT) -Wall -fPIC -pipe -shared -Wl +# SHLIB = -lg2c +# SOEXT = so +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# #System libraries +# SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 +# +# +# +# +# +# ../build/Makefile.linuxia64ecc +# # -*- mode: makefile -*- +# # Makefile for AliRoot for Itanium/Linux with Intel icc compiler +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = icc +# F77 = ifort +# CC = icc +# +# # Global optimisation +# OPT = -g #-O +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(OPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) +# CXXFLAGSNO = $(CXXNOOPT) +# CFLAGS = $(COPT) +# FFLAGS = $(CLIBFOPT) $(FOPT) +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = icpc +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = -Wl,-soname,$$TMPLIB -shared -O +# SHLIB = +# SOEXT = so +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# # additional ROOT libraries +# +# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'` +# +# SYSLIBS := $(LIBNOVER) -lcrypt -L/usr/local/lib -lXt -lCEPCF90 -lF90 \ +# -lPEPCF90 -lintrins -L/usr/X11R6/lib -lX11 +# ../build/Makefile.linuxia64gcc +# # -*- mode: makefile -*- +# # Makefile for AliRoot for Itanium/Linux with gcc +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = g++ +# F77 = g77 +# CC = gcc +# +# # Global optimisation +# OPT = -g -O +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) -Wall -Weffc++ -fPIC -pipe +# CXXFLAGSNO = $(CXXNOOPT) -Wall -Weffc++ -fPIC -pipe +# CFLAGS = -Wall -fPIC -pipe +# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = g++ +# LDFLAGS = $(OPT) -Wl,-Map -Wl,$@.map +# +# SHLD = $(LD) +# SOFLAGS = -shared -Wl -O2 +# SOEXT = so +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# # additional ROOT libraries +# +# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'` +# +# #System libraries +# SYSLIBS := -ldl -lbsd -lg2c -L/usr/X11R6/lib -lX11 $(LIBNOVER) +# +# +# +# +# +# ../build/Makefile.linuxicc +# # -*- mode: makefile -*- +# # Makefile for AliRoot for Linux with the Intel icc compiler +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = icc +# CC = icc +# +# # Compiler version: +# ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \ +# cut -d'.' -f1) +# ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \ +# cut -d'.' -f2) +# +# F77 = ifort +# +# # Global optimisation +# OPT = -O -ip +# NOOPT = -O0 +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) +# CXXFLAGSNO = $(CXXNOOPT) +# CFLAGS = $(COPT) +# FFLAGS = $(CLIBFOPT) $(FOPT) +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = icpc +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = -Wl,-soname,$$TMPLIB -shared $(OPT) +# SHLIB = +# SOEXT = so +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# # additional ROOT libraries +# +# LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'` +# +# #System libraries +# SYSLIBS := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \ +# -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ +# -lifcore -lifport +# ../build/Makefile.linuxx8664gcc +# # -*- mode: makefile -*- +# # Makefile to build AliRoot for Linux +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = g++ +# CC = gcc +# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) +# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) +# F77 = $(shell root-config --f77) +# +# # Global optimisation +# OPT = -O0 -g +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# ifeq ($(CCMAJORV),2) +# CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe -m64 +# CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe -m64 +# else +# ifeq ($(CCMAJORV),3) +# CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux -m64 +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -m64 +# else +# ifeq ($(CCMAJORV),4) +# CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux -m64 +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -m64 +# else +# CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux -m64 +# CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -m64 +# endif +# endif +# endif +# CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi -m64 +# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore -fPIC -fno-f2c -m64 +# +# ifeq (g95,$(F77)) +# FFLAGS +=-DFORTRAN_G95 +# else +# ifeq (gfortran,$(F77)) +# FFLAGS +=-DFORTRAN_GFORTRAN +# else +# FFLAGS += +# endif +# endif +# +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = g++ +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = $(OPT) -shared -Wl +# SOEXT = so +# +# #System libraries +# LIBNOVER = `find /lib64 -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib64/ -l/'` +# +# SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib64 -lX11 $(LIBNOVER) +# +# ifeq (g95,$(F77)) +# SHLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95 +# else +# ifeq (gfortran,$(F77)) +# SHLIB := $(shell gfortran -print-file-name=libgfortran.so) +# SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a) +# else +# SHLIB = -lg2c +# SYSLIBS += -lg2c +# endif +# endif +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# +# +# +# +# +# +# +# +# ../build/Makefile.macosx +# # -*- mode: makefile -*- +# # Makefile for AliRoot for MacOS X with gcc +# +# XARGS = xargs +# +# # OS version +# MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1)) +# MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)) +# +# # fink directories +# FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??') +# ifeq (,$(FINK_ROOT)) +# # No fink, build will probably fail, but we try a guess +# FINK_ROOT=/usr/local +# endif +# +# # The compilers +# CXX = g++ +# CC = gcc +# F77 = $(shell root-config --f77) +# +# # Global optimisation +# OPT = -O -g +# NOOPT = -O0 -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) -fno-second-underscore +# ifeq (g95,$(F77)) +# FOPT += -fbounds-check +# endif +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# CXXSTF = -pipe -Wall -W -Wno-long-double -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I$(FINK_ROOT)/include +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) $(CXXSTF) +# +# CXXFLAGSNO = $(CXXNOOPT) $(CXXSTF) +# +# CFLAGS = $(COPT) -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include +# +# FFLAGS = $(CLIBFOPT) $(FOPT) +# ifeq (g95,$(F77)) +# FFLAGS += -ftrace=full +# FFLAGS +=-DFORTRAN_G95 +# else +# FFLAGS +=-DFORTRAN_GFORTRAN +# endif +# +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \ +# unset LD_PREBIND ; \ +# g++ +# LDFLAGS = $(OPT) $(DICTLOAD) +# +# SHLD := $(LD) +# SOFLAGS := -bundle -undefined dynamic_lookup +# SHLIB := +# SOEXT := so +# +# DYLD := $(LD) +# DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module +# DYLIB := +# DYEXT := dylib +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys +# +# SYSLIBS := -L/usr/X11R6/lib -lX11 +# +# EXEFLAGS := -bind_at_load +# +# #System libraries +# +# ifeq (g95,$(F77)) +# SYSLIBS += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95 +# DYLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95 +# else +# SYSLIBS += -ldl $(shell $(F77) -print-file-name=libgfortran.dylib) +# SYSLIBS += $(shell $(F77) -print-file-name=libgfortranbegin.a) +# endif +# ../build/Makefile.macosxicc +# # -*- mode: makefile -*- +# # Makefile for AliRoot for MacOS X with gcc +# +# XARGS = xargs +# +# # fink directories +# FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??') +# ifeq (,$(FINK_ROOT)) +# # No fink, build will probably fail, but we try a guess +# FINK_ROOT=/usr/local +# endif +# +# # The compilers +# CXX = icc +# CC = icc +# +# F77 = ifort +# +# # Global optimisation +# OPT = -O -g +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) -fPIC -wd1476 -I/usr/X11R6/include -I$(FINK_ROOT)/include +# +# CXXFLAGSNO = $(CXXNOOPT) +# +# CFLAGS = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include +# +# FFLAGS = $(CLIBFOPT) $(FOPT) +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = icpc +# LDFLAGS = $(OPT) $(DICTLOAD) +# +# SHLD := $(LD) +# SOFLAGS := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module +# SHLIB := +# SOEXT := so +# +# DYLD := $(LD) +# DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module +# DYLIB := +# DYEXT := dylib +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys +# +# EXEFLAGS := -bind_at_load +# +# #System libraries +# +# SYSLIBS := -L/usr/X11R6/lib -lX11 -lGL $(LIBNOVER) -L/usr/local/lib \ +# -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ +# -lifcore -lifport +# +# +# ../build/Makefile.macosxxlc +# # -*- mode: makefile -*- +# # Makefile for AliRoot for MacOS X using the IBM xlc compiler +# +# # The compilers +# CXX = xlC +# F77 = xlf +# CC = xlc +# +# # Global optimisation +# OPT = -qnoopt #-O3 -g +# NOOPT = -qnoopt +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(shell echo $(CLIBDEFS) | sed -e's/-D/-WF,-D/g') +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) -qpic -I/sw/include \ +# -qflttrap=overflow:zerodivide:invalid:inexact:enable +# CXXFLAGSNO = $(CXXNOOPT) -qpic -I/sw/include \ +# -qflttrap=overflow:zerodivide:invalid:inexact:enable +# CFLAGS = -qpic -qextname -I/sw/include \ +# -qflttrap=overflow:zerodivide:invalid:inexact:enable +# FFLAGS = $(CLIBFOPT) $(FOPT) -qpic \ +# -qflttrap=overflow:zerodivide:invalid:inexact:enable +# # rmkdepend flags for building dependencies +# DEPENDFFLAGS = $(FFLAGS) +# DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys +# +# # rootcint flags +# CINTFLAGS = +# +# LD = xlC +# LDFLAGS = $(OPT) +# +# SHLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \ +# unset LD_PREBIND ; \ +# xlC +# SOFLAGS := -bundle -undefined dynamic_lookup +# #SHLIB := -lg2c +# SHLIB := +# SOEXT := so +# +# DYLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \ +# unset LD_PREBIND ; \ +# xlC +# DYFLAGS = -qmkshrobj -undefined dynamic_lookup -single_module +# DYLIB := +# DYEXT := dylib +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# +# #System libraries +# SYSLIBS := -ldl -L/usr/X11R6/lib -lX11 +# +# EXEFLAGS := -Wl,-bind_at_load +# +# +# +# +# ../build/Makefile.solarisCC5 +# # -*- mode: makefile -*- +# # Makefile to build ALIROOT for SunOS +# +# # System dependent commands +# +# XARGS = xargs +# +# # The compilers +# CXX = /opt/SUNWspro/bin/CC +# CC = /opt/SUNWspro/bin/cc +# F77 = /opt/SUNWspro/bin/f77 +# +# # Global optimisation +# OPT = -g -O +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) -xpp=cpp +# +# # Compiler flags +# CXXFLAGS = $(CXXOPT) +w -KPIC -features=rtti -D_XOPEN_SOURCE -D_XOPEN_VERSION=4 -D__EXTENSIONS__ +# CXXFLAGSNO = $(CXXNOOPT) +w -KPIC -features=rtti +# CFLAGS = $(COPT) -KPIC -erroff=%none +# FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -KPIC +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# SHLIB = +# SOEXT = so +# +# LD = /opt/SUNWspro/bin/CC +# LDFLAGS = $(OPT) -Qoption ld -t +# +# SHLD = $(LD) +# SOFLAGS = -G $(LDFLAGS) $(SHLIB) +# +# SYSLIBS := -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt \ +# -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl +# +# # Additional flags and libraries for building aliroot executable +# +# EXEFLAGS := -O -Qoption ld -t +# +# +# +# +# +# ../build/Makefile.win32gcc +# # -*- mode: makefile -*- +# # Makefile to build AliRoot for Linux +# +# # System dependent commands +# +# XARGS = xargs -r +# +# # The compilers +# CXX = g++ +# F77 = g77 +# CC = gcc +# CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) +# CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) +# +# # Global optimisation +# OPT = -O -g +# NOOPT = -g +# +# CXXOPT = $(OPT) +# CXXNOOPT = $(NOOPT) +# COPT = $(OPT) +# FOPT = $(OPT) +# +# # CERNLIB defines +# CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ +# CLIBCXXOPTS = +# CLIBCOPT = +# CLIBFOPT = $(CLIBDEFS) +# +# # Compiler flags +# CXXFLAGS = $(OPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL +# CXXFLAGSNO = $(NOOPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL +# CFLAGS = $(OPT) -Wall -D_DLL +# FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore +# # rmkdepend flags for building dependencies of FORTRAN files +# DEPENDFFLAGS = $(FFLAGS) +# +# # rootcint flags +# CINTFLAGS = +# +# LD = g++ +# LDFLAGS = $(OPT) +# +# SHLD = $(LD) +# SOFLAGS = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc +# SHLIB = $(shell root-config --libs) -lg2c +# SOEXT = dll +# +# ALLD = ar +# ALFLAGS = cr +# ALLIB = +# AEXT = a +# +# # additional ROOT libraries +# +# #System libraries +# SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 +# +# +# +# +# + + + + + + diff --git a/cmake/modules/CbmMacros.cmake b/cmake/modules/CbmMacros.cmake new file mode 100644 index 00000000000..68189701716 --- /dev/null +++ b/cmake/modules/CbmMacros.cmake @@ -0,0 +1,312 @@ +# -*- mode: cmake -*- + + ########################################### + # + # Usefull macros + # + ########################################### + + ############################################################### + # + # Exchange file extention of LIST from + # FILE_EXT1 to FILE_EXT2 and assign the + # newly created list to OUTVAR. The input + # list LIST is not changed at all + # Ex: CHANGE_FILE_EXTENSION(*.cxx *.h TRD_HEADERS "${TRD_SRCS}") + # + ################################################################ + +MACRO (CHANGE_FILE_EXTENSION FILE_EXT1 FILE_EXT2 OUTVAR LIST) + + SET(BLA) + + IF (${FILE_EXT1} MATCHES "^[*][.]+.*$") + STRING(REGEX REPLACE "^[*]+([.].*)$" "\\1" FILE_EXT1_NEW ${FILE_EXT1}) + ENDIF (${FILE_EXT1} MATCHES "^[*][.]+.*$") + + IF (${FILE_EXT2} MATCHES "^[*][.]+.*$") + STRING(REGEX REPLACE "^[*]+([.].*)" "\\1" FILE_EXT2_NEW ${FILE_EXT2}) + ENDIF (${FILE_EXT2} MATCHES "^[*][.]+.*$") + + foreach (_current_FILE ${LIST}) + +# GET_FILENAME_COMPONENT(name_wo_path ${_current_FILE} +# NAME +# ) + + STRING(REGEX REPLACE "^(.*)${FILE_EXT1_NEW}$" "\\1${FILE_EXT2_NEW}" test ${_current_FILE}) + SET (BLA ${BLA} ${test}) + + endforeach (_current_FILE ${LIST}) + + SET (${OUTVAR} ${BLA}) + + + +ENDMACRO (CHANGE_FILE_EXTENSION) + + ###################################################### + # + # Macro get string with a colon seperated string of + # pathes or any other colon sperated list. + # First the string is seperated and the entries are + # filled into a list. + # Loop over the list and searches for the occurence + # of keywords which are provided as a list. + # If the keyword occurs this path (entry) is + # deleted from the list. Returns the list of pathes + # (entries) wich survives the loop. + # + # PATH: colon separated string of pathes or other + # input entries + # LIST_OF_KEYWORDS: list of the keywords which + # should be excluded in the output + # OUTVAR: name of the variable which should be filled + # with the resulting output list + # + ###################################################### + +MACRO (CLEAN_PATH_LIST PATH LIST_OF_KEYWORDS OUTVAR) + + SET(BLA "") + + STRING(REGEX MATCHALL "[^:]+" PATH1 ${PATH}) + + FOREACH(_current_PATH ${PATH1}) + + SET(KEYWORD_FOUND FALSE) + + FOREACH(_current_KEYWORD ${LIST_OF_KEYWORDS}) + + IF (${_current_PATH} MATCHES "${_current_KEYWORD}") + SET(KEYWORD_FOUND TRUE) + ENDIF (${_current_PATH} MATCHES "${_current_KEYWORD}") + + ENDFOREACH(_current_KEYWORD ${LIST_OF_KEYWORDS}) + + IF (NOT KEYWORD_FOUND) + SET(BLA ${BLA} ${_current_PATH}) + ENDIF (NOT KEYWORD_FOUND) + + ENDFOREACH(_current_PATH ${PATH1}) + + UNIQUE(${OUTVAR} "${BLA}") + +ENDMACRO (CLEAN_PATH_LIST) + + ########################################################## + # + # The macro checks if the user wants to build the project + # in the source directory and if so stop the execution + # of cmake with an error message. + # + ########################################################## + +MACRO (CHECK_OUT_OF_SOURCE_BUILD) + + STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) + IF(insource) + FILE(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Testing) + FILE(REMOVE ${CMAKE_SOURCE_DIR}/DartConfiguration.tcl) + MESSAGE(FATAL_ERROR "FAIRROOT should be installed as an out of source build, to keep the source directory clean. Please create a extra build directory and run the command 'cmake path_to_source_dir' in this newly created directory. You have also to delete the directory CMakeFiles and the file CMakeCache.txt in the source directory. Otherwise cmake will complain even if you run it from an out-of-source directory.") + ENDIF(insource) + +ENDMACRO (CHECK_OUT_OF_SOURCE_BUILD) + +MACRO(UNIQUE var_name list) + + ####################################################################### + # Make the given list have only one instance of each unique element and + # store it in var_name. + ####################################################################### + + SET(unique_tmp "") + FOREACH(l ${list}) + STRING(REGEX REPLACE "[+]" "\\\\+" l1 ${l}) + IF(NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)") + SET(unique_tmp ${unique_tmp} ${l}) + ENDIF(NOT "${unique_tmp}" MATCHES "(^|;)${l1}(;|$)") + ENDFOREACH(l) + SET(${var_name} ${unique_tmp}) +ENDMACRO(UNIQUE) + +MACRO(CHECK_CMAKE_VERSION) + + ################################################################# + #Check if CMake has at least version 2.4.3 + # This has to be done before anything else, because some commands + # are not known in older versions. + ################################################################# + + EXEC_PROGRAM( cmake ARGS "--version" OUTPUT_VARIABLE CMAKE_VERSION ) + IF (${CMAKE_MAJOR_VERSION} LESS 2 ) + MESSAGE("You are using CMake version ${CMAKE_VERSION} .") + MESSAGE( FATAL_ERROR "This Cmake version is to old. At leasts version 2.4.3 is needed.") + ENDIF (${CMAKE_MAJOR_VERSION} LESS 2 ) + IF (${CMAKE_MINOR_VERSION} LESS 4 ) + MESSAGE("You are using CMake version ${CMAKE_VERSION} .") + MESSAGE( FATAL_ERROR "This Cmake version is to old. At leasts version 2.4.3 is needed.") + ENDIF (${CMAKE_MINOR_VERSION} LESS 4 ) + IF (${CMAKE_PATCH_VERSION} LESS 3 ) + MESSAGE("You are using CMake version ${CMAKE_VERSION} .") + MESSAGE( FATAL_ERROR "This Cmake version is to old. At leasts version 2.4.3 is needed.") + ENDIF (${CMAKE_PATCH_VERSION} LESS 3 ) + +ENDMACRO(CHECK_CMAKE_VERSION) + +MACRO(CHECK_GSI) + + ################################################################# + # Check if /misc/cbmsoft/config exist, because than we are at GSI + # If we are not at GSI some of the macros may not work. + ################################################################# + + SET(GSI GSI-NOTFOUND) + FIND_PATH(GSI NAMES config PATHS + /misc/cbmsoft + NO_DEFAULT_PATH + ) + + EXEC_PROGRAM(uname ARGS "-m" OUTPUT_VARIABLE Machine) +# SET(Machine ${CMAKE_SYSTEM_PROCESSOR}) + #${CMAKE_SYSTEM_PROCESSOR} is not set correctly on 64bit + #Debian Etch, so use workaround + + IF(GSI) + MESSAGE("-- You're using the GSI installation of the external packages.") + + SET(KEYWORDS + cbmsoft + debian + globus + gcc + binutils + cbm + panda + ) + IF(DEFINED ENV{PATH}) + CLEAN_PATH_LIST("$ENV{PATH}" "${KEYWORDS}" PATH) + #MESSAGE ("PATH: ${PATH}") + #set(ENV{PATH} ${PATH}) + ENDIF(DEFINED ENV{PATH}) + + + # Create a clean LD_LIBRARY_PATH without any pathes to libraries set + # later on + IF(DEFINED ENV{LD_LIBRARY_PATH}) + SET(KEYWORDS ${KEYWORDS} ${CMAKE_BINARY_DIR}) + CLEAN_PATH_LIST("$ENV{LD_LIBRARY_PATH}" "${KEYWORDS}" LD_LIBRARY_PATH) + #MESSAGE("LD_LIBRARY_PATH: ${LD_LIBRARY_PATH}") + ENDIF(DEFINED ENV{LD_LIBRARY_PATH}) + + # Check if you're on an 32 or 64 bit environment + IF(${Machine} MATCHES "i686" OR + ${Machine} MATCHES "i386" ) + MESSAGE("-- This is an 32 bit machine") + SET(GSI_SIMPATH /misc/cbmsoft/Debian3.1/new/) + ELSE(${Machine} MATCHES "i686" OR + ${Machine} MATCHES "i386" ) + IF(${Machine} MATCHES "x86_64") + MESSAGE("-- This is an 64 bit machine") + SET(GSI_SIMPATH /misc/cbmsoft/Debian64/new/) + ELSE(${Machine} MATCHES "x86_64") + MESSAGE(FATAL_ERROR "This is a UNIX machine wich is neither 32 nor 64 bit. Don't know what to do, so break. ") + ENDIF(${Machine} MATCHES "x86_64") + ENDIF(${Machine} MATCHES "i686" OR + ${Machine} MATCHES "i386" ) + + ELSE(GSI) + MESSAGE("-- You're not using the GSI installation of the external packages.") + MESSAGE("-- If any problems occur this can be due to the fact that the macros") + MESSAGE("-- were mostly tested at GSI. If you find any problems please contact") + MESSAGE("-- f.uhlig@gsi.de") + STRING(REGEX MATCHALL "[^:]+" PATH $ENV{PATH}) + #MESSAGE("PATH: ${PATH}") + ENDIF(GSI) + +ENDMACRO(CHECK_GSI) + +MACRO(CHECK_EXTERNAL_PACKAGES_INSTALLATION) + + ############################################################# + # Check if cmake can find the root of the simulation packages + # check if the installation is as at GSI + # This is needed later on to check for the required packages + # Should be done in a better way that you find the packages + # independent of the way where they are installed + ############################################################# + + SET(SIMPATH SIMPATH-NOTFOUND) + SET(SIMPATH1 SIMPATH1-NOTFOUND) + SET(SIMPATH2 SIMPATH2-NOTFOUND) + SET(SIMPATH3 SIMPATH3-NOTFOUND) + SET(SIMPATH4 SIMPATH4-NOTFOUND) + + FIND_PATH(SIMPATH1 NAMES transport PATHS + $ENV{SIMPATH} + ${GSI_SIMPATH} + NO_DEFAULT_PATH + ) + FIND_PATH(SIMPATH2 NAMES tools PATHS + $ENV{SIMPATH} + ${GSI_SIMPATH} + NO_DEFAULT_PATH + ) + FIND_PATH(SIMPATH3 NAMES cern PATHS + $ENV{SIMPATH} + ${GSI_SIMPATH} + NO_DEFAULT_PATH + ) + FIND_PATH(SIMPATH4 NAMES generators PATHS + $ENV{SIMPATH} + ${GSI_SIMPATH} + NO_DEFAULT_PATH + ) + + IF(SIMPATH1 AND SIMPATH2 AND SIMPATH3 AND SIMPATH4) + SET(SIMPATH ${SIMPATH1}) + ENDIF(SIMPATH1 AND SIMPATH2 AND SIMPATH3 AND SIMPATH4) + + + IF (${SIMPATH} MATCHES "SIMPATH-NOTFOUND") + MESSAGE( FATAL_ERROR "Could not find the root of the simulation software. Please define SIMPATH as the path to the root of your instalation of simulation software.") + ELSE (${SIMPATH} MATCHES "SIMPATH-NOTFOUND") + MESSAGE( STATUS "Found root of the simulation software at ${SIMPATH}") + SET( ENV{SIMPATH} ${SIMPATH}) + SET(ROOTSYS ${SIMPATH}/tools/root) + SET( ENV{ROOTSYS} ${SIMPATH}/tools/root) + ENDIF (${SIMPATH} MATCHES "SIMPATH-NOTFOUND") + +ENDMACRO(CHECK_EXTERNAL_PACKAGES_INSTALLATION) + +################################################### +# Creates a variable which stores the intersection +# between two lists +#################################################### + +MACRO(INTERSECTION var_name list1 list2) + # Store the intersection between the two given lists in var_name. + SET(intersect_tmp "") + FOREACH(l ${list1}) + IF("${list2}" MATCHES "(^|;)${l}(;|$)") + SET(intersect_tmp ${intersect_tmp} ${l}) + ENDIF("${list2}" MATCHES "(^|;)${l}(;|$)") + ENDFOREACH(l) + SET(${var_name} ${intersect_tmp}) +ENDMACRO(INTERSECTION) + +MACRO(REMOVE_FROM_LIST var_name list1 list2) + # Remove elements in list2 from list1 and store the result in var_name. + SET(filter_tmp "") + FOREACH(l ${list1}) + IF(NOT "${list2}" MATCHES "(^|;)${l}(;|$)") + SET(filter_tmp ${filter_tmp} ${l}) + ENDIF(NOT "${list2}" MATCHES "(^|;)${l}(;|$)") + ENDFOREACH(l) + SET(${var_name} ${filter_tmp}) +ENDMACRO(REMOVE_FROM_LIST) + + + + + diff --git a/cmake/modules/CheckCompiler.cmake b/cmake/modules/CheckCompiler.cmake new file mode 100644 index 00000000000..169337cd0d1 --- /dev/null +++ b/cmake/modules/CheckCompiler.cmake @@ -0,0 +1,72 @@ +# -*- mode: cmake -*- +MACRO ( Check_Compiler ) + + +# Set a default build type for single-configuration +# CMake generators if no build type is set. +if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) +# set(CMAKE_BUILD_TYPE RelWithDebInfo) +endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + +if (CMAKE_SYSTEM_NAME MATCHES Linux) + MESSAGE("--- Found a Linux ssytem") + if (CMAKE_COMPILER_IS_GNUCXX) + MESSAGE("--- Found GNU compiler collection") +# set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") +# set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}") + # we profile... +# if(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile) +# set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") +# set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") +# endif(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile) + + # Select flags. + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_CXX_FLAGS_RELEASE "-O2") +# set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_CXX_FLAGS_DEBUG "-g") + set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + set(CMAKE_CXX_FLAGS_ARRAY_CHECK "-g3 -fno-inline -ftest-coverage -fprofile-arcs -fstack-protector") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_C_FLAGS_RELEASE "-O2") +# set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_C_FLAGS_DEBUG "-g") + set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + set(CMAKE_C_FLAGS_ARRAY_CHECK "-g3 -fno-inline -ftest-coverage -fprofile-arcs -fstack-protector") + +# set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") +# set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common") + endif (CMAKE_COMPILER_IS_GNUCXX) + + if (CMAKE_C_COMPILER MATCHES "icc") + MESSAGE("--- Found Intel compiler collection") +# set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") +# set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}") + + # Select flags. + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_CXX_FLAGS_RELEASE "-O2") + set(CMAKE_CXX_FLAGS_DEBUG "-O2 -g -0b0 -noalign") + set(CMAKE_CXX_FLAGS_DEBUGFULL "-g -Ob0 -noalign") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_C_FLAGS_RELEASE "-O2") + set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign") + set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign") + +# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -Wpointer-arith -fno-common") +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -Wpointer-arith -fno-exceptions -fno-common") + + endif (CMAKE_C_COMPILER MATCHES "icc") +endif (CMAKE_SYSTEM_NAME MATCHES Linux) + + +#STRING(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER) + +SET (BLA CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}) + +MESSAGE("--- Build Type: ${CMAKE_BUILD_TYPE}") +MESSAGE("--- Compiler Flags: ${CMAKE_CXX_FLAGS} ${${BLA}}") + +ENDMACRO ( Check_Compiler ) \ No newline at end of file diff --git a/cmake/modules/CheckCompiler.cmake.ori b/cmake/modules/CheckCompiler.cmake.ori new file mode 100644 index 00000000000..ff27f8e214e --- /dev/null +++ b/cmake/modules/CheckCompiler.cmake.ori @@ -0,0 +1,118 @@ +# -*- mode: cmake -*- +MACRO ( Check_Compiler ) + + +# Set a default build type for single-configuration +# CMake generators if no build type is set. +if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE RelWithDebInfo) +endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + +if (CMAKE_SYSTEM_NAME MATCHES Linux) + MESSAGE("--- Found a Linux ssytem") + if (CMAKE_COMPILER_IS_GNUCXX) + MESSAGE("--- Found GNU compiler collection") +# set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") +# set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}") + # we profile... +# if(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile) +# set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") +# set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") +# endif(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile) + + # Select flags. + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_CXX_FLAGS_RELEASE "-O2") +# set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_CXX_FLAGS_DEBUG "-g") + set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + set(CMAKE_CXX_FLAGS_ARRAY_CHECK "-g3 -fno-inline -ftest-coverage -fprofile-arcs -fstack-protector") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_C_FLAGS_RELEASE "-O2") +# set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_C_FLAGS_DEBUG "-g") + set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + set(CMAKE_C_FLAGS_ARRAY_CHECK "-g3 -fno-inline -ftest-coverage -fprofile-arcs -fstack-protector") + +# set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") +# set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common") + endif (CMAKE_COMPILER_IS_GNUCXX) + + if (CMAKE_C_COMPILER MATCHES "icc") + MESSAGE("--- Found Intel compiler collection") +# set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") +# set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}") + + # Select flags. + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_CXX_FLAGS_RELEASE "-O2") + set(CMAKE_CXX_FLAGS_DEBUG "-O2 -g -0b0 -noalign") + set(CMAKE_CXX_FLAGS_DEBUGFULL "-g -Ob0 -noalign") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_C_FLAGS_RELEASE "-O2") + set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign") + set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign") + +# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -Wpointer-arith -fno-common") +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -Wpointer-arith -fno-exceptions -fno-common") + + endif (CMAKE_C_COMPILER MATCHES "icc") +endif (CMAKE_SYSTEM_NAME MATCHES Linux) + + +if (CMAKE_SYSTEM_NAME MATCHES Darwin) + EXEC_PROGRAM("sw_vers -productVersion | cut -d . -f 1-2" OUTPUT_VARIABLE MAC_OS_VERSION) + MESSAGE("--- Found a Mac OS X System ${MAC_OS_VERSION}") + if (CMAKE_COMPILER_IS_GNUCXX) + MESSAGE("--- Found GNU compiler collection") + + STRING(COMPARE EQUAL "10.5" "${MAC_OS_VERSION}" MAC_OS_10_5) + IF(MAC_OS_10_5) + SET(CMAKE_CXX_FLAGS "-m64") + SET(CMAKE_C_FLAGS "-m64") + SET(CMAKE_Fortran_FLAGS "-m64") + ENDIF(MAC_OS_10_5) + + SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -flat_namespace -single_module -undefined dynamic_lookup") + SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -flat_namespace -single_module -undefined dynamic_lookup") +# MESSAGE("C_FLAGS: ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}") +# MESSAGE("CXX_FLAGS: ${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS}") + + # Select flags. + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_CXX_FLAGS_RELEASE "-O2") + set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + set(CMAKE_C_FLAGS_RELEASE "-O2") + set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") + set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline") + set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") + + + + endif (CMAKE_COMPILER_IS_GNUCXX) + +endif (CMAKE_SYSTEM_NAME MATCHES Darwin) + + + +STRING(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER) + +#if(CMAKE_BUILD_TYPE_UPPER MATCHES "RELWITHDEBINFO") +# SET (ALL_CXX_FLAGS ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}) +#endif(CMAKE_BUILD_TYPE_UPPER MATCHES "RELWITHDEBINFO") +#if(CMAKE_BUILD_TYPE_UPPER MATCHES "DEBUG") +# SET (ALL_CXX_FLAGS ${CMAKE_CXX_FLAGS_DEBUG}) +#endif(CMAKE_BUILD_TYPE_UPPER MATCHES "DEBUG") + +SET (BLA CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}) + +MESSAGE("--- Build Type: ${CMAKE_BUILD_TYPE}") +#MESSAGE("--- Build Type: ${${BLA}}") +MESSAGE("--- Compiler Flags: ${CMAKE_CXX_FLAGS} ${${BLA}}") + +ENDMACRO ( Check_Compiler ) \ No newline at end of file diff --git a/cmake/modules/FindCLHEP.cmake b/cmake/modules/FindCLHEP.cmake new file mode 100644 index 00000000000..70d4173614b --- /dev/null +++ b/cmake/modules/FindCLHEP.cmake @@ -0,0 +1,43 @@ +# - Try to find CLHEP +# Once done this will define +# +# CLHEP_FOUND - system has CLHEP +# CLHEP_INCLUDE_DIR - the CLHEP include directory +# CLHEP_LIBRARIES - The libraries needed to use CLHEP +# CLHEP_DEFINITIONS - Compiler switches required for using CLHEP +# + +if (CLHEP_INCLUDE_DIR AND CLHEP_LIBRARY_DIR) + SET (CLHEP_INCLUDE_DIR CLHEP_INCLUDE_DIR-NOTFOUND) + SET (CLHEP_LIB_DIR CLHEP_LIB_DIR-NOTFOUND) + SET (CLHEP_PLISTS_LIB_DIR CLHEP_PLISTS_LIB_DIR-NOTFOUND) +endif (CLHEP_INCLUDE_DIR AND CLHEP_LIBRARY_DIR) + +MESSAGE(STATUS "Looking for CLHEP...") + +FIND_PATH(CLHEP_INCLUDE_DIR NAMES CLHEP PATHS + ${SIMPATH}/cern/clhep/include + NO_DEFAULT_PATH +) + +FIND_PATH(CLHEP_LIBRARY_DIR NAMES libCLHEP.so libCLHEP.dylib PATHS + ${SIMPATH}/cern/clhep/lib + NO_DEFAULT_PATH +) + +if (CLHEP_INCLUDE_DIR AND CLHEP_LIBRARY_DIR) + set(CLHEP_FOUND TRUE) +endif (CLHEP_INCLUDE_DIR AND CLHEP_LIBRARY_DIR) + +if (CLHEP_FOUND) + if (NOT CLHEP_FIND_QUIETLY) + MESSAGE(STATUS "Looking for CLHEP... - found ${CLHEP_LIBRARY_DIR}") +# message(STATUS "Found CLHEP: ${CLHEP_LIBRARY_DIR}") + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${CLHEP_LIBRARY_DIR}) + endif (NOT CLHEP_FIND_QUIETLY) +else (CLHEP_FOUND) + if (CLHEP_FIND_REQUIRED) + message(FATAL_ERROR "Looking for CLHEP... - Not found") + endif (CLHEP_FIND_REQUIRED) +endif (CLHEP_FOUND) + diff --git a/cmake/modules/FindDATE.cmake b/cmake/modules/FindDATE.cmake new file mode 100644 index 00000000000..bf27e0a4ec8 --- /dev/null +++ b/cmake/modules/FindDATE.cmake @@ -0,0 +1,35 @@ +# -*- mode: cmake -*- + +# - Find the DATE system +# Finds if the RuleChecker is installed and sets the following variables: +# +# DATE_FOUND = Boolean defining if DATE is installed +# + +# Check if DATE is installed and in the path + +Execute_process( + COMMAND which date-config + OUTPUT_VARIABLE DATE_PROGRAM) + +If(DATE_PROGRAM) + Set(DATE_FOUND YES) + Message(STATUS "DATE is installed on this system") + Execute_process(COMMAND date-config --cflags OUTPUT_VARIABLE DATEFLAGS) +Else(DATE_PROGRAM) + Set(DATE_FOUND NO) + Message(STATUS "DATE is not installed on this system") + If(UNIX) + Execute_process( + COMMAND uname + OUTPUT_VARIABLE _uname + OUTPUT_STRIP_TRAILING_WHITESPACE) + Else(UNIX) + Set(_uname "Unknown") + Endif(UNIX) + Set(DATEFLAGS "-D${_uname} -DDATE_SYS=${_uname} -Dlong32=\"int\" -Dlong64=\"long long\" -DdatePointer=\"long\"") +Endif(DATE_PROGRAM) + +Set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${DATEFLAGS}) + + diff --git a/cmake/modules/FindGEANT3.cmake b/cmake/modules/FindGEANT3.cmake new file mode 100644 index 00000000000..6195d547b59 --- /dev/null +++ b/cmake/modules/FindGEANT3.cmake @@ -0,0 +1,54 @@ +# -*- mode: cmake -*- +# - Try to find GEANT3 +# Once done this will define +# +# GEANT3_FOUND - system has GEANT3 +# GEANT3_INCLUDE_DIR - the GEANT3 include directory +# GEANT_LIBRARIES - The libraries needed to use GEANT3 +# GEANT_DEFINITIONS - Compiler switches required for using GEANT3 +# GEANT3_SYSTEM_DIR - Base directory of the GEANT3 installation, needed for GCALOR + +if (GEANT3_INCLUDE_DIR AND GEANT3_LIBRARIES) + SET (GEANT3_INCLUDE_DIR GEANT3_INCLUDE_DIR-NOTFOUND) + SET (GEANT3_LIB GEANT3_LIB-NOTFOUND) + SET (GEANT3_DUMMY_LIB GEANT3_DUMMY_LIB-NOTFOUND) + SET (GEANT3_SYSTEM_DIR GEANT3_SYSTEM_DIR-NOTFOUND) +endif (GEANT3_INCLUDE_DIR AND GEANT3_LIBRARIES) + +FIND_PATH(GEANT3_SYSTEM_DIR NAMES TGeant3 PATHS + $ENV{ALICE}/geant3 + NO_DEFAULT_PATH +) + +FIND_PATH(GEANT3_INCLUDE_DIR NAMES TGeant3.h PATHS + $ENV{ALICE}/geant3/TGeant3 + NO_DEFAULT_PATH +) + +FIND_PATH(GEANT3_LIBRARY_DIR NAMES libgeant321.so PATHS + $ENV{ALICE}/geant3/lib/tgt_macosx64 + NO_DEFAULT_PATH +) + +FIND_LIBRARY(GEANT3_LIB NAMES geant321 PATHS + $ENV{ALICE}/geant3/lib/tgt_macosx64 + NO_DEFAULT_PATH +) + +SET(GEANT3_LIBRARIES ${GEANT3_LIB}) + +if (GEANT3_INCLUDE_DIR AND GEANT3_LIBRARIES AND GEANT3_SYSTEM_DIR) + set(GEANT3_FOUND TRUE) +endif (GEANT3_INCLUDE_DIR AND GEANT3_LIBRARIES AND GEANT3_SYSTEM_DIR) + +if (GEANT3_FOUND) + if (NOT GEANT3_FIND_QUIETLY) + MESSAGE(STATUS "Found GEANT3 in ${GEANT3_LIBRARIES}") + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${GEANT3_LIBRARY_DIR}) + endif (NOT GEANT3_FIND_QUIETLY) +else (GEANT3_FOUND) + if (GEANT3_FIND_REQUIRED) + message(FATAL_ERROR "Looking for GEANT3... - Not found ") + endif (GEANT3_FIND_REQUIRED) +endif (GEANT3_FOUND) + diff --git a/cmake/modules/FindGEANT4.cmake b/cmake/modules/FindGEANT4.cmake new file mode 100644 index 00000000000..b351c088900 --- /dev/null +++ b/cmake/modules/FindGEANT4.cmake @@ -0,0 +1,63 @@ +# - Try to find GEANT4 +# Once done this will define +# +# GEANT4_FOUND - system has GEANT4 +# GEANT4_INCLUDE_DIR - the GEANT4 include directory +# GEANT4_LIBRARIES - The libraries needed to use GEANT4 +# GEANT4_DEFINITIONS - Compiler switches required for using GEANT4 +# + +if (GEANT4_INCLUDE_DIR AND GEANT4_LIBRARY_DIR) + SET (GEANT4_INCLUDE_DIR GEANT4_INCLUDE_DIR-NOTFOUND) + SET (GEANT4_LIB_DIR GEANT4_LIB_DIR-NOTFOUND) + SET (GEANT4_PLISTS_LIB_DIR GEANT4_PLISTS_LIB_DIR-NOTFOUND) + SET (GEANT4_DIR GEANT4_DIR-NOTFOUND) +endif (GEANT4_INCLUDE_DIR AND GEANT4_LIBRARY_DIR) + +MESSAGE(STATUS "Looking for GEANT4...") + +FIND_PATH(GEANT4_DIR NAMES env.sh PATHS + ${SIMPATH}/transport/geant4 + ${SIMPATH}/transport/geant4/source + NO_DEFAULT_PATH +) + +FIND_PATH(GEANT4_INCLUDE_DIR NAMES G4Event.hh PATHS + ${SIMPATH}/transport/geant4/include + NO_DEFAULT_PATH +) + +SET(GEANT4_INCLUDE_DIR +${SIMPATH}/transport/geant4/include +${SIMPATH}/transport/geant4/source/interfaces/common/include +${SIMPATH}/transport/geant4/physics_lists/hadronic/Packaging/include +${SIMPATH}/transport/geant4/physics_lists/hadronic/QGSP/include +) + +FIND_PATH(GEANT4_LIB_DIR NAMES libG4baryons.so libG4baryons.dylib PATHS + ${SIMPATH}/transport/geant4/lib/Linux-g++ + ${SIMPATH}/transport/geant4/lib/Linux-icc + ${SIMPATH}/transport/geant4/lib + NO_DEFAULT_PATH +) + +IF (GEANT4_LIB_DIR) + SET(GEANT4_LIBRARY_DIR ${GEANT4_LIB_DIR}) +ENDIF (GEANT4_LIB_DIR) + +if (GEANT4_INCLUDE_DIR AND GEANT4_LIBRARY_DIR) + set(GEANT4_FOUND TRUE) +endif (GEANT4_INCLUDE_DIR AND GEANT4_LIBRARY_DIR) + +if (GEANT4_FOUND) + if (NOT GEANT4_FIND_QUIETLY) + MESSAGE(STATUS "Looking for GEANT4... - found ${GEANT4_LIBRARY_DIR}") +# message(STATUS "Found ${GEANT4_LIBRARY_DIR}") + endif (NOT GEANT4_FIND_QUIETLY) + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${GEANT4_LIBRARY_DIR}) +else (GEANT4_FOUND) + if (GEANT4_FIND_REQUIRED) + message(FATAL_ERROR "Looking for GEANT4... - Not found") + endif (GEANT4_FIND_REQUIRED) +endif (GEANT4_FOUND) + diff --git a/cmake/modules/FindGEANT4VMC.cmake b/cmake/modules/FindGEANT4VMC.cmake new file mode 100644 index 00000000000..5dec1b5ef28 --- /dev/null +++ b/cmake/modules/FindGEANT4VMC.cmake @@ -0,0 +1,97 @@ +# - Try to find GEANT4VMC +# Once done this will define +# +# GEANT4VMC_FOUND - system has GEANT3 +# GEANT4VMC_INCLUDE_DIR - the GEANT3 include directory +# GEANT4VMC_LIBRARIES - The libraries needed to use GEANT3 +# GEANT4VMC_DEFINITIONS - Compiler switches required for using GEANT3 +# + +if (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) + SET (GEANT4VMC_INCLUDE_DIR GEANT4VMC_INCLUDE_DIR-NOTFOUND) + SET (GEANT4VMC_LIB_DIR GEANT4VMC_LIB_DIR-NOTFOUND) + SET (GEANT4VMC_PLISTS_LIB_DIR GEANT4VMC_PLISTS_LIB_DIR-NOTFOUND) +endif (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) + +MESSAGE(STATUS "Looking for GEANT4VMC...") + +FIND_PATH(GEANT4VMC_INCLUDE_DIR NAMES TG4G3Units.h PATHS + ${SIMPATH}/transport/geant4_vmc/include + NO_DEFAULT_PATH +) + +set(GEANT4VMC_INCLUDE_DIR +${SIMPATH}/transport/geant4_vmc/source/global/include +${SIMPATH}/transport/geant4_vmc/source/geometry/include +${SIMPATH}/transport/geant4_vmc/source/digits+hits/include +${SIMPATH}/transport/geant4_vmc/source/physics/include +${SIMPATH}/transport/geant4_vmc/source/event/include +${SIMPATH}/transport/geant4_vmc/source/run/include +${SIMPATH}/transport/geant4_vmc/source/interfaces/include +${SIMPATH}/transport/geant4_vmc/source/visualization/include +${SIMPATH}/transport/geant4_vmc/include +${SIMPATH}/transport/vgm/packages/BaseVGM/include +${SIMPATH}/transport/vgm/packages/ClhepVGM/include +${SIMPATH}/transport/vgm/packages/Geant4GM/include +${SIMPATH}/transport/vgm/packages/RootGM/include +${SIMPATH}/transport/vgm/packages/VGM/include +${SIMPATH}/transport/vgm/packages/XmlVGM/include +) + + +FIND_PATH(GEANT4VMC_LIBRARY_DIR NAMES libgeant4vmc.so libgeant4vmc.dylib PATHS + ${SIMPATH}/transport/geant4_vmc/lib/tgt_linux + ${SIMPATH}/transport/geant4_vmc/lib/tgt_linuxicc + ${SIMPATH}/transport/geant4_vmc/lib/tgt_linuxx8664gcc + ${SIMPATH}/transport/geant4_vmc/lib + NO_DEFAULT_PATH +) + +# check for existence of header file, which is needed in CbmRunConfiguration +# The file is only present in old versions of VMC +FIND_FILE(GEANT4_MODULAR_PHYSICS_LIST TG4ModularPhysicsList.h PATHS + ${GEANT4VMC_INCLUDE_DIR} + NO_DEFAULT_PATH +) + +if (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) + if (NOT GEANT4VMC_FIND_QUIETLY) + MESSAGE(STATUS "Looking for GEANT4VMC... - found ${GEANT4VMC_LIBRARY_DIR}") + endif (NOT GEANT4VMC_FIND_QUIETLY) +else (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) + if (GEANT4VMC_FIND_REQUIRED) + message(FATAL_ERROR "Looking for GEANT4VMC... - Not found ") + endif (GEANT4VMC_FIND_REQUIRED) +endif (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) + + +MESSAGE(STATUS "Looking for VGM...") + +FIND_PATH(VGM_LIBRARY_DIR NAMES libBaseVGM.so libBaseVGM.dylib PATHS + ${SIMPATH}/transport/vgm/lib/Linux-g++ + ${SIMPATH}/transport/vgm.2.08.04/lib/Linux-g++ + ${SIMPATH}/transport/vgm/lib/Linux-icc + ${SIMPATH}/transport/vgm/lib + NO_DEFAULT_PATH +) + +if (VGM_LIBRARY_DIR) + if (NOT GEANT4VMC_FIND_QUIETLY) + MESSAGE(STATUS "Looking for VGM... - found ${VGM_LIBRARY_DIR}") + endif (NOT GEANT4VMC_FIND_QUIETLY) +else (VGM_LIBRARY_DIR) + if (GEANT4VMC_FIND_REQUIRED) + message(FATAL_ERROR "Looking for VGM... - Not found ") + endif (GEANT4VMC_FIND_REQUIRED) +endif (VGM_LIBRARY_DIR) + + +if (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR AND VGM_LIBRARY_DIR) + set(GEANT4VMC_FOUND TRUE) +endif (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR AND VGM_LIBRARY_DIR) + +if (GEANT4VMC_FOUND) + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${GEANT4VMC_LIBRARY_DIR} + ${VGM_LIBRARY_DIR}) +endif (GEANT4VMC_FOUND) + diff --git a/cmake/modules/FindGENERATORS.cmake b/cmake/modules/FindGENERATORS.cmake new file mode 100644 index 00000000000..d495b81062f --- /dev/null +++ b/cmake/modules/FindGENERATORS.cmake @@ -0,0 +1,58 @@ +# - Try to find PLUTO instalation +# Once done this will define +# +# GENERATORS_FOUND - system has PYTHIA5 and PYTHIA6 and VENUS +# GENERATORS_LIBRARY_DIR - The libraries directory for PYTHIA and VENUS +# + +if (GENERATORS_LIBRARY_DIR) + SET (GENERATORS_LIBRARY_DIR GENERATORS_LIBRARY_DIR-NOTFOUND) +endif (GENERATORS_LIBRARY_DIR) + +MESSAGE(STATUS "Looking for Pythia6...") + +FIND_PATH(PYTHIA6_LIBRARY_DIR NAMES libPythia6.so PATHS + ${SIMPATH}/generators/lib + NO_DEFAULT_PATH +) + +#FIND_PATH(TMP2_DIR NAMES libPythia.so PATHS +# /misc/cbmsoft/Debian3.1/new/generators/lib +# ${SIMPATH}/new/generators/lib +# NO_DEFAULT_PATH +#) + +#FIND_PATH(TMP3_DIR NAMES libVenus.so PATHS +# /misc/cbmsoft/Debian3.1/new/generators/lib +# ${SIMPATH}/new/generators/lib +# NO_DEFAULT_PATH +#) + +if (PYTHIA6_LIBRARY_DIR) + set(GENERATORS_FOUND TRUE) + set(GENERATORS_LIBRARY_DIR ${PYTHIA6_LIBRARY_DIR}) +endif(PYTHIA6_LIBRARY_DIR) + + +#if (TMP1_DIR AND TMP2_DIR AND TMP3_DIR) +# set(GENERATORS_FOUND TRUE) +# if (${TMP1_DIR} MATCHES ${TMP2_DIR} AND ${TMP1_DIR} MATCHES ${TMP3_DIR}) +# set(GENERATORS_LIBRARY_DIR ${TMP1_DIR}) +# else (${TMP1_DIR} MATCHES ${TMP2_DIR} AND ${TMP1_DIR} MATCHES ${TMP3_DIR}) +# set(GENERATORS_LIBRARY_DIR ${TMP1_DIR} ${TMP2_DIR} ${TMP3_DIR}) +# endif (${TMP1_DIR} MATCHES ${TMP2_DIR} AND ${TMP1_DIR} MATCHES ${TMP3_DIR}) +#endif (TMP1_DIR AND TMP2_DIR AND TMP3_DIR) + +if (GENERATORS_FOUND) + if (NOT GENERATORS_FIND_QUIETLY) + MESSAGE(STATUS "Looking for Pythia6... - found ${GENERATORS_LIBRARY_DIR}") +# message(STATUS "Found Generators: ${GENERATORS_LIBRARY_DIR}") + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${GENERATORS_LIBRARY_DIR}) + endif (NOT GENERATORS_FIND_QUIETLY) +else (GENERATORS_FOUND) + if (GENERATORS_FIND_REQUIRED) + message(FATAL_ERROR "Looking for Pythia6... - Not found") +# message(FATAL_ERROR "Could NOT find Pythia6") + endif (GENERATORS_FIND_REQUIRED) +endif (GENERATORS_FOUND) + diff --git a/cmake/modules/FindPLUTO.cmake b/cmake/modules/FindPLUTO.cmake new file mode 100644 index 00000000000..b06454c7d61 --- /dev/null +++ b/cmake/modules/FindPLUTO.cmake @@ -0,0 +1,46 @@ +# - Try to find PLUTO instalation +# Once done this will define +# +# PLUTO_FOUND - system has GEANT3 +# PLUTO_INCLUDE_DIR - the GEANT3 include directory +# PLUTO_LIBRARIES - The libraries needed to use GEANT3 +# PLUTO_DEFINITIONS - Compiler switches required for using GEANT3 +# + +if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES) + SET (PLUTO_INCLUDE_DIR PLUTO_INCLUDE_DIR-NOTFOUND) + SET (PLUTO_LIB PLUTO_LIB-NOTFOUND) + SET (PLUTO_DUMMY_LIB PLUTO_DUMMY_LIB-NOTFOUND) +endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES) + +MESSAGE(STATUS "Looking for Pluto...") + +FIND_PATH(PLUTO_INCLUDE_DIR NAMES PChannel.h PATHS + ${SIMPATH}/generators/pluto/src + ${SIMPATH}/generators/pluto + ${SIMPATH}/generators/pluto/include + NO_DEFAULT_PATH +) + +FIND_PATH(PLUTO_LIBRARY_DIR NAMES libPluto.so PATHS + ${SIMPATH}/generators/lib + ${SIMPATH}/generators/pluto + NO_DEFAULT_PATH +) + +if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR) + set(PLUTO_FOUND TRUE) +endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR) + +if (PLUTO_FOUND) + if (NOT PLUTO_FIND_QUIETLY) + MESSAGE(STATUS "Looking for Pluto... - found ${PLUTO_LIBRARY_DIR}") +# message(STATUS "Found PLUTO: ${PLUTO_LIBRARY_DIR}") + SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${PLUTO_LIBRARY_DIR}) + endif (NOT PLUTO_FIND_QUIETLY) +else (PLUTO_FOUND) + if (PLUTO_FIND_REQUIRED) + message(FATAL_ERROR "Looking for Pluto... - Not found") + endif (PLUTO_FIND_REQUIRED) +endif (PLUTO_FOUND) + diff --git a/cmake/modules/FindROOT.cmake b/cmake/modules/FindROOT.cmake new file mode 100644 index 00000000000..c567fcb79a0 --- /dev/null +++ b/cmake/modules/FindROOT.cmake @@ -0,0 +1,120 @@ +# -*- mode: cmake -*- +# - Finds ROOT instalation +# This module sets up ROOT information +# We suppose root-config to be in the PATH. Otherwise we stop. + +Find_program(ROOT_CONFIG root-config) + +If (${ROOT_CONFIG} MATCHES "ROOT_CONFIG-NOTFOUND") + Set(ROOT_FOUND FALSE) + Message(STATUS "Install Root and make sure it is in the PATH") + +Else (${ROOT_CONFIG} MATCHES "ROOT_CONFIG-NOTFOUND") + + Set(ROOT_FOUND TRUE) + + Execute_process( + COMMAND root-config --prefix + OUTPUT_VARIABLE ROOTSYS + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Execute_process( + COMMAND root-config --arch + OUTPUT_VARIABLE ALICE_TARGET + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Execute_process( + COMMAND root-config --f77 + OUTPUT_VARIABLE CMAKE_Fortran_COMPILER + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Execute_process( + COMMAND root-config --version + OUTPUT_VARIABLE ROOT_VERSION + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Execute_process( + COMMAND root-config --incdir + OUTPUT_VARIABLE ROOT_INCLUDE_DIR + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Execute_process( + COMMAND root-config --glibs + OUTPUT_VARIABLE ROOT_LIBRARIES + OUTPUT_STRIP_TRAILING_WHITESPACE) + + Find_program(ROOTCINT rootcint) + If(NOT ROOTCINT) + Message(FATAL_ERROR "Found ROOT but not rootcint, your ROOT installation is corrupted") + EndIf(NOT ROOTCINT) + + Set(ROOT_LIBRARIES ${ROOT_LIBRARIES} -lThread -lMinuit -lHtml -lVMC -lEG -lGeom -lTreePlayer -lXMLIO -lProof -lProofPlayer -lMLP -lSpectrum -lEve -lRGL -lGed) + Set(ROOT_LIBRARY_DIR ${ROOTSYS}/lib) + + # Make variables changeble to the advanced user + Mark_as_advanced(ROOT_LIBRARY_DIR ROOT_INCLUDE_DIR ROOT_DEFINITIONS) + + Set(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${ROOT_LIBRARY_DIR}) + + Message(STATUS "Found Root ${ROOT_VERSION} in ${ROOTSYS}/bin/root") + +# we need at least version 5.00/00 + If (NOT ROOT_MIN_VERSION) + Set(ROOT_MIN_VERSION "5.00/00") + Endif (NOT ROOT_MIN_VERSION) + + # now parse the parts of the user given version string into variables + String(REGEX REPLACE "^([0-9]+)\\.[0-9][0-9]+\\/[0-9][0-9]+" "\\1" req_root_major_vers "${ROOT_MIN_VERSION}") + String(REGEX REPLACE "^[0-9]+\\.([0-9][0-9])+\\/[0-9][0-9]+.*" "\\1" req_root_minor_vers "${ROOT_MIN_VERSION}") + String(REGEX REPLACE "^[0-9]+\\.[0-9][0-9]+\\/([0-9][0-9]+)" "\\1" req_root_patch_vers "${ROOT_MIN_VERSION}") + + # and now the version string given by qmake + String(REGEX REPLACE "^([0-9]+)\\.[0-9][0-9]+\\/[0-9][0-9]+.*" "\\1" found_root_major_vers "${ROOT_VERSION}") + String(REGEX REPLACE "^[0-9]+\\.([0-9][0-9])+\\/[0-9][0-9]+.*" "\\1" found_root_minor_vers "${ROOT_VERSION}") + String(REGEX REPLACE "^[0-9]+\\.[0-9][0-9]+\\/([0-9][0-9]+).*" "\\1" found_root_patch_vers "${ROOT_VERSION}") + + If (found_root_major_vers LESS 5) + Message(FATAL_ERROR "Invalid ROOT version \"${ROOT_VERSION}\", at least major version 4 is required, e.g. \"5.00/00\"") + Endif(found_root_major_vers LESS 5) + + # compute an overall version number which can be compared at once + Math(EXPR req_vers "${req_root_major_vers}*10000 + ${req_root_minor_vers}*100 + ${req_root_patch_vers}") + Math(EXPR found_vers "${found_root_major_vers}*10000 + ${found_root_minor_vers}*100 + ${found_root_patch_vers}") + + If (found_vers LESS req_vers) + Set(ROOT_FOUND FALSE) + Set(ROOT_INSTALLED_VERSION_TOO_OLD TRUE) + Else (found_vers LESS req_vers) + Set(ROOT_FOUND TRUE) + Endif (found_vers LESS req_vers) + +Endif (${ROOT_CONFIG} MATCHES "ROOT_CONFIG-NOTFOUND") + + +##################################################################################### + + +Macro(ROOT_GENERATE_DICTIONARY INFILES LINKDEF_FILE OUTFILE INCLUDE_DIRS_IN) + + Set(_special_settings "${ARGV4}") + Set(INCLUDE_DIRS) + Set(infiles_nopath) + + Foreach (_current_FILE ${INCLUDE_DIRS_IN}) + Set(INCLUDE_DIRS ${INCLUDE_DIRS} -I${_current_FILE}) + Endforeach (_current_FILE ${INCLUDE_DIRS_IN}) + + String(REGEX REPLACE "^(.*)\\.(.*)$" "\\1.h" bla "${OUTFILE}") + Set(OUTFILES ${OUTFILE} ${bla}) + + Foreach (_current_FILE ${INFILES}) + Get_filename_component(name_wo_path ${_current_FILE} NAME) + Set(infiles_nopath ${infiles_nopath} ${name_wo_path}) + Endforeach (_current_FILE ${INFILES}) + + Add_custom_command(OUTPUT ${OUTFILES} + COMMAND DYLD_LIBRARY_PATH=$ENV{DYLD_LIBRARY_PATH}:${ROOT_LIBRARY_DIR} ${ROOTCINT} + ARGS -f ${OUTFILE} -c -DHAVE_CONFIG_H ${_special_settings} ${INCLUDE_DIRS} ${infiles_nopath} ${LINKDEF_FILE} + DEPENDS ${INFILES} ${LINKDEF_FILE}) + +Endmacro(ROOT_GENERATE_DICTIONARY) diff --git a/cmake/modules/FindRuleChecker.cmake b/cmake/modules/FindRuleChecker.cmake new file mode 100644 index 00000000000..94d1e62fddc --- /dev/null +++ b/cmake/modules/FindRuleChecker.cmake @@ -0,0 +1,73 @@ +# -*- mode: cmake -*- + +# - Find IRST Code Analysis Tool (RuleChecker) +# Finds if the RuleChecker is installed and sets the following variables: +# +# RULE_CHECKER_FOUND = Boolean defining if Rule Checker is available +# RULE_CHECKER_PATH = Path to the java class containing the ALICE Rule Checker +# RULE_CHECKER = Rules (defaults to ALICE rules!) +# RULE_CHECKER_PATCH = Perl script to be executed to patch preprocessor files +# + +# We suppose that perl and java are present and working + +Find_File(RULE_CHECKER_PATCH patch4alice.prl + /usr/local/IRST/patch ${ALICE}/local/IRST/patch /opt/IRST/patch) + +If(RULE_CHECKER_PATCH) + Set(RULE_CHECKER_FOUND YES) + Set(RULE_CHECKER rules.ALICE.ALICERuleChecker) + String(REPLACE "/patch/patch4alice.prl" "" + RULE_CHECKER_PATH "${RULE_CHECKER_PATCH}") + +Else(RULE_CHECKER_PATCH) + Set(RULE_CHECKER_FOUND NO) + Message(STATUS "RuleChecker not installed on this system") + +EndIf(RULE_CHECKER_PATCH) + + +#_______________________________________________________________________________ +Function(CheckViols LIB SRCS) + + If(RULE_CHECKER_FOUND) + String(REGEX MATCHALL "[^ ]*.cxx" CXXSRCS "${SRCS}") + + Set(_checkDir "${CMAKE_CURRENT_BINARY_DIR}/check") + + If(NOT EXISTS ${_checkDir}) + File(MAKE_DIRECTORY ${_checkDir}) + EndIf(NOT EXISTS ${_checkDir}) + + Set(_inc_dirs) + Foreach(_dir ${INCLUDE_DIRECTORIES}) + Set(_inc_dirs ${_inc_dirs} -I${_dir}) + EndForeach(_dir ${INCLUDE_DIRECTORIES}) + + Set(VIOLS) + Foreach(_checkFile ${CXXSRCS}) + Get_Filename_Component(_checkFilePath ${_checkFile} PATH) + If(NOT EXISTS ${_checkDir}/${_checkFilePath}) + File(MAKE_DIRECTORY ${_checkDir}/${_checkFilePath}) + EndIf(NOT EXISTS ${_checkDir}/${_checkFilePath}) + String(REGEX REPLACE "([^;]*).cxx" "${_checkDir}/\\1.viol" _violFile "${_checkFile}") + String(REGEX REPLACE "([^;]*).cxx" "\\1.i" _tempFile_in ${_checkFile}) + Add_Custom_Command( + OUTPUT ${_violFile} + COMMAND ${CMAKE_CXX_COMPILER} + ARGS -E ${CMAKE_CXX_FLAGS} ${_inc_dirs} -I. ${CMAKE_CURRENT_SOURCE_DIR}/${_checkFile} > ${_tempFile_in} + COMMAND ${RULE_CHECKER_PATCH} ARGS ${_tempFile_in} + COMMAND CLASSPATH=${RULE_CHECKER_PATH} java ${RULE_CHECKER} + ARGS ${_tempFile_in} ${CMAKE_CURRENT_SOURCE_DIR} > ${_violFile} + DEPENDS ${_checkFile} + WORKING_DIRECTORY ${_checkDir}) + Set(VIOLS ${VIOLS} ${_violFile}) + EndForeach(_checkFile ${CXXSRCS}) + + Add_Custom_Target(check-${LIB} DEPENDS ${VIOLS}) + Add_Dependencies(check-all check-${LIB}) + + EndIf(RULE_CHECKER_FOUND) + +EndFunction (CheckViols) + diff --git a/cmake/modules/FindRuleChecker.cmake.ori b/cmake/modules/FindRuleChecker.cmake.ori new file mode 100644 index 00000000000..50aeebce8f7 --- /dev/null +++ b/cmake/modules/FindRuleChecker.cmake.ori @@ -0,0 +1,187 @@ +# -*- mode: cmake -*- + +# - Find IRST Code Analysis Tool (RuleChecker) +# This module finds if the RuleChecker is installed +# +# This code sets the following variables: +# +# RULE_CHECKER_FOUND = Boolean defining if Rule Checker is available +# RULE_CHECKER_PATH = Path to the java class containing the CBM Rule Checker +# RULE_CHECKER = Java class to executed +# RULE_CHECKER_PERL = Perl script to be executed to patch preprocessor files + + +# Check if Java and Perl are available. Both are nedded for the Rule +# checker. + +MESSAGE(STATUS "Looking for Java...") +find_package(Java) +IF(JAVA_RUNTIME) + MESSAGE(STATUS "Looking for Java... - found ${JAVA_RUNTIME} ") +ELSE(JAVA_RUNTIME) + MESSAGE(STATUS "Looking for Java... - not found") +ENDIF(JAVA_RUNTIME) + +MESSAGE(STATUS "Looking for Perl...") +find_package(Perl) +IF(PERL_FOUND) + MESSAGE(STATUS "Looking for Perl... - found ${PERL_EXECUTABLE} ") +ELSE(PERL_FOUND) + MESSAGE(STATUS "Looking for Perl... - not found") +ENDIF(PERL_FOUND) + +if (JAVA_RUNTIME AND PERL_FOUND) + + MESSAGE(STATUS "Looking for Rule Checker...") + + SET(PATH1) + IF($ENV{CLASSPATH}) + STRING(REGEX MATCHALL "[^:]+" PATH1 $ENV{CLASSPATH}) + ENDIF($ENV{CLASSPATH}) + SET(CHECK_DIRECTORIES ${SIMPATH}/tools/RuleChecker "${PATH1}") + + IF(CBMROOT_SOURCE_DIR) + SET(RULE_CHECKER_LIBRARY_DIRECTORIES) + FOREACH(dir ${CHECK_DIRECTORIES}) + SET(RULE_CHECKER_LIBRARY_DIRECTORIES + ${RULE_CHECKER_LIBRARY_DIRECTORIES} + ${dir}/rules/CBM + ) + ENDFOREACH(dir) + FIND_PATH(RULE_CHECKER_PATH CBMRuleChecker.class PATHS + ${RULE_CHECKER_LIBRARY_DIRECTORIES} + ) + SET(RULE_CHECKER rules.CBM.CBMRuleChecker) + ELSE(CBMROOT_SOURCE_DIR) + IF(PANDAROOT_SOURCE_DIR) + MESSAGE("HIER") + SET(RULE_CHECKER_LIBRARY_DIRECTORIES) + FOREACH(dir ${CHECK_DIRECTORIES}) + SET(RULE_CHECKER_LIBRARY_DIRECTORIES + ${RULE_CHECKER_LIBRARY_DIRECTORIES} + ${dir}/rules/PANDA + ) + ENDFOREACH(dir) + FIND_PATH(RULE_CHECKER_PATH PANDARuleChecker.class PATHS + ${RULE_CHECKER_LIBRARY_DIRECTORIES} + ) + SET(RULE_CHECKER rules.PANDA.PANDARuleChecker) + ELSE(PANDAROOT_SOURCE_DIR) + MESSAGE(STATUS "Looking for Rule Checker... - No Rules found") + ENDIF(PANDAROOT_SOURCE_DIR) + ENDIF(CBMROOT_SOURCE_DIR) + + SET(RULE_CHECKER_PERL_DIRECTORIES) + FOREACH(dir ${CHECK_DIRECTORIES}) + SET(RULE_CHECKER_PERL_DIRECTORIES + ${RULE_CHECKER_PERL_DIRECTORIES} + ${dir}/patch + ) + ENDFOREACH(dir) + + FIND_PATH(RULE_CHECKER_PERL_PATH patch4alice.prl PATHS + ${RULE_CHECKER_PERL_DIRECTORIES} + ) + + + IF (NOT RULE_CHECKER_PATH) + MESSAGE("Looking for Rule Checker... - Not found ") + SET(RULE_CHECKER_FOUND "NO") + ELSE (NOT RULE_CHECKER_PATH) + MESSAGE(STATUS "Looking for Rule Checker... - found ${RULE_CHECKER_PATH}") + SET(RULE_CHECKER_FOUND "YES") + SET(RULE_CHECKER_PERL ${RULE_CHECKER_PERL_PATH}/patch4alice.prl) + FIND_PATH(RULE_CHECKER_PATH1 rules PATHS + ${CHECK_DIRECTORIES} + ) + SET(RULE_CHECKER_SCRIPT_PATH ${RULE_CHECKER_PATH1}/scripts) + IF(CBMROOT_SOURCE_DIR) + SET(RULE_CHECKER_SCRIPT ${RULE_CHECKER_SCRIPT_PATH}/createCbmViolationTable.sh) + SET(RULE_CHECKER_SCRIPT1 ${RULE_CHECKER_SCRIPT_PATH}/createCbmViolationTable_html.sh) + ELSE(CBMROOT_SOURCE_DIR) + IF(PANDAROOT_SOURCE_DIR) + SET(RULE_CHECKER_SCRIPT ${RULE_CHECKER_SCRIPT_PATH}/createPandaViolationTable.sh) + SET(RULE_CHECKER_SCRIPT1 ${RULE_CHECKER_SCRIPT_PATH}/createPandaViolationTable_html.sh) + ELSE(PANDAROOT_SOURCE_DIR) + ENDIF(PANDAROOT_SOURCE_DIR) + ENDIF(CBMROOT_SOURCE_DIR) + + SET(NEW_CLASSPATH "${PATH1}" ${RULE_CHECKER_PATH1}) + UNIQUE(BLA "${NEW_CLASSPATH}") + SET(ENV{NEW_CLASSPATH} ${BLA}) + ENDIF (NOT RULE_CHECKER_PATH) + + SET(ENV{ALL_RULES} "") +endif (JAVA_RUNTIME AND PERL_FOUND) + + +########################################################################### + +MACRO(CHECK_RULES INFILES INCLUDE_DIRS_IN RULE_NAME) # _special_inc_dir) + + SET(_special_inc_dir "${ARGV3}") +# IF(${ARGC} EQUAL "4") +# MESSAGE("Arguments: ${ARGC}") +# MESSAGE("SPECIAL: ${_special_inc_dir}") +# ENDIF(${ARGC} EQUAL "4") + + SET(BLA $ENV{ALL_RULES}) + SET(BLA ${BLA} ${RULE_NAME}) + SET(ENV{ALL_RULES} "${BLA}") + +# MESSAGE("Create Rule Checker for ${RULE_NAME}") + + set(_INCLUDE_DIRS) + set(_all_files) + + foreach (_current_FILE ${INCLUDE_DIRS_IN}) + set(_INCLUDE_DIRS ${_INCLUDE_DIRS} -I${_current_FILE}) + endforeach (_current_FILE ${INCLUDE_DIRS_IN}) + +# MESSAGE("RULE_CHECKER: ${RULE_CHECKER}") + + foreach (_current_FILE ${INFILES}) + + STRING(REGEX REPLACE "^(.*)\\.(.*)$" "\\1.i" OUTFILE "${_current_FILE}") + STRING(REGEX REPLACE "^(.*)\\.(.*)$" "\\1.ii" OUTFILE1 "${_current_FILE}") + STRING(REGEX REPLACE "^(.*)\\.(.*)$" "\\1.h" HFILE "${_current_FILE}") + STRING(REGEX REPLACE "^(.*)\\.(.*)$" "\\1.viol" VIOLFILE "${_current_FILE}") + STRING(REGEX REPLACE "^(.*)\\/(.*)$" "\\1" RELPATH "${_current_FILE}") + + IF(NOT ${RELPATH} STREQUAL ${_current_FILE}) +# MESSAGE("RELPATH: ${RELPATH}") + SET(HEADERDIR ${CMAKE_CURRENT_SOURCE_DIR}/${RELPATH}) + STRING(REGEX REPLACE "^(.*)\\/(.*)$" "\\2" HFILE2 "${HFILE}") +# SET(HFILE ${HFILE2}) + STRING(REGEX REPLACE "^(.*)\\/(.*)$" "\\2" OUTFILE2 "${OUTFILE}") + SET(OUTFILE ${OUTFILE2}) + STRING(REGEX REPLACE "^(.*)\\/(.*)$" "\\2" OUTFILE2 "${OUTFILE1}") + SET(OUTFILE1 ${OUTFILE2}) + STRING(REGEX REPLACE "^(.*)\\/(.*)$" "\\2" VIOLFILE2 "${VIOLFILE}") + SET(VIOLFILE ${VIOLFILE2}) + IF(${ARGC} EQUAL "4") + SET(HEADERDIR ${CMAKE_CURRENT_SOURCE_DIR}/${RELPATH}/${_special_inc_dir}) + SET(HFILE ${CMAKE_CURRENT_SOURCE_DIR}/${RELPATH}/${_special_inc_dir}/${HFILE2}) +# MESSAGE(HEADERDIR: ${HEADERDIR}) + ENDIF(${ARGC} EQUAL "4") + ELSE(NOT ${RELPATH} STREQUAL ${_current_FILE}) + SET(HEADERDIR ${CMAKE_CURRENT_SOURCE_DIR}) + ENDIF(NOT ${RELPATH} STREQUAL ${_current_FILE}) + + SET(_current_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${_current_FILE}") + + ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${OUTFILE} ${CMAKE_CURRENT_BINARY_DIR}/${OUTFILE1} ${CMAKE_CURRENT_BINARY_DIR}/${VIOLFILE} + COMMAND g++ -E ${_INCLUDE_DIRS} -o ${OUTFILE} ${_current_FILE} + COMMAND ${RULE_CHECKER_PERL} ${OUTFILE} + COMMAND ${JAVA_RUNTIME} ${RULE_CHECKER} ${OUTFILE} ${HEADERDIR} > ${VIOLFILE} + DEPENDS ${_current_FILE} ${HFILE}) + + set(_all_files ${_all_files} ${CMAKE_CURRENT_BINARY_DIR}/${VIOLFILE}) + + endforeach (_current_FILE ${INFILES}) + + ADD_CUSTOM_TARGET(${RULE_NAME} + COMMAND touch ${CMAKE_BINARY_DIR}/${RULE_NAME} + DEPENDS ${_all_files}) + +ENDMACRO(CHECK_RULES) diff --git a/cmake/modules/Findfink.cmake b/cmake/modules/Findfink.cmake new file mode 100644 index 00000000000..697aa32c203 --- /dev/null +++ b/cmake/modules/Findfink.cmake @@ -0,0 +1,19 @@ +# -*- mode: cmake -*- +# - Finds fink instalation + +If(APPLE) + Find_program(FINK fink) + + If (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND") + Set(FINK_FOUND FALSE) + Message(SEND_ERROR "Could not find fink, will continue but probably fail...") + Set(FINK_ROOT "/usr/local") + Else (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND") + String(REPLACE "/bin/fink" "" FINK_ROOT ${FINK}) + Message(STATUS "Found fink in ${FINK_ROOT}") + EndIf (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND") + +Else(APPLE) + Message(FATAL "fink only needed on Mac, something is very wrong...") +Endif(APPLE) + diff --git a/cmake/modules/WriteConfigFile.cmake b/cmake/modules/WriteConfigFile.cmake new file mode 100644 index 00000000000..9462aa6401d --- /dev/null +++ b/cmake/modules/WriteConfigFile.cmake @@ -0,0 +1,187 @@ +MACRO (WRITE_CONFIG_FILE filename) + + IF(${filename} MATCHES "[.]csh") + SET(CSH_OUT TRUE) + ELSE(${filename} MATCHES "[.]csh") + SET(CSH_OUT FALSE) + ENDIF(${filename} MATCHES "[.]csh") + + IF(CMAKE_SYSTEM_NAME MATCHES Linux) + SET(LD_LIBRARY_PATH /usr/lib /usr/X11R6/lib ${CBMLIBDIR} ${LD_LIBRARY_PATH}) + ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) + IF(CMAKE_SYSTEM_NAME MATCHES Darwin) + SET(LD_LIBRARY_PATH ${CBMLIBDIR} ${LD_LIBRARY_PATH}) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Darwin) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux) + + WRITE_TO_FILE(${filename} SIMPATH ${SIMPATH} "") + WRITE_TO_FILE(${filename} ROOTSYS ${ROOTSYS} APPEND) + + IF (GEANT4_FOUND AND GEANT4VMC_FOUND AND CLHEP_FOUND) + CONVERT_LIST_TO_STRING(${GEANT4_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} GEANT4_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT4_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} GEANT4_INCLUDE_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT4VMC_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} GEANT4VMC_INCLUDE_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT4VMC_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} GEANT4VMC_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${CLHEP_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} CLHEP_INCLUDE_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${CLHEP_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} CLHEP_LIBRARY_DIR ${output} APPEND) + ENDIF (GEANT4_FOUND AND GEANT4VMC_FOUND AND CLHEP_FOUND) + + CONVERT_LIST_TO_STRING(${PLUTO_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} PLUTO_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${PLUTO_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} PLUTO_INCLUDE_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${PYTHIA6_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} PYTHIA6_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT3_SYSTEM_DIR}) + WRITE_TO_FILE(${filename} G3SYS ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT3_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} GEANT3_INCLUDE_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT3_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} GEANT3_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${GEANT3_LIBRARIES}) + WRITE_TO_FILE(${filename} GEANT3_LIBRARIES ${output} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} ROOT_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_LIBRARIES}) + WRITE_TO_FILE(${filename} ROOT_LIBRARIES ${output} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} ROOT_INCLUDE_DIR ${output} APPEND) + + WRITE_TO_FILE(${filename} VMCWORKDIR ${CMAKE_SOURCE_DIR} APPEND) + + WRITE_TO_FILE(${filename} CBMLIBDIR ${CBMLIBDIR} APPEND) + + CONVERT_LIST_TO_STRING(${LD_LIBRARY_PATH}) + IF(CMAKE_SYSTEM_NAME MATCHES Linux) + WRITE_TO_FILE(${filename} LD_LIBRARY_PATH ${output} APPEND) + ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) + IF(CMAKE_SYSTEM_NAME MATCHES Darwin) + WRITE_TO_FILE(${filename} DYLD_LIBRARY_PATH ${output} APPEND) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Darwin) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux) + + WRITE_TO_FILE(${filename} USE_VGM 1 APPEND) + +# STRING(REGEX MATCHALL "[^:]+" PATH1 ${PATH}) + SET (PATH ${ROOTSYS}/bin ${PATH}) + UNIQUE(PATH "${PATH}") + CONVERT_LIST_TO_STRING(${PATH}) + WRITE_TO_FILE(${filename} PATH ${output} APPEND) + + IF (GEANT4_FOUND AND GEANT4VMC_FOUND AND CLHEP_FOUND) + WRITE_FILE(${filename} ". ${GEANT4_DIR}/env.sh" APPEND) + ENDIF (GEANT4_FOUND AND GEANT4VMC_FOUND AND CLHEP_FOUND) + + IF(RULE_CHECKER_FOUND) + CONVERT_LIST_TO_STRING($ENV{NEW_CLASSPATH}) + WRITE_TO_FILE(${filename} CLASSPATH ${output} APPEND) + ENDIF(RULE_CHECKER_FOUND) + + + +ENDMACRO (WRITE_CONFIG_FILE) + + +MACRO (WRITE_MINIMAL_CONFIG_FILE filename) + + IF(${filename} MATCHES "[.]csh") + SET(CSH_OUT TRUE) + ELSE(${filename} MATCHES "[.]csh") + SET(CSH_OUT FALSE) + ENDIF(${filename} MATCHES "[.]csh") + + SET(CBMLIBDIR ${CMAKE_CURRENT_BINARY_DIR}/lib) + + IF(CMAKE_SYSTEM_NAME MATCHES Linux) + SET(LD_LIBRARY_PATH /usr/lib /usr/X11R6/lib ${CBMLIBDIR} ${LD_LIBRARY_PATH}) + ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) + IF(CMAKE_SYSTEM_NAME MATCHES Darwin) + SET(LD_LIBRARY_PATH ${CBMLIBDIR} ${LD_LIBRARY_PATH}) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Darwin) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux) + + WRITE_TO_FILE(${filename} ROOTSYS ${ROOTSYS} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_LIBRARY_DIR}) + WRITE_TO_FILE(${filename} ROOT_LIBRARY_DIR ${output} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_LIBRARIES}) + WRITE_TO_FILE(${filename} ROOT_LIBRARIES ${output} APPEND) + + CONVERT_LIST_TO_STRING(${ROOT_INCLUDE_DIR}) + WRITE_TO_FILE(${filename} ROOT_INCLUDE_DIR ${output} APPEND) + + WRITE_TO_FILE(${filename} VMCWORKDIR ${CMAKE_SOURCE_DIR} APPEND) + + WRITE_TO_FILE(${filename} CBMLIBDIR ${CBMLIBDIR} APPEND) + + CONVERT_LIST_TO_STRING(${LD_LIBRARY_PATH}) + IF(CMAKE_SYSTEM_NAME MATCHES Linux) + WRITE_TO_FILE(${filename} LD_LIBRARY_PATH ${output} APPEND) + ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) + IF(CMAKE_SYSTEM_NAME MATCHES Darwin) + WRITE_TO_FILE(${filename} DYLD_LIBRARY_PATH ${output} APPEND) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Darwin) + ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux) + +# STRING(REGEX MATCHALL "[^:]+" PATH1 ${PATH}) + SET (PATH ${ROOTSYS}/bin $ENV{PATH}) + UNIQUE(PATH "${PATH}") + CONVERT_LIST_TO_STRING(${PATH}) + WRITE_TO_FILE(${filename} PATH ${output} APPEND) + + +ENDMACRO (WRITE_MINIMAL_CONFIG_FILE) + + +MACRO (CONVERT_LIST_TO_STRING) + + set (tmp "") + foreach (_current ${ARGN}) + + set(tmp1 ${tmp}) + set(tmp "") + set(tmp ${tmp1}:${_current}) + + endforeach (_current ${ARGN}) + STRING(REGEX REPLACE "^:(.*)" "\\1" output ${tmp}) + +ENDMACRO (CONVERT_LIST_TO_STRING LIST) + +MACRO (WRITE_TO_FILE FILENAME ENVVARIABLE VALUE OPTION) + + IF(CSH_OUT) + WRITE_FILE(${FILENAME} "setenv ${ENVVARIABLE} \"${VALUE}\"" ${OPTION}) + ELSE(CSH_OUT) + WRITE_FILE(${FILENAME} "export ${ENVVARIABLE}=\"${VALUE}\"" ${OPTION}) + ENDIF(CSH_OUT) + +ENDMACRO (WRITE_TO_FILE) + + + + + + + + -- 2.39.3