b3ea0d60e39b660a1c9c5ced923e2f89ff3f0ee7
[u/mrichter/AliRoot.git] / ITS / DA / CMakeLists.txt
1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
3 # *                                                                        *
4 # * Author: The ALICE Off-line Project.                                    *
5 # * Contributors are mentioned in the code where appropriate.              *
6 # *                                                                        *
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 # **************************************************************************
15
16 # Module include folder
17 include_directories(${AliRoot_SOURCE_DIR}/HMPID/DA)
18
19 # Additional include folders in alphabetical order
20 include_directories(
21                     ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
22                     ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
23                     ${AliRoot_SOURCE_DIR}/ITS/ITSbase
24                     ${AliRoot_SOURCE_DIR}/ITS/ITSrec
25                     ${AliRoot_SOURCE_DIR}/STEER/CDB
26                     ${AliRoot_SOURCE_DIR}/STEER/ESD
27                     ${AliRoot_SOURCE_DIR}/STEER/STEERBase
28                    )
29
30
31 # DIM
32 link_directories(${DIMDIR}/${ODIR})
33
34 #daqDA flags
35 include_directories(${daqDA})
36 link_directories(${daqDA})
37
38 # AMORE definitions
39 add_definitions(${AMORE_DEFINITIONS})
40 include_directories(${AMORE_INCLUDE_DIR})
41
42 # Generating the DA executable
43 add_executable(ITSSDDBASda ITSSDDBASda.cxx) # 1
44 add_executable(ITSSDDGAINda ITSSDDGAINda.cxx) # 2
45 add_executable(ITSSDDINJda ITSSDDINJda.cxx) # 3
46 add_executable(ITSSPDFOda ITSSPDFOda.cxx) # 4
47 add_executable(ITSSPDPHYSda ITSSPDPHYSda.cxx) # 5
48 add_executable(ITSSPDSCANda ITSSPDSCANda.cxx) # 6
49 add_executable(ITSSPDVertexDiamondda ITSSPDVertexDiamondda.cxx) # 7
50 add_executable(ITSSSDPEDda ITSSSDPEDda.cxx) # 8
51
52 set(MODULE_COMPILE_FLAGS)
53 set(MODULE_LINK_FLAGS)
54
55 target_link_libraries(ITSSDDBASda ITSbase ITSrec RAWDatarec ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 1
56 target_link_libraries(ITSSDDGAINda ITSrec-static ITSbase-static RAWDatarec-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2
57 target_link_libraries(ITSSDDINJda ITSrec-static ITSbase-static RAWDatarec-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3
58 target_link_libraries(ITSSPDFOda ITSrec-static ITSbase-static RAWDatarec-static STEERBase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 4
59 target_link_libraries(ITSSPDPHYSda ITSrec-static ITSbase-static RAWDatarec-static STEERBase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 5
60 target_link_libraries(ITSSPDSCANda ITSrec-static ITSbase-static RAWDatarec-static STEERBase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 6
61 target_link_libraries(ITSSPDVertexDiamondda ITSrec-static RAWDatarec-static STEERBase-static CDB-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 7
62 target_link_libraries(ITSSSDPEDda ITSbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 8
63
64 # different flags
65 set(MODULE_COMPILE_FLAGS "  ${DATE_CFLAGS} ${AMORE_CFLAGS}")
66 set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}")
67
68 # 1
69 set_target_properties(ITSSDDBASda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
70 set_target_properties(ITSSDDBASda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
71
72 # 2
73 set_target_properties(ITSSDDGAINda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
74 set_target_properties(ITSSDDGAINda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
75
76 # 3
77 set_target_properties(ITSSDDINJda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
78 set_target_properties(ITSSDDINJda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
79
80 # 4
81 set_target_properties(ITSSPDFOda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
82 set_target_properties(ITSSPDFOda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
83
84 # 5
85 set_target_properties(ITSSPDPHYSda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
86 set_target_properties(ITSSPDPHYSda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
87
88 # 6
89 set_target_properties(ITSSPDSCANda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
90 set_target_properties(ITSSPDSCANda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
91
92 # 7
93 set_target_properties(ITSSPDVertexDiamondda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
94 set_target_properties(ITSSPDVertexDiamondda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
95
96 # 8
97 set_target_properties(ITSSSDPEDda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
98 set_target_properties(ITSSSDPEDda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
99
100
101 # Installation
102 install(TARGETS ITSSDDBASda
103                 ITSSDDGAINda
104                 ITSSDDINJda
105                 ITSSPDFOda
106                 ITSSPDPHYSda
107                 ITSSPDSCANda
108                 ITSSPDVertexDiamondda
109                 ITSSSDPEDda
110                             RUNTIME DESTINATION bin)