]>
Commit | Line | Data |
---|---|---|
bb9124d0 | 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}/PMD/DA) | |
18 | ||
19 | # Additional include folders in alphabetical order | |
20 | include_directories( | |
21 | ${AliRoot_SOURCE_DIR}/PMD/PMDrec | |
22 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase | |
23 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec | |
24 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatasim | |
25 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
26 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
27 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
28 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
29 | ) | |
30 | ||
31 | ||
32 | # DIM | |
33 | link_directories(${DIMDIR}/${ODIR}) | |
34 | ||
35 | #daqDA flags | |
36 | include_directories(${daqDA}) | |
37 | link_directories(${daqDA}) | |
38 | ||
39 | # AMORE definitions | |
40 | add_definitions(${AMORE_DEFINITIONS}) | |
41 | include_directories(${AMORE_INCLUDE_DIR}) | |
42 | ||
43 | # Generating the DA executable | |
44 | add_executable(PMDGAINda PMDGAINda.cxx) # 1 | |
45 | add_executable(PMDPEDESTALda PMDPEDESTALda.cxx) # 2 | |
46 | ||
c2f9135f | 47 | # Da information |
48 | ||
bb9124d0 | 49 | set(MODULE_COMPILE_FLAGS) |
50 | set(MODULE_LINK_FLAGS) | |
51 | ||
52 | target_link_libraries(PMDGAINda CDB-static PMDrec-static RAWDatarec-static STEERBase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 1 | |
53 | target_link_libraries(PMDPEDESTALda CDB-static PMDrec-static RAWDatarec-static STEERBase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2 | |
54 | ||
55 | # different flags | |
68aeb13b | 56 | set(MODULE_COMPILE_FLAGS " ${DATE_CFLAGS} ${AMORE_CFLAGS}") |
bb9124d0 | 57 | set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}") |
58 | ||
59 | set_target_properties(PMDGAINda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
60 | set_target_properties(PMDGAINda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
61 | ||
62 | set_target_properties(PMDPEDESTALda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) | |
63 | set_target_properties(PMDPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
64 | ||
65 | # Installation | |
c2f9135f | 66 | install(TARGETS PMDGAINda RUNTIME DESTINATION bin COMPONENT PMDGAIN) |
67 | install(TARGETS PMDPEDESTALda RUNTIME DESTINATION bin COMPONENT PMDPEDESTAL) | |
68 | ||
69 | if(DARPM) | |
70 | createDArpm("PMD" "GAIN") | |
71 | createDArpm("PMD" "PEDESTAL") | |
72 | endif(DARPM) |