PHOS - Fixing circular dependecies + initial DA files
[u/mrichter/AliRoot.git] / PHOS / DA / CMakeLists.txt
CommitLineData
00d82de9 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}/PHOS/DA)
18
19# Additional include folders in alphabetical order
20include_directories(
21 ${AliRoot_SOURCE_DIR}/PHOS/PHOSbase
22 ${AliRoot_SOURCE_DIR}/PHOS/PHOSshuttle
23 ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
24 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
25 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
26 )
27
28
29# DIM
30link_directories(${DIMDIR}/${ODIR})
31
32#daqDA flags
33include_directories(${daqDA})
34link_directories(${daqDA})
35
36# AMORE definitions
37add_definitions(${AMORE_DEFINITIONS})
38include_directories(${AMORE_INCLUDE_DIR})
39
40# Generating the DA executable
41add_executable(PHOSBCMda PHOSBCMda.cxx) # 1
42add_executable(PHOSGAINda PHOSGAINda.cxx) # 2
43add_executable(PHOSLEDda PHOSLEDda.cxx) # 3
44add_executable(PHOSPEDda PHOSPEDda.cxx) # 4
45
46set(MODULE_COMPILE_FLAGS)
47set(MODULE_LINK_FLAGS)
48
49target_link_libraries(PHOSBCMda PHOSbase-static PHOSshuttle-static RAWDatabase-static RAWDatarec-static STEERBase-static ${DATE_MONLIBRARIES} daqDA Root RootExtra ${DATE_RCPROXYLIBRARIES}) # 1
50target_link_libraries(PHOSGAINda PHOSbase-static PHOSshuttle-static RAWDatabase-static RAWDatarec-static STEERBase-static AmoreDA daqDA ${DATE_MONLIBRARIES} Root RootExtra ${DATE_RCPROXYLIBRARIES}) # 2
51target_link_libraries(PHOSLEDda PHOSbase-static PHOSshuttle-static RAWDatabase-static RAWDatarec-static STEERBase-static AmoreDA daqDA ${DATE_MONLIBRARIES} Root RootExtra ${DATE_RCPROXYLIBRARIES}) # 3
52target_link_libraries(PHOSPEDda RAWDatabase-static RAWDatarec-static STEERBase-static AmoreDA daqDA ${DATE_MONLIBRARIES} Root RootExtra ${DATE_RCPROXYLIBRARIES}) # 4
53
54# different flags
55set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS} ${AMORE_CFLAGS}")
56set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS} ${AMORE_AUXLIBS}")
57
58set_target_properties(PHOSBCMda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
59set_target_properties(PHOSBCMda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
60
61set_target_properties(PHOSGAINda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
62set_target_properties(PHOSGAINda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
63
64set_target_properties(PHOSLEDda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
65set_target_properties(PHOSLEDda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
66
67set_target_properties(PHOSPEDda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
68set_target_properties(PHOSPEDda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
69
70# Installation
71install(TARGETS PHOSBCMda PHOSGAINda PHOSLEDda PHOSPEDda RUNTIME DESTINATION bin)