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