-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
88 lines (72 loc) · 3.14 KB
/
CMakeLists.txt
File metadata and controls
88 lines (72 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
# This software is distributed under the terms of the GNU General Public
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
#
# In applying this license CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
# FIXME: the LinkDef should not be in the public area
o2_add_library(DataSampling
SOURCES src/DataSampling.cxx
src/DataSamplingConditionFactory.cxx
src/DataSamplingHeader.cxx
src/DataSamplingConditionCustom.cxx
src/DataSamplingConditionNConsecutive.cxx
src/DataSamplingConditionPayloadSize.cxx
src/DataSamplingConditionRandom.cxx
src/DataSamplingHeader.cxx
src/DataSamplingPolicy.cxx
src/DataSamplingReadoutAdapter.cxx
src/Dispatcher.cxx
PUBLIC_LINK_LIBRARIES O2::Framework)
#o2_target_root_dictionary(
# Mergers
# HEADERS include/Mergers/MergeInterface.h
# include/Mergers/CustomMergeableObject.h
# include/Mergers/CustomMergeableTObject.h
# LINKDEF include/Mergers/LinkDef.h)
# tests with input data
o2_data_file(COPY test/test_DataSampling.json test/test_DataSamplingEmpty.json DESTINATION tests)
o2_add_test(DataSampling NAME test_DataSampling_test_DataSampling
SOURCES test/test_DataSampling.cxx
COMPONENT_NAME DataSampling
LABELS datasampling
PUBLIC_LINK_LIBRARIES O2::DataSampling
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage)
foreach(t
DataSamplingCondition
DataSamplingHeader
DataSamplingPolicy
)
# FIXME ? The NAME parameter of o2_add_test is only needed to help the current
# o2.sh recipe. If the recipe is changed, those params can go away, if needed.
o2_add_test(${t} NAME test_DataSampling_test_${t}
SOURCES test/test_${t}.cxx
COMPONENT_NAME DataSampling
LABELS datasampling
PUBLIC_LINK_LIBRARIES O2::DataSampling)
endforeach()
o2_data_file(COPY etc/exampleDataSamplingConfig.json DESTINATION etc)
o2_add_executable(standalone
SOURCES src/dataSamplingStandalone.cxx
COMPONENT_NAME DataSampling
PUBLIC_LINK_LIBRARIES O2::Framework O2::DataSampling)
o2_add_executable(datasampling-pod-and-root
SOURCES test/dataSamplingPodAndRoot.cxx
COMPONENT_NAME DataSampling
PUBLIC_LINK_LIBRARIES O2::Framework O2::DataSampling)
o2_add_executable(datasampling-parallel
SOURCES test/dataSamplingParallel.cxx
COMPONENT_NAME DataSampling
PUBLIC_LINK_LIBRARIES O2::Framework O2::DataSampling)
o2_add_executable(datasampling-time-pipeline
SOURCES test/dataSamplingTimePipeline.cxx
COMPONENT_NAME DataSampling
PUBLIC_LINK_LIBRARIES O2::Framework O2::DataSampling)
o2_add_executable(datasampling-benchmark
SOURCES test/dataSamplingBenchmark.cxx
COMPONENT_NAME DataSampling
PUBLIC_LINK_LIBRARIES O2::Framework O2::DataSampling)