forked from opencpn-radar-pi/radar_pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
171 lines (156 loc) · 5.32 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
##---------------------------------------------------------------------------
## Plagiarized by: Dave Cowell for WINDOWS
##
## Author: bdbcat aka. dsr (Dave Register)
## Copyright:
## License: wxWidgets License
##---------------------------------------------------------------------------
# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)
PROJECT(radar_pi)
SET(PACKAGE_NAME radar_pi)
SET(VERBOSE_NAME Radar)
SET(TITLE_NAME Radar)
SET(CPACK_PACKAGE_CONTACT "[email protected]")
#SET(CMAKE_BUILD_TYPE Debug)
SET(VERSION_MAJOR "5")
SET(VERSION_MINOR "0")
SET(VERSION_PATCH "5")
SET(VERSION_DATE "2020-04-19")
SET(OCPN_MIN_VERSION "ov50")
INCLUDE("cmake/PluginConfigure.cmake")
# For convenience we define the sources as a variable. You can add
# header files and cpp/c files and CMake will sort them out
SET(SRC_EMULATOR
src/emulator/EmulatorControl.cpp
src/emulator/EmulatorControl.h
src/emulator/EmulatorControlSet.h
src/emulator/EmulatorControlsDialog.cpp
src/emulator/EmulatorControlsDialog.h
src/emulator/EmulatorReceive.cpp
src/emulator/EmulatorReceive.h
src/emulator/emulatortype.h
)
SET(SRC_GARMIN_HD
src/garminhd/GarminHDControl.cpp
src/garminhd/GarminHDControl.h
src/garminhd/GarminHDControlSet.h
src/garminhd/GarminHDControlsDialog.cpp
src/garminhd/GarminHDControlsDialog.h
src/garminhd/GarminHDReceive.cpp
src/garminhd/GarminHDReceive.h
src/garminhd/garminhdtype.h
)
SET(SRC_GARMIN_XHD
src/garminxhd/GarminxHDControl.cpp
src/garminxhd/GarminxHDControl.h
src/garminxhd/GarminxHDControlSet.h
src/garminxhd/GarminxHDControlsDialog.cpp
src/garminxhd/GarminxHDControlsDialog.h
src/garminxhd/GarminxHDReceive.cpp
src/garminxhd/GarminxHDReceive.h
src/garminxhd/garminxhdtype.h
)
SET(SRC_NAVICO
src/navico/br24type.h
src/navico/br3gtype.h
src/navico/br4gatype.h
src/navico/br4gbtype.h
src/navico/haloatype.h
src/navico/halobtype.h
src/navico/NavicoCommon.h
src/navico/NavicoReceive.cpp
src/navico/NavicoReceive.h
src/navico/NavicoControl.cpp
src/navico/NavicoControl.h
src/navico/NavicoControlSet.h
src/navico/NavicoControlsDialog.cpp
src/navico/NavicoControlsDialog.h
src/navico/NavicoLocate.cpp
src/navico/NavicoLocate.h
src/navico/NavicoRadarInfo.h
)
SET(SRC_RADAR
src/ControlsDialog.cpp
src/ControlsDialog.h
src/GuardZone.cpp
src/GuardZone.h
src/GuardZoneBogey.cpp
src/GuardZoneBogey.h
src/Kalman.cpp
src/Kalman.h
src/Matrix.h
src/MessageBox.cpp
src/MessageBox.h
src/OptionsDialog.cpp
src/OptionsDialog.h
src/RadarCanvas.cpp
src/RadarCanvas.h
src/RadarControl.h
src/RadarControlItem.h
src/RadarDraw.cpp
src/RadarDraw.h
src/RadarDrawShader.cpp
src/RadarDrawShader.h
src/RadarDrawVertex.cpp
src/RadarDrawVertex.h
src/RadarFactory.cpp
src/RadarFactory.h
src/RadarInfo.cpp
src/RadarInfo.h
src/RadarMarpa.cpp
src/RadarMarpa.h
src/RadarPanel.cpp
src/RadarPanel.h
src/RadarReceive.h
src/RadarType.h
src/SelectDialog.cpp
src/SelectDialog.h
src/SoftwareControlSet.h
src/TextureFont.cpp
src/TextureFont.h
src/TrailBuffer.h
src/TrailBuffer.cpp
src/ControlsDialog.cpp
src/ControlsDialog.h
src/drawutil.cpp
src/drawutil.h
src/icons.cpp
src/icons.h
src/pi_common.h
src/radar_pi.cpp
src/radar_pi.h
src/shaderutil.cpp
src/shaderutil.h
src/socketutil.cpp
src/socketutil.h
)
SET(SRC_NMEA0183
src/nmea0183/nmea0183.cpp
src/nmea0183/nmea0183.hpp
src/nmea0183/Response.hpp
src/nmea0183/response.cpp
src/nmea0183/Sentence.hpp
src/nmea0183/sentence.cpp
src/nmea0183/talkerid.cpp
src/nmea0183/hexvalue.cpp
src/nmea0183/expid.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
)
SET(SRC_JSON
src/wxJSON/jsonreader.cpp
src/wxJSON/jsonval.cpp
# We don't use jsonwriter.cpp yet ...
)
INCLUDE_DIRECTORIES(src/nmea0183)
INCLUDE_DIRECTORIES(src/wxJSON)
INCLUDE_DIRECTORIES(src)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_RADAR} ${SRC_NMEA0183} ${SRC_JSON} ${SRC_EMULATOR} ${SRC_GARMIN_HD} ${SRC_GARMIN_XHD} ${SRC_NAVICO})
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")