-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
220 lines (209 loc) · 6.26 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
##---------------------------------------------------------------------------
## Author: Dave Register
## ***************************************************************************
## * Copyright (C) 2010 by David S. Register *
## * This program is free software; you can redistribute it and/or modify *
## * it under the terms of the GNU General Public License as published by *
## * the Free Software Foundation; either version 2 of the License, or *
## * (at your option) any later version. *
## * *
## * This program is distributed in the hope that it will be useful, *
## * but WITHOUT ANY WARRANTY; without even the implied warranty of *
## * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
## * GNU General Public License for more details. *
## * *
## * You should have received a copy of the GNU General Public License *
## * along with this program; if not, write to the *
## * Free Software Foundation, Inc., *
## * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
## ***************************************************************************
# define minimum cmake version and backward compatibility policy
# Set as per Ubuntu 18.04.4LTS as reference
CMAKE_MINIMUM_REQUIRED(VERSION 3.10.1)
# Ignore COMPILE_DEFINITIONS_<Config> properties:
CMAKE_POLICY(SET CMP0043 NEW)
PROJECT(dashboard_tactics_pi)
SET(PACKAGE_NAME dashboard_tactics_pi)
SET(VERBOSE_NAME DashT)
SET(TITLE_NAME DashT)
SET(CPACK_PACKAGE_CONTACT "[email protected]")
INCLUDE(CTest)
INCLUDE("cmake/PluginConfigure.cmake")
SET(SRC_DASHT
src/dashboard_pi.h
src/DashboardConfig.cpp
src/DashboardFunctions.h
src/DashboardFunctions.cpp
src/DashboardWindow.h
src/DashboardWindowContainer.h
src/DashboardWindow.h
src/DashboardWindow.cpp
src/AddInstrumentDlg.h
src/AddInstrumentDlg.cpp
src/DashboardInstrumentContainer.h
src/DashboardInstrumentContainer.cpp
src/DashboardPreferencesDialog.h
src/DashboardPreferencesDialog.cpp
src/dashboard_pi.cpp
src/instrument.cpp
src/instrument.h
src/iirfilter.h
src/iirfilter.cpp
src/compass.cpp
src/compass.h
src/dial.cpp
src/dial.h
src/gps.cpp
src/gps.h
src/rudder_angle.cpp
src/rudder_angle.h
src/speedometer.cpp
src/speedometer.h
src/wind.cpp
src/wind.h
src/depth.cpp
src/depth.h
src/clock.cpp
src/clock.h
src/icons.cpp
src/icons.h
src/wind_history.cpp
src/wind_history.h
src/baro_history.cpp
src/baro_history.h
src/Odograph.h
src/Odograph.cpp
src/from_ownship.cpp
src/from_ownship.h
src/wxJSON/jsonval.cpp
src/wxJSON/jsonreader.cpp
src/wxJSON/json_defs.h
src/wxJSON/jsonreader.h
src/wxJSON/jsonval.h
src/wxJSON/jsonwriter.h
src/tactics_pi.h
src/tactics_pi.cpp
src/TacticsConfig.cpp
src/TacticsWindow.h
src/TacticsWindow.cpp
src/TacticsPreferencesDialog.h
src/TacticsPreferencesDialog.cpp
src/TacticsEnums.h
src/TacticsStructs.h
src/TacticsFunctions.h
src/TacticsFunctions.cpp
src/ExpSmooth.h
src/ExpSmooth.cpp
src/DoubleExpSmooth.h
src/DoubleExpSmooth.cpp
src/Polar.h
src/Polar.cpp
src/PerformanceSingle.h
src/PerformanceSingle.cpp
src/PolarPerformance.h
src/PolarPerformance.cpp
src/StreamInSkSingle.h
src/StreamInSkSingle.cpp
src/wxJSON/jsonwriter.cpp
src/StreamoutSchema.h
src/LineProtocol.h
src/StreamoutSingle.h
src/StreamoutSingle.cpp
src/plugin_ids.h
src/bearingcompass.h
src/bearingcompass.cpp
src/polarcompass.h
src/polarcompass.cpp
src/avg_wind.h
src/avg_wind.cpp
src/EngineDJG.h
src/EngineDJG.cpp
src/InstruJS.h
src/InstruJS.cpp
src/TimesTUI.h
src/TimesTUI.cpp
src/RaceStart.h
src/RaceStart.cpp
src/RaceStartGL.cpp
src/RaceMark.h
src/RaceMark.cpp
src/RaceMarkGL.cpp
src/SkData.h
src/SkData.cpp
)
SET(SRC_NMEA0183
src/nmea0183/LatLong.hpp
src/nmea0183/latlong.cpp
src/nmea0183/long.cpp
src/nmea0183/nmea0183.cpp
src/nmea0183/nmea0183.hpp
src/nmea0183/Response.hpp
src/nmea0183/response.cpp
src/nmea0183/RMB.hpp
src/nmea0183/rmb.cpp
src/nmea0183/Sentence.hpp
src/nmea0183/sentence.cpp
src/nmea0183/talkerid.cpp
src/nmea0183/RMC.HPP
src/nmea0183/rmc.cpp
src/nmea0183/hexvalue.cpp
src/nmea0183/lat.cpp
src/nmea0183/expid.cpp
src/nmea0183/wpl.hpp
src/nmea0183/wpl.cpp
src/nmea0183/rte.hpp
src/nmea0183/rte.cpp
src/nmea0183/hdt.hpp
src/nmea0183/hdt.cpp
src/nmea0183/hdg.hpp
src/nmea0183/hdg.cpp
src/nmea0183/hdm.hpp
src/nmea0183/hdm.cpp
src/nmea0183/gll.hpp
src/nmea0183/gll.cpp
src/nmea0183/vtg.hpp
src/nmea0183/vtg.cpp
src/nmea0183/gga.hpp
src/nmea0183/gga.cpp
src/nmea0183/gsv.hpp
src/nmea0183/gsv.cpp
src/nmea0183/dbt.cpp
src/nmea0183/dbt.hpp
src/nmea0183/dpt.cpp
src/nmea0183/dpt.hpp
src/nmea0183/mtw.cpp
src/nmea0183/mtw.hpp
src/nmea0183/mwv.cpp
src/nmea0183/mwv.hpp
src/nmea0183/vhw.hpp
src/nmea0183/vhw.cpp
src/nmea0183/vwr.cpp
src/nmea0183/vwr.hpp
src/nmea0183/xte.cpp
src/nmea0183/xte.hpp
src/nmea0183/zda.cpp
src/nmea0183/zda.hpp
src/nmea0183/rsa.hpp
src/nmea0183/rsa.cpp
src/nmea0183/SatInfo.h
src/nmea0183/mwd.cpp
src/nmea0183/mwd.hpp
src/nmea0183/vwt.cpp
src/nmea0183/vwt.hpp
src/nmea0183/mta.cpp
src/nmea0183/mta.hpp
src/nmea0183/vlw.cpp
src/nmea0183/vlw.hpp
src/nmea0183/mda.cpp
src/nmea0183/mda.hpp
src/nmea0183/xdr.cpp
src/nmea0183/xdr.hpp
)
# include_directories(BEFORE ${PROJECT_SOURCE_DIR}/libs/ocpn-api)
INCLUDE_DIRECTORIES(BEFORE ${PROJECT_SOURCE_DIR}/libs/ocpn-api)
SET(SRC ${SRC_DASHT} ${SRC_NMEA0183})
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC} )
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")
ADD_SUBDIRECTORY("tests")