-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
86 lines (74 loc) · 2.62 KB
/
CMakeLists.txt
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
###############################################################################
# (c) 2020 Copyright, Real-Time Innovations, Inc. (RTI) All rights reserved. #
# #
# RTI grants Licensee a license to use, modify, compile, and create #
# derivative works of the software solely for use with RTI Connext DDS. #
# Licensee may redistribute copies of the software provided that all such #
# copies are subject to this license. #
# The software is provided "as is", with no warranty of any type, including #
# any warranty for fitness for any purpose. RTI is under no obligation to #
# maintain or support the software. RTI shall not be liable for any #
# incidental or consequential damages arising out of the use or inability to #
# use the software. #
# #
###############################################################################
cmake_minimum_required (VERSION 3.10)
project (RTIConnextGateway VERSION 7.3.0)
include(resource/cmake/CommonFunctions.cmake)
rtigw_init_globals()
# Configure third-party
add_subdirectory("${THIRD_PARTY_DIR}")
# Adding adapters
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_MODBUS
PREFIX "RTI_MODBUS"
STAGING_DIR "modbus"
PLUGIN_DIR_NAME "modbus"
PLUGIN_TYPE "ADAPTER"
)
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_MQTT
PREFIX "RTI_MQTT"
STAGING_DIR "mqtt"
PLUGIN_DIR_NAME "mqtt"
PLUGIN_TYPE "ADAPTER"
)
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_KAFKA
PREFIX "RTI_KAFKA"
STAGING_DIR "kafka"
PLUGIN_DIR_NAME "kafka"
PLUGIN_TYPE "ADAPTER"
)
# Adding processors
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_FWD
PREFIX "RTI_PRCS_FWD"
STAGING_DIR "fwd"
PLUGIN_DIR_NAME "fwd"
PLUGIN_TYPE "PROCESSOR"
)
# Adding transformations
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_TSFM_FIELD
PREFIX "RTI_TSFM_FIELD"
STAGING_DIR "tsfm_field"
PLUGIN_DIR_NAME "field"
PLUGIN_TYPE "TRANSFORMATION"
)
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_TSFM_JSON
PREFIX "RTI_TSFM_JSON"
STAGING_DIR "tsfm_json"
PLUGIN_DIR_NAME "json"
PLUGIN_TYPE "TRANSFORMATION"
)
rtigw_add_plugin(
ENABLE_PLUGIN RTIGATEWAY_ENABLE_TSFM_SEQUENCE2ARRAY
PREFIX "RTI_TSFM_SEQUENCE2ARRAY"
STAGING_DIR "tsfm_sequence2array"
PLUGIN_DIR_NAME "sequence2array"
PLUGIN_TYPE "TRANSFORMATION"
)
# Add doc if exists
rtigw_add_doc()