]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/DA/CMakeLists.txt
Resolving all symbols in each library
[u/mrichter/AliRoot.git] / TOF / DA / CMakeLists.txt
CommitLineData
4ff59d5b 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}/TOF/DA)
18
19# Additional include folders in alphabetical order
20include_directories(
4ff59d5b 21 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
4ff59d5b 22 ${AliRoot_SOURCE_DIR}/STEER/STEER
a1226e32 23 ${AliRoot_SOURCE_DIR}/TOF/TOFbase
4ff59d5b 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(TOFcalibda TOFcalibda.cxx) # 1
40add_executable(TOFda TOFda.cxx) # 2
41add_executable(TOFnoiseda TOFnoiseda.cxx) # 3
42add_executable(TOFphysicsda TOFphysicsda.cxx) # 4
43add_executable(TOFpulserda TOFpulserda.cxx) # 5
44
45set(MODULE_COMPILE_FLAGS)
46set(MODULE_LINK_FLAGS)
47
48target_link_libraries(TOFcalibda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 1
49target_link_libraries(TOFda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2
50target_link_libraries(TOFnoiseda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3
51target_link_libraries(TOFphysicsda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 4
52target_link_libraries(TOFpulserda RAWDatarec-static STEERBase-static TOFbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 5
53
54# different flags
68aeb13b 55set(MODULE_COMPILE_FLAGS " ${DATE_CFLAGS} ${AMORE_CFLAGS}")
4ff59d5b 56set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}")
57
58set_target_properties(TOFcalibda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
59set_target_properties(TOFcalibda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
60
61set_target_properties(TOFda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
62set_target_properties(TOFda PMDPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
63
64set_target_properties(TOFnoiseda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
65set_target_properties(TOFnoiseda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
66
67set_target_properties(TOFphysicsda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
68set_target_properties(TOFphysicsda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
69
70set_target_properties(TOFpulserda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
71set_target_properties(TOFpulserda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
72
73# Installation
74install(TARGETS TOFcalibda
75 TOFda
76 TOFnoiseda
77 TOFphysicsda
78 TOFpulserda
79 RUNTIME DESTINATION bin)