forked from konnibe/LogbookKonni-1.2
-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
139 lines (125 loc) · 3.38 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
##---------------------------------------------------------------------------
## Author: nohal aka. Pavel Kalian
## Copyright:
## License: wxWidgets License
##---------------------------------------------------------------------------
# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)
cmake_policy(SET CMP0012 NEW)
PROJECT(logbookkonni_pi)
SET(PACKAGE_NAME logbookkonni_pi)
SET(VERBOSE_NAME Logbookkonni)
SET(TITLE_NAME LOGBOOKKONNI)
SET(CPACK_PACKAGE_CONTACT "Del Elson")
SET(BUNDLE_DATA TRUE)
INCLUDE( "VERSION.cmake" )
SET(PLUGIN_VERSION "${PLUGIN_VERSION_MAJOR}.${PLUGIN_VERSION_MINOR}.${PLUGIN_VERSION_PATCH}" )
SET(VERSION_MAJOR ${PLUGIN_VERSION_MAJOR})
SET(VERSION_MINOR "${PLUGIN_VERSION_MINOR}${PLUGIN_VERSION_PATCH}")
SET(VERSION_DATE ${PLUGIN_VERSION_DATE})
#SET(CMAKE_BUILD_TYPE Debug)
INCLUDE("cmake/PluginConfigure.cmake")
SET(SRC_LOGBOOKKONNI
src/logbook_pi.h
src/logbook_pi.cpp
src/Options.h
src/Options.cpp
src/icons.h
src/icons.cpp
src/Logbook.h
src/Logbook.cpp
src/LogbookDialog.h
src/LogbookDialog.cpp
src/LogbookOptions.h
src/LogbookOptions.cpp
src/LogbookHTML.h
src/LogbookHTML.cpp
src/CrewList.h
src/CrewList.cpp
src/boat.h
src/boat.cpp
src/Maintenance.h
src/Maintenance.cpp
src/OverView.h
src/OverView.cpp
src/Export.h
src/Export.cpp
src/json_defs.h
src/jsonreader.h
src/jsonval.h
src/jsonwriter.h
src/jsonreader.cpp
src/jsonval.cpp
src/jsonwriter.cpp
)
IF(WIN32)
SET(SRC_LTINYXML
src/tinyxml/tinyxml.cpp
src/tinyxml/tinyxml.h
src/tinyxml/tinyxmlerror.cpp
src/tinyxml/tinyxmlparser.cpp
src/tinyxml/tinystr.cpp
src/tinyxml/tinystr.h
)
ENDIF(WIN32)
SET(SRC_LNMEA0183
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/vwt.cpp
src/nmea0183/vwt.hpp
src/nmea0183/zda.cpp
src/nmea0183/zda.hpp
src/nmea0183/rsa.hpp
src/nmea0183/rsa.cpp
src/nmea0183/SatInfo.h
)
ADD_DEFINITIONS(-DTIXML_USE_STL)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_LOGBOOKKONNI} ${SRC_LTINYXML} ${SRC_LNMEA0183})
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")