forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
67 lines (59 loc) · 3.01 KB
/
Copy pathCMakeLists.txt
File metadata and controls
67 lines (59 loc) · 3.01 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
# Copyright CERN and copyright holders of ALICE O2. This software is distributed
# under the terms of the GNU General Public License v3 (GPL Version 3), copied
# verbatim in the file "COPYING".
#
# See http://alice-o2.web.cern.ch/license for full licensing information.
#
# 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.
o2_add_library(FLP2EPNex_distributed
SOURCES src/FLPSyncSampler.cxx src/FLPSender.cxx
src/EPNReceiver.cxx
PUBLIC_LINK_LIBRARIES O2::Device)
o2_add_executable(flp-sync-sampler
SOURCES run/runFLPSyncSampler.cxx
PUBLIC_LINK_LIBRARIES O2::FLP2EPNex_distributed
COMPONENT_NAME example)
o2_add_executable(flp-sender
SOURCES run/runFLPSender.cxx
PUBLIC_LINK_LIBRARIES O2::FLP2EPNex_distributed
COMPONENT_NAME example)
o2_add_executable(epn-receiver
SOURCES run/runEPNReceiver.cxx
PUBLIC_LINK_LIBRARIES O2::FLP2EPNex_distributed
COMPONENT_NAME example)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/run/startFLP2EPN-distributed.sh.in
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/o2-start-flp2epn-distributed.sh)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/test/testFLP2EPN-distributed.sh.in
${CMAKE_BINARY_DIR}/Examples/flp2epn-distributed/test/o2-test-flp2epn-distributed.sh
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run/flp2epn-prototype.json
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-prototype.json)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/run/flp2epn-prototype-dds.json
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-prototype-dds.json)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run/flp2epn-dds-topology.xml
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-dds-topology.xml
@ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run/flp2epn-dds-hosts.cfg
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-dds-hosts.cfg
COPYONLY)
# add_test_wrap(NAME run_flp2epn_distributed COMMAND
# ${CMAKE_BINARY_DIR}/Examples/flp2epn-distributed/test/testFLP2EPN-
# distributed.sh) set_tests_properties(run_flp2epn_distributed PROPERTIES
# TIMEOUT "30") set_tests_properties(run_flp2epn_distributed PROPERTIES
# PASS_REGULAR_EXPRESSION "acknowledged after")
install(
FILES
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/o2-start-flp2epn-distributed.sh
${CMAKE_BINARY_DIR}/Examples/flp2epn-distributed/test/o2-test-flp2epn-distributed.sh
DESTINATION ${CMAKE_INSTALL_BINDIR})
install(
FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-prototype.json
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-prototype-dds.json
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-dds-topology.xml
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/config/flp2epn-dds-hosts.cfg
DESTINATION ${CMAKE_INSTALL_DATADIR}/config)