]>
Commit | Line | Data |
---|---|---|
4ff59d5b | 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}/TOF/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}/STEER/ESD | |
24 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
25 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
26 | ) | |
27 | ||
28 | ||
29 | # DIM | |
30 | link_directories(${DIMDIR}/${ODIR}) | |
31 | ||
32 | #daqDA flags | |
33 | include_directories(${daqDA}) | |
34 | link_directories(${daqDA}) | |
35 | ||
36 | # AMORE definitions | |
37 | add_definitions(${AMORE_DEFINITIONS}) | |
38 | include_directories(${AMORE_INCLUDE_DIR}) | |
39 | ||
40 | # Generating the DA executable | |
41 | add_executable(TOFcalibda TOFcalibda.cxx) # 1 | |
42 | add_executable(TOFda TOFda.cxx) # 2 | |
43 | add_executable(TOFnoiseda TOFnoiseda.cxx) # 3 | |
44 | add_executable(TOFphysicsda TOFphysicsda.cxx) # 4 | |
45 | add_executable(TOFpulserda TOFpulserda.cxx) # 5 | |
46 | ||
47 | set(MODULE_COMPILE_FLAGS) | |
48 | set(MODULE_LINK_FLAGS) | |
49 | ||
50 | target_link_libraries(TOFcalibda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 1 | |
51 | target_link_libraries(TOFda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2 | |
52 | target_link_libraries(TOFnoiseda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3 | |
53 | target_link_libraries(TOFphysicsda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 4 | |
54 | target_link_libraries(TOFpulserda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 5 | |
55 | ||
56 | # different flags | |
57 | set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS} ${AMORE_CFLAGS}") | |
58 | set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}") | |
59 | ||
60 | set_target_properties(TOFcalibda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
61 | set_target_properties(TOFcalibda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
62 | ||
63 | set_target_properties(TOFda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
64 | set_target_properties(TOFda PMDPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
65 | ||
66 | set_target_properties(TOFnoiseda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
67 | set_target_properties(TOFnoiseda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
68 | ||
69 | set_target_properties(TOFphysicsda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
70 | set_target_properties(TOFphysicsda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
71 | ||
72 | set_target_properties(TOFpulserda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
73 | set_target_properties(TOFpulserda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
74 | ||
75 | # Installation | |
76 | install(TARGETS TOFcalibda | |
77 | TOFda | |
78 | TOFnoiseda | |
79 | TOFphysicsda | |
80 | TOFpulserda | |
81 | RUNTIME DESTINATION bin) |