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