-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
244 lines (219 loc) · 10.5 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
cmake_minimum_required(VERSION 3.15)
project(DESproject)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++0x")
find_package(Qt5 COMPONENTS Core Quick Gui Multimedia WaylandCompositor REQUIRED)
find_package(PythonLibs REQUIRED)
include_directories(
${PYTHON_INCLUDE_DIRS}
)
include_directories(
~/build-commonapi/capicxx-core-runtime/include
~/build-commonapi/capicxx-someip-runtime/include
~/build-commonapi/vsomeip/interface
)
link_directories(
~/build-commonapi/capicxx-core-runtime/build
~/build-commonapi/capicxx-someip-runtime/build
~/build-commonapi/vsomeip/build
)
include_directories(
src-gen/CANSender/core/common
src-gen/CANSender/core/proxy
src-gen/CANSender/core/skel
src-gen/CANSender/core/stub
src-gen/CANSender/someip/common
src-gen/CANSender/someip/proxy
src-gen/CANSender/someip/stub
src-gen/PiracerSender/core/common
src-gen/PiracerSender/core/proxy
src-gen/PiracerSender/core/skel
src-gen/PiracerSender/core/stub
src-gen/PiracerSender/someip/common
src-gen/PiracerSender/someip/proxy
src-gen/PiracerSender/someip/stub
src-gen/PiracerController/core/common
src-gen/PiracerController/core/proxy
src-gen/PiracerController/core/skel
src-gen/PiracerController/core/stub
src-gen/PiracerController/someip/common
src-gen/PiracerController/someip/proxy
src-gen/PiracerController/someip/stub
src-gen/IPCManager/core/common
src-gen/IPCManager/core/proxy
src-gen/IPCManager/core/skel
src-gen/IPCManager/core/stub
src-gen/IPCManager/someip/common
src-gen/IPCManager/someip/proxy
src-gen/IPCManager/someip/stub
src-gen/InstrumentCluster/core/common
src-gen/InstrumentCluster/core/proxy
src-gen/InstrumentCluster/core/skel
src-gen/InstrumentCluster/core/stub
src-gen/InstrumentCluster/someip/common
src-gen/InstrumentCluster/someip/proxy
src-gen/InstrumentCluster/someip/stub
src-gen/HeadUnit/core/common
src-gen/HeadUnit/core/proxy
src-gen/HeadUnit/core/skel
src-gen/HeadUnit/core/stub
src-gen/HeadUnit/someip/common
src-gen/HeadUnit/someip/proxy
src-gen/HeadUnit/someip/stub
src-gen/PDCUnit/core/common
src-gen/PDCUnit/core/proxy
src-gen/PDCUnit/core/skel
src-gen/PDCUnit/core/stub
src-gen/PDCUnit/someip/common
src-gen/PDCUnit/someip/proxy
src-gen/PDCUnit/someip/stub
src-gen/IVICompositor/core/common
src-gen/IVICompositor/core/proxy
src-gen/IVICompositor/core/skel
src-gen/IVICompositor/core/stub
src-gen/IVICompositor/someip/common
src-gen/IVICompositor/someip/proxy
src-gen/IVICompositor/someip/stub
src-gen/RemoteSpeaker/core/common
src-gen/RemoteSpeaker/core/proxy
src-gen/RemoteSpeaker/core/skel
src-gen/RemoteSpeaker/core/stub
src-gen/RemoteSpeaker/someip/common
src-gen/RemoteSpeaker/someip/proxy
src-gen/RemoteSpeaker/someip/stub
)
set(SOMEIP_PROXY_PATH someip/proxy/v1/commonapi/)
set(SOMEIP_DEPLOYMENT_PATH someip/common/v1/commonapi/)
set(SOMEIP_STUBADAPTER_PATH someip/stub/v1/commonapi/)
add_executable(CANSender
src/CANSender/CANSender.cpp
src/CANSender/ReadCANThread.c
src/CANSender/SpeedBuffer.c
src/CANSender/DistanceBuffer.c
src/CANSender/SendSomeipThread.cpp
src/CANSender/CANSenderStubImpl.cpp
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/CANSender/${SOMEIP_STUBADAPTER_PATH}/CANSenderSomeIPStubAdapter.cpp
src-gen/CANSender/${SOMEIP_DEPLOYMENT_PATH}/CANSenderSomeIPDeployment.cpp
)
target_link_libraries(CANSender CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(PiracerSender
src/PiracerSender/PiracerSender.cpp
src/PiracerSender/PiracerClass.cpp
src/PiracerSender/PiracerSenderStubImpl.cpp
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/PiracerSender/${SOMEIP_STUBADAPTER_PATH}/PiracerSenderSomeIPStubAdapter.cpp
src-gen/PiracerSender/${SOMEIP_DEPLOYMENT_PATH}/PiracerSenderSomeIPDeployment.cpp
)
target_link_libraries(PiracerSender ${PYTHON_LIBRARIES} CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(PiracerController
src/PiracerController/PiracerController.cpp
src/PiracerController/PiracerControllerStubImpl.cpp
src/PiracerController/ControllerClass.cpp
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/PiracerController/${SOMEIP_STUBADAPTER_PATH}/PiracerControllerSomeIPStubAdapter.cpp
src-gen/PiracerController/${SOMEIP_DEPLOYMENT_PATH}/PiracerControllerSomeIPDeployment.cpp
)
target_link_libraries(PiracerController ${PYTHON_LIBRARIES} CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(IPCManager
src/IPCManager/IPCManager.cpp
src/IPCManager/IPCManagerStubImpl.cpp
src/IPCManager/IPCManagerSenderClass.cpp
src/IPCManager/PiracerClass.cpp
src-gen/CANSender/${SOMEIP_PROXY_PATH}/CANSenderSomeIPProxy.cpp
src-gen/CANSender/${SOMEIP_DEPLOYMENT_PATH}/CANSenderSomeIPDeployment.cpp
src-gen/PiracerSender/${SOMEIP_PROXY_PATH}/PiracerSenderSomeIPProxy.cpp
src-gen/PiracerSender/${SOMEIP_DEPLOYMENT_PATH}/PiracerSenderSomeIPDeployment.cpp
src-gen/PiracerController/${SOMEIP_PROXY_PATH}/PiracerControllerSomeIPProxy.cpp
src-gen/PiracerController/${SOMEIP_DEPLOYMENT_PATH}/PiracerControllerSomeIPDeployment.cpp
src-gen/InstrumentCluster/${SOMEIP_PROXY_PATH}/InstrumentClusterSomeIPProxy.cpp
src-gen/InstrumentCluster/${SOMEIP_DEPLOYMENT_PATH}/InstrumentClusterSomeIPDeployment.cpp
src-gen/HeadUnit/${SOMEIP_PROXY_PATH}/HeadUnitSomeIPProxy.cpp
src-gen/HeadUnit/${SOMEIP_DEPLOYMENT_PATH}/HeadUnitSomeIPDeployment.cpp
src-gen/PDCUnit/${SOMEIP_PROXY_PATH}/PDCUnitSomeIPProxy.cpp
src-gen/PDCUnit/${SOMEIP_DEPLOYMENT_PATH}/PDCUnitSomeIPDeployment.cpp
src-gen/IVICompositor/${SOMEIP_PROXY_PATH}/IVICompositorSomeIPProxy.cpp
src-gen/IVICompositor/${SOMEIP_DEPLOYMENT_PATH}/IVICompositorSomeIPDeployment.cpp
src-gen/RemoteSpeaker/${SOMEIP_PROXY_PATH}/RemoteSpeakerSomeIPProxy.cpp
src-gen/RemoteSpeaker/${SOMEIP_DEPLOYMENT_PATH}/RemoteSpeakerSomeIPDeployment.cpp
src-gen/IPCManager/${SOMEIP_STUBADAPTER_PATH}/IPCManagerSomeIPStubAdapter.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
)
target_link_libraries(IPCManager ${PYTHON_LIBRARIES} CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(InstrumentCluster
src/InstrumentCluster/InstrumentCluster.cpp
src/InstrumentCluster/InstrumentClusterStubImpl.cpp
src/InstrumentCluster/InstrumentClusterSenderClass.cpp
src/InstrumentCluster/InstrumentClusterQtClass.cpp
src/InstrumentCluster/qml.qrc
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/InstrumentCluster/${SOMEIP_STUBADAPTER_PATH}/InstrumentClusterSomeIPStubAdapter.cpp
src-gen/InstrumentCluster/${SOMEIP_DEPLOYMENT_PATH}/InstrumentClusterSomeIPDeployment.cpp
)
target_compile_definitions(InstrumentCluster
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(InstrumentCluster
PRIVATE Qt5::Core Qt5::Quick Qt5::Gui CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(HeadUnit
src/HeadUnit/HeadUnit.cpp
src/HeadUnit/HeadUnitStubImpl.cpp
src/HeadUnit/HeadUnitQtClass.cpp
src/HeadUnit/HeadUnitSenderClass.cpp
src/HeadUnit/qml.qrc
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/HeadUnit/${SOMEIP_STUBADAPTER_PATH}/HeadUnitSomeIPStubAdapter.cpp
src-gen/HeadUnit/${SOMEIP_DEPLOYMENT_PATH}/HeadUnitSomeIPDeployment.cpp
)
target_compile_definitions(HeadUnit
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(HeadUnit
PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Multimedia CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(PDCUnit
src/PDCUnit/PDCUnit.cpp
src/PDCUnit/PDCUnitStubImpl.cpp
src/PDCUnit/PDCUnitQtClass.cpp
src/PDCUnit/PDCUnitSenderClass.cpp
src/PDCUnit/qml.qrc
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/PDCUnit/${SOMEIP_STUBADAPTER_PATH}/PDCUnitSomeIPStubAdapter.cpp
src-gen/PDCUnit/${SOMEIP_DEPLOYMENT_PATH}/PDCUnitSomeIPDeployment.cpp
)
target_compile_definitions(PDCUnit
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(PDCUnit
PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Multimedia CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(IVICompositor
src/IVICompositor/IVICompositor.cpp
src/IVICompositor/IVICompositorStubImpl.cpp
src/IVICompositor/IVICompositorQtClass.cpp
src/IVICompositor/qml.qrc
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/IVICompositor/${SOMEIP_STUBADAPTER_PATH}/IVICompositorSomeIPStubAdapter.cpp
src-gen/IVICompositor/${SOMEIP_DEPLOYMENT_PATH}/IVICompositorSomeIPDeployment.cpp
)
target_compile_definitions(IVICompositor
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(IVICompositor
PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Multimedia Qt5::WaylandCompositor CommonAPI CommonAPI-SomeIP vsomeip3)
add_executable(RemoteSpeaker
src/RemoteSpeaker/RemoteSpeaker.cpp
src/RemoteSpeaker/RemoteSpeakerStubImpl.cpp
src/RemoteSpeaker/DataBuffer.cpp
src-gen/IPCManager/${SOMEIP_PROXY_PATH}/IPCManagerSomeIPProxy.cpp
src-gen/IPCManager/${SOMEIP_DEPLOYMENT_PATH}/IPCManagerSomeIPDeployment.cpp
src-gen/RemoteSpeaker/${SOMEIP_STUBADAPTER_PATH}/RemoteSpeakerSomeIPStubAdapter.cpp
src-gen/RemoteSpeaker/${SOMEIP_DEPLOYMENT_PATH}/RemoteSpeakerSomeIPDeployment.cpp
)
target_link_libraries(RemoteSpeaker CommonAPI CommonAPI-SomeIP vsomeip3)