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