Fixes for object target dependencies
[u/mrichter/AliRoot.git] / TPC / 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}/TPC/DA)
18
19 # Additional include folders in alphabetical order
20 include_directories(
21                     ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
22                     ${AliRoot_SOURCE_DIR}/STEER/STEERBase
23                     ${AliRoot_SOURCE_DIR}/TPC/TPCbase
24                    )
25
26
27 # DIM
28 link_directories(${DIMDIR}/${ODIR})
29
30 #daqDA flags
31 include_directories(${daqDA})
32 link_directories(${daqDA})
33
34 # AMORE definitions
35 add_definitions(${AMORE_DEFINITIONS})
36 include_directories(${AMORE_INCLUDE_DIR})
37
38 # Generating the DA executable
39 add_executable(TPCCEda TPCCEda.cxx) #1
40 add_executable(TPCCEnewda TPCCEnewda.cxx) #2
41 add_executable(TPCPEDESTALda TPCPEDESTALda.cxx) #3
42 add_executable(TPCPULSERda TPCPULSERda.cxx) #4
43 add_executable(TPCQAda TPCQAda.cxx) #5
44 add_executable(TPCRAWda TPCRAWda.cxx) #6
45
46 set(MODULE_COMPILE_FLAGS)
47 set(MODULE_LINK_FLAGS)
48
49 target_link_libraries(TPCCEda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} RootExtra Root) # 1
50 target_link_libraries(TPCCEnewda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2
51 target_link_libraries(TPCPEDESTALda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3
52 target_link_libraries(TPCPULSERda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 4
53 target_link_libraries(TPCQAda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 5
54 target_link_libraries(TPCRAWda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 6
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(TPCCEda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 1
61 set_target_properties(TPCCEda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 1
62
63 set_target_properties(TPCCEnewda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 2
64 set_target_properties(TPCCEnewda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 2
65
66 set_target_properties(TPCPEDESTALda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 3
67 set_target_properties(TPCPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 3
68
69 set_target_properties(TPCPULSERda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 4
70 set_target_properties(TPCPULSERda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 4
71
72 set_target_properties(TPCQAda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 5
73 set_target_properties(TPCQAda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 5
74
75 set_target_properties(TPCRAWda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 6
76 set_target_properties(TPCRAWda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 6
77
78
79 # Installation
80 install(TARGETS 
81                 TPCCEda
82                 TPCCEnewda
83                 TPCPEDESTALda
84                 TPCPULSERda
85                 TPCQAda
86                 TPCRAWda
87         RUNTIME DESTINATION bin)