Fixes for object target dependencies
[u/mrichter/AliRoot.git] / MUON / DA / CMakeLists.txt
CommitLineData
4ed13d45 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}/MUON/DA)
18
19# Additional include folders in alphabetical order
20include_directories(
c55bd1a6 21 ${AliRoot_SOURCE_DIR}/MUON/MUONcalib
22 ${AliRoot_SOURCE_DIR}/MUON/MUONcore
23 ${AliRoot_SOURCE_DIR}/MUON/MUONmapping
24 ${AliRoot_SOURCE_DIR}/MUON/MUONraw
25 ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
26 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
27 ${AliRoot_SOURCE_DIR}/STEER/ESD
28 ${AliRoot_SOURCE_DIR}/STEER/STEER
29 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
4ed13d45 30 )
31
32
33# DIM
34link_directories(${DIMDIR}/${ODIR})
35
36#daqDA flags
37include_directories(${daqDA})
38link_directories(${daqDA})
39
40# AMORE definitions
41add_definitions(${AMORE_DEFINITIONS})
42include_directories(${AMORE_INCLUDE_DIR})
43
44# Generating the DA executable
45add_executable(MUONTRGda MUONTRGda.cxx)
46add_executable(MUONTRKGAINda MUONTRKGAINda.cxx)
47add_executable(MUONTRKOCCda MUONTRKOCCda.cxx)
48add_executable(MUONTRKPEDda MUONTRKPEDda.cxx)
49
50set(MODULE_COMPILE_FLAGS)
51set(MODULE_LINK_FLAGS)
52
53target_link_libraries(MUONTRGda MUONraw MUONcalib MUONraw MUONcore MUONmapping RAWDatarec RAWDatarecOnline ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra)
54target_link_libraries(MUONTRKGAINda MUONsim MUONshuttle MUONraw MUONmapping MUONcore MUONcalib HLTrec RAWDatarecOnline RAWDatarec ESD STEERBase ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra)
55target_link_libraries(MUONTRKOCCda MUONraw MUONmapping MUONcore MUONcalib RAWDatarecOnline RAWDatarec RAWDatabase STEERBase ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra)
56target_link_libraries(MUONTRKPEDda HLTrec MUONsim MUONshuttle MUONraw MUONmapping MUONcore MUONcalib RAWDatarecOnline RAWDatarec ESD STEERBase ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra)
57
58# different flags
68aeb13b 59set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS} ${AMORE_CFLAGS}")
4ed13d45 60set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}")
61
62set_target_properties(MUONTRGda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
63set_target_properties(MUONTRGda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
64
65set_target_properties(MUONTRKGAINda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
66set_target_properties(MUONTRKGAINda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
67
68set_target_properties(MUONTRKOCCda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
69set_target_properties(MUONTRKOCCda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
70
71set_target_properties(MUONTRKPEDda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS})
72set_target_properties(MUONTRKPEDda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}")
73
74# Installation
75install(TARGETS MUONTRGda MUONTRKGAINda MUONTRKOCCda MUONTRKPEDda RUNTIME DESTINATION bin)