1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
7 # * Permission to use, copy, modify and distribute this software and its *
8 # * documentation strictly for non-commercial purposes is hereby granted *
9 # * without fee, provided that the above copyright notice appears in all *
10 # * copies and that both the copyright notice and this permission notice *
11 # * appear in the supporting documentation. The authors make no claims *
12 # * about the suitability of this software for any purpose. It is *
13 # * provided "as is" without express or implied warranty. *
14 # **************************************************************************/
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PWG/EMCAL)
22 # Additional includes - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIRS}
24 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
25 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
26 ${AliRoot_SOURCE_DIR}/TENDER/Tender
27 ${AliRoot_SOURCE_DIR}/TENDER/TenderSupplies
28 ${AliRoot_SOURCE_DIR}/EMCAL/EMCALbase
29 ${AliRoot_SOURCE_DIR}/EMCAL/EMCALrec
30 ${AliRoot_SOURCE_DIR}/EMCAL/EMCALUtils
31 ${AliRoot_SOURCE_DIR}/PWG/Tools
32 ${AliRoot_SOURCE_DIR}/STEER/AOD
33 ${AliRoot_SOURCE_DIR}/STEER/CDB
34 ${AliRoot_SOURCE_DIR}/STEER/ESD
35 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
36 ${AliRoot_SOURCE_DIR}/STEER/STEER
39 # Sources - alphabetical order
41 AliAnalysisTaskEMCALClusterizeFast.cxx
42 AliAnalysisTaskEmcal.cxx
43 AliAnalysisTaskEmcalSample.cxx
44 AliClusterContainer.cxx
45 AliEMCALClusterParams.cxx
46 AliEmcalAodTrackFilterTask.cxx
47 AliEmcalClusTrackMatcherTask.cxx
48 AliEmcalClusterMaker.cxx
49 AliEmcalCompatTask.cxx
52 AliEmcalEsdTrackFilterTask.cxx
53 AliEmcalMCTrackSelector.cxx
55 AliEmcalParticleMaker.cxx
56 AliEmcalPatchFromCellMaker.cxx
57 AliEmcalPhysicsSelection.cxx
58 AliEmcalPhysicsSelectionTask.cxx
59 AliEmcalPicoTrackMaker.cxx
61 AliEmcalTenderTask.cxx
62 AliEmcalTrackingQATask.cxx
63 AliEmcalTrackPropagatorTask.cxx
64 AliEmcalTriggerBitConfig.cxx
65 AliEmcalTriggerMaker.cxx
66 AliEmcalTriggerPatchInfo.cxx
67 AliEmcalTriggerSetupInfo.cxx
71 AliParticleContainer.cxx
73 AliEMCALConfiguration.cxx
74 AliEMCALConfigHandler.cxx
75 AliEMCALConfigurationMatcher.cxx
76 AliEmcalTriggerDecision.cxx
77 AliEmcalTriggerDecisionContainer.cxx
78 AliEmcalTriggerSelectionCuts.cxx
79 AliEmcalTriggerSelection.cxx
80 AliAnalysisTaskEmcalTriggerSelection.cxx
83 # Headers from sources
84 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
86 # Generate the dictionary
87 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
88 get_directory_property(incdirs INCLUDE_DIRECTORIES)
89 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
91 # Add a shared library
92 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
94 # Generate the ROOT map
96 set(LIBDEPS ANALYSIS ANALYSISalice AOD CDB EMCALrec EMCALUtils ESD PWGTools STEER STEERBase Tender)
97 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
100 target_link_libraries(${MODULE} ${LIBDEPS})
102 # Public include folders that will be propagated to the dependecies
103 target_include_directories(${MODULE} PUBLIC ${incdirs})
105 # System dependent: Modify the way the library is build
106 if(${CMAKE_SYSTEM} MATCHES Darwin)
107 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
108 endif(${CMAKE_SYSTEM} MATCHES Darwin)
111 install(TARGETS ${MODULE}
112 ARCHIVE DESTINATION lib
113 LIBRARY DESTINATION lib)
114 install(FILES ${HDRS} DESTINATION include)
116 # Installing the macros
117 install (DIRECTORY macros DESTINATION PWG/EMCAL)
118 install (DIRECTORY data DESTINATION PWG/EMCAL)