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