forked from keesverruijt/BR24radar_pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
104 lines (95 loc) · 3 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
##---------------------------------------------------------------------------
## 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(br24radar_pi)
SET(PACKAGE_NAME br24radar_pi)
SET(VERBOSE_NAME BR24Radar)
SET(TITLE_NAME BR24Radar)
SET(CPACK_PACKAGE_CONTACT "[email protected]")
SET(VERSION_MAJOR "2")
#SET(CMAKE_BUILD_TYPE Debug)
SET(VERSION_MINOR "2")
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_br24radar
src/pi_common.h
src/shaderutil.h
src/shaderutil.cpp
src/socketutil.h
src/socketutil.cpp
src/drawutil.h
src/drawutil.cpp
src/br24radar_pi.h
src/br24radar_pi.cpp
src/br24ControlsDialog.h
src/br24ControlsDialog.cpp
src/br24MessageBox.h
src/br24MessageBox.cpp
src/br24OptionsDialog.h
src/br24OptionsDialog.cpp
src/br24Receive.h
src/br24Receive.cpp
src/br24Transmit.h
src/br24Transmit.cpp
src/icons.h
src/icons.cpp
src/GuardZone.h
src/GuardZone.cpp
src/GuardZoneBogey.h
src/GuardZoneBogey.cpp
src/RadarInfo.h
src/RadarInfo.cpp
src/RadarCanvas.h
src/RadarCanvas.cpp
src/RadarPanel.h
src/RadarPanel.cpp
src/RadarDraw.h
src/RadarDraw.cpp
src/RadarDrawShader.h
src/RadarDrawShader.cpp
src/RadarDrawVertex.h
src/RadarDrawVertex.cpp
src/TextureFont.h
src/TextureFont.cpp
)
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)
IF(WIN32)
SET(wxWidgets_USE_LIBS base core net adv gl aui)
SET(BUILD_SHARED_LIBS TRUE)
FIND_PACKAGE(wxWidgets REQUIRED)
ENDIF(WIN32)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_br24radar} ${SRC_NMEA0183} ${SRC_JSON})
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")