CMakeLists.txt 5.53 KB
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
dino's avatar
dino committed
2 3 4

PROJECT(femul)

5 6
# Type of build
set(CMAKE_BUILD_TYPE "Release")
dino's avatar
dino committed
7

8
# Where FIND_PACKAGE should search "non-distribution" FindXxxx.cmake
9 10
set(CMAKE_MODULE_PATH  ".")

11 12
# Select the off-line version of the actors
ADD_DEFINITIONS(-DNRV_TYPE=NRV_OFFLINE)
dino's avatar
dino committed
13

14
# Enable root
dino's avatar
dino committed
15
ADD_DEFINITIONS(-DTRF_ROOTTREE)
16
FIND_PACKAGE(ROOT)
17 18
MESSAGE("Root Dirs: ${ROOT_INCLUDE_DIR}  ${ROOT_LIBRARY_DIR}")
MESSAGE("Root Libs: ${ROOT_LIBRARIES}")
19

20 21
# Find Boost
FIND_PACKAGE(Boost)
22
MESSAGE("Boost Dirs: ${Boost_INCLUDE_DIR} ${Boost_LIBRARY_DIRS}")
dino's avatar
dino committed
23
SET(BOOST_LIBRARIES "-L${Boost_LIBRARY_DIRS} -lboost_system -lboost_thread") 
24
MESSAGE("Boost Libs: ${BOOST_LIBRARIES}")
dino's avatar
dino committed
25

26
# For the vectorized version of the PSA FOM-loop
27 28
ADD_DEFINITIONS(-DUSE_SSE_VERSION)
SET(CMAKE_CXX_FLAGS "-msse4")
29 30

# The sources to build femul
31 32 33 34 35
SET(AGADIR "../..")
SET(ADFDIR "${AGADIR}/agaprodep/adf")
SET(ACTORS "${AGADIR}/agapro")
SET(PRISMA "${AGADIR}/agapro/PRISMA/src/lib_prisma")
SET(FEMDIR "${AGADIR}/agapro/WinCtest")
dino's avatar
 
dino committed
36

dino's avatar
dino committed
37
INCLUDE_DIRECTORIES(
38
${ACTORS}/WinCtest
dino's avatar
dino committed
39 40 41
${ACTORS}/common
${ACTORS}/producers/Crystal      ${ACTORS}/producers/Crystal/includeATCA
${ACTORS}/producers/AncillaryTCP
42
${ACTORS}/filters/Preprocessing
dino's avatar
dino committed
43 44
${ACTORS}/filters/Ancillary      ${ACTORS}/filters/Ancillary/includeVME
${ACTORS}/filters/PSA            ${ACTORS}/filters/PSA/includePSA
45 46
${ACTORS}/filters/PostPSA
${ACTORS}/filters/Global
dino's avatar
dino committed
47 48
${ACTORS}/filters/Tracking       ${ACTORS}/filters/Tracking/includeOFT  ${ACTORS}/filters/Tracking/includeMGT
${ACTORS}/builders
49
${AGADIR}/include
dino's avatar
dino committed
50
${PRISMA}/include
51 52
${Boost_INCLUDE_DIR}
${ROOT_INCLUDE_DIR}
53
/usr/include/skstream-0.3        /usr/lib/skstream-0.3/include
dino's avatar
dino committed
54 55 56 57 58 59
)

SET(actors_SRCS
${ACTORS}/common/cycleServer.cpp
${ACTORS}/common/misc.cpp
${ACTORS}/common/mwdlib.cpp
60
${ACTORS}/common/adetParams.cpp
61
${ACTORS}/common/TstampFilter.cpp
62
${ACTORS}/common/MixFFT.cpp
dino's avatar
dino committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76
${ACTORS}/producers/Crystal/CrystalProducer.cpp
${ACTORS}/producers/Crystal/CrystalProducerATCA.cpp
${ACTORS}/producers/Crystal/includeATCA/mezzanine.cpp
${ACTORS}/producers/Crystal/includeATCA/fileATCA.cpp
${ACTORS}/producers/AncillaryTCP/AncillaryProducerTCP.cpp
${ACTORS}/filters/Preprocessing/PreprocessingFilter.cpp
${ACTORS}/filters/Preprocessing/PreprocessingFilterPSA.cpp
${ACTORS}/filters/Ancillary/AncillaryFilter.cpp
${ACTORS}/filters/Ancillary/AncillaryFilterVME.cpp
${ACTORS}/filters/Ancillary/AncillaryFilterATCA.cpp 
${ACTORS}/filters/Ancillary/includeVME/Converter.cpp
${ACTORS}/filters/PSA/PSAFilter.cpp
${ACTORS}/filters/PSA/PSAFilterGridSearch.cpp
${ACTORS}/filters/PSA/includePSA/SignalBasis.cpp
77 78
${ACTORS}/filters/PostPSA/PostPSAFilter.cpp
${ACTORS}/filters/Global/GlobalFilter.cpp
dino's avatar
dino committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
${ACTORS}/filters/Tracking/TrackingFilter.cpp
${ACTORS}/filters/Tracking/TrackingFilterOFT.cpp
${ACTORS}/filters/Tracking/TrackingFilterMGT.cpp
${ACTORS}/filters/Tracking/includeOFT/tracking_cluster.c
${ACTORS}/filters/Tracking/includeOFT/tracking_data_manip.c
${ACTORS}/filters/Tracking/includeOFT/tracking_events.c
${ACTORS}/filters/Tracking/includeOFT/tracking_physics.c
${ACTORS}/filters/Tracking/includeOFT/tracking_utilitaires.c
${ACTORS}/filters/Tracking/includeMGT/mgt.c
${ACTORS}/filters/Tracking/includeMGT/mgt_eclust.c
${ACTORS}/filters/Tracking/includeMGT/mgt_etrack.c
${ACTORS}/filters/Tracking/includeMGT/mgt_event.c
${ACTORS}/filters/Tracking/includeMGT/mgt_geoagata.c
${ACTORS}/filters/Tracking/includeMGT/mgt_vectorlib.c
${ACTORS}/builders/EventBuilder.cpp
94
${ACTORS}/builders/EventQueue.cpp
dino's avatar
dino committed
95
)
96
SET_SOURCE_FILES_PROPERTIES(${actors_SRCS} PROPERTIES LANGUAGE CXX)
dino's avatar
dino committed
97 98

SET(adf_SRCS
99
${ADFDIR}/ADFCentralLog.cpp
dino's avatar
dino committed
100
${ADFDIR}/ADFConfig.cpp
101 102
${ADFDIR}/ADFLogCollector.cpp
${ADFDIR}/ADFLogMessage.cpp
dino's avatar
dino committed
103 104 105 106 107 108 109 110 111 112 113 114
${ADFDIR}/AgataConfigurationFrame.cpp
${ADFDIR}/AgataFrameFactory.cpp
${ADFDIR}/AgataKeyFactory.cpp
${ADFDIR}/AgataRawFrame.cpp
${ADFDIR}/BaseBuffer.cpp
${ADFDIR}/BufferIO.cpp
${ADFDIR}/CompositeFrame.cpp
${ADFDIR}/ConfAgent.cpp
${ADFDIR}/ConfigurationFrame.cpp
${ADFDIR}/Counter.cpp
${ADFDIR}/CrystalFrame.cpp
${ADFDIR}/DataHandling.cpp
115
${ADFDIR}/DefaultFrameFactory.cpp
dino's avatar
dino committed
116
${ADFDIR}/DefaultKeyFactory.cpp
117 118
${ADFDIR}/DFAgent.cpp
${ADFDIR}/DotConf.cpp
dino's avatar
dino committed
119 120 121 122 123 124 125 126 127 128 129
${ADFDIR}/FactoryItem.cpp
${ADFDIR}/Frame.cpp
${ADFDIR}/FrameBlock.cpp
${ADFDIR}/FrameFactory.cpp
${ADFDIR}/FrameIO.cpp
${ADFDIR}/GObject.cpp
${ADFDIR}/Hits.cpp
${ADFDIR}/Key.cpp
${ADFDIR}/KeyFactory.cpp
${ADFDIR}/MetaFrame.cpp
${ADFDIR}/NarvalInterface.cpp
130
${ADFDIR}/RunAgent.cpp
dino's avatar
dino committed
131 132 133 134
${ADFDIR}/Signals.cpp
${ADFDIR}/Trigger.cpp
${ADFDIR}/Version.cpp
${ADFDIR}/BasicAFC.cpp
135
${ADFDIR}/BasicAFP.cpp
dino's avatar
dino committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
)

SET(PRISMA_SRCS
${PRISMA}/src/prismaManager.cc
${PRISMA}/src/banGate.cc
${PRISMA}/src/banManager.cc
${PRISMA}/src/calCoef.cc
${PRISMA}/src/calManager.cc
${PRISMA}/src/CGaspBuffer.cc
${PRISMA}/src/ConfigurationFile.cc
${PRISMA}/src/detData.cc 
${PRISMA}/src/fastSolver.cc
${PRISMA}/src/fullEvent.cc
${PRISMA}/src/massCalculator.cc
${PRISMA}/src/prismaIonCh.cc
${PRISMA}/src/prismaMcp.cc
${PRISMA}/src/prismaPPAC.cc
${PRISMA}/src/prismaSide.cc
${PRISMA}/src/RandomGenerator.cc
${PRISMA}/src/Vectors.cc
${PRISMA}/src/zedCalculator.cc
)

159
SET(femul_SRCS  ${FEMDIR}/femul.cpp ${FEMDIR}/ChainOfActors.cpp ${adf_SRCS}  ${actors_SRCS}  ${PRISMA_SRCS} )
160

161
#SET(LINK_DIRECTORIES ${Boost_LIBRARY_DIRS} ${ROOT_LIBRARY_DIR})
162
#MESSAGE("LINK_DIRECTORIES: ${LINK_DIRECTORIES}")
163
#LINK_DIRECTORIES( ${LINK_DIRECTORIES})
164

dino's avatar
dino committed
165
SET(LINK_LIBRARIES ${BOOST_LIBRARIES} ${ROOT_LIBRARIES})
166 167 168 169 170
#MESSAGE("LINK_LIBRARIES: ${LINK_LIBRARIES}")

ADD_EXECUTABLE(femul ${femul_SRCS})

TARGET_LINK_LIBRARIES(femul ${LINK_LIBRARIES})
dino's avatar
dino committed
171