Fixes for object target dependencies
[u/mrichter/AliRoot.git] / TRD / DA / CMakeLists.txt
CommitLineData
13269fe5 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
17include_directories(${AliRoot_SOURCE_DIR}/TRD/DA)
18
19# Additional include folders in alphabetical order
20include_directories(
21 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
22 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
23 ${AliRoot_SOURCE_DIR}/TPC/TPCbase
24 )
25
26
27# DIM
28link_directories(${DIMDIR}/${ODIR})
29
30#daqDA flags
31include_directories(${daqDA})
32link_directories(${daqDA})
33
34# AMORE definitions
35add_definitions(${AMORE_DEFINITIONS})
36include_directories(${AMORE_INCLUDE_DIR})
37
38# Generating the DA executable
39add_executable(TRDHALFCHAMBERSTATUSda TRDHALFCHAMBERSTATUSda.cxx) #1
40add_executable(TRDPEDESTALda TRDPEDESTALda.cxx) #2
41add_executable(TRDVDRIFTda TRDVDRIFTda.cxx) #3
42
43target_link_libraries(TRDHALFCHAMBERSTATUSda CDB-static RAWDatarec-static STEERBase-static TRDbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 1
44target_link_libraries(TRDPEDESTALda CDB-static RAWDatarec-static STEERBase-static TRDbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2
45target_link_libraries(TRDVDRIFTda RAWDatarec-static STEERBase-static TRDbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3
46
47set(MODULE_COMPILE_FLAGS)
48set(MODULE_LINK_FLAGS)
49
50# different flags
68aeb13b 51set(MODULE_COMPILE_FLAGS " ${DATE_CFLAGS} ${AMORE_CFLAGS}")
13269fe5 52set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}")
53
54set_target_properties(TRDHALFCHAMBERSTATUSda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 1
55set_target_properties(TRDHALFCHAMBERSTATUSda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 1
56
57set_target_properties(TRDPEDESTALda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 2
58set_target_properties(TRDPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 2
59
60set_target_properties(TRDVDRIFTda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 3
61set_target_properties(TRDVDRIFTda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 3
62
63# Installation
64install(TARGETS
65 TRDHALFCHAMBERSTATUSda
66 TRDPEDESTALda
67 TRDVDRIFTda
68 RUNTIME DESTINATION bin)