forked from SethDart/vdr_pi
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPlugin.cmake
86 lines (71 loc) · 2.48 KB
/
Plugin.cmake
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
# ~~~
# Summary: Local, non-generic plugin setup
# Copyright (c) 2020-2021 Mike Rossiter
# License: GPLv3+
# ~~~
# 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 3 of the License, or
# (at your option) any later version.
# -------- Options ----------
set(OCPN_TEST_REPO
"opencpn/vdr-alpha"
CACHE STRING "Default repository for untagged builds"
)
set(OCPN_BETA_REPO
"opencpn/vdr-beta"
CACHE STRING "Default repository for tagged builds matching 'beta'"
)
set(OCPN_RELEASE_REPO
"opencpn/vdr-prod"
CACHE STRING "Default repository for tagged builds not matching 'beta'"
)
#
#
# ------- Plugin setup --------
#
set(PKG_NAME vdr_pi)
set(PKG_VERSION 1.3.62.0)
set(PKG_PRERELEASE "") # Empty, or a tag like 'beta'
set(DISPLAY_NAME VDR) # Dialogs, installer artifacts, ...
set(PLUGIN_API_NAME VDR) # As of GetCommonName() in plugin API
set(PKG_SUMMARY "Voyage Data Recorder")
set(PKG_DESCRIPTION [=[
A Voyage Data Recorder (VDR) to record and play NMEA files.
Save NMEA stream to a file. Replay NMEA stream previously saved. Used to test plugins.
]=])
set(PKG_AUTHOR "Rick Gleason")
set(PKG_IS_OPEN_SOURCE "yes")
set(CPACK_PACKAGE_HOMEPAGE_URL https://github.com/rgleason/vdr_pi)
set(PKG_INFO_URL https://opencpn.org/OpenCPN/plugins/vdr.html)
set(SRC
src/icons.h
src/icons.cpp
src/vdr_pi.h
src/vdr_pi.cpp
src/vdr_pi_prefs.h
src/vdr_pi_prefs.cpp
src/vdr_pi_control.h
src/vdr_pi_control.cpp
src/vdr_pi_prefs_net.h
src/vdr_pi_prefs_net.cpp
src/vdr_pi_time.h
src/vdr_pi_time.cpp
src/vdr_network.h
src/vdr_network.cpp
)
set(PKG_API_LIB api-18) # A directory in libs/ e. g., api-18 or api-19
macro(add_plugin_libraries)
# Add libraries required by this plugin
# add_subdirectory("${CMAKE_SOURCE_DIR}/opencpn-libs/tinyxml")
# target_link_libraries(${PACKAGE_NAME} ocpn::tinyxml)
# add_subdirectory("${CMAKE_SOURCE_DIR}/opencpn-libs/wxJSON")
# target_link_libraries(${PACKAGE_NAME} ocpn::wxjson)
# add_subdirectory("${CMAKE_SOURCE_DIR}/opencpn-libs/plugingl")
# target_link_libraries(${PACKAGE_NAME} ocpn::plugingl)
# add_subdirectory("${CMAKE_SOURCE_DIR}/opencpn-libs/jsoncpp")
# target_link_libraries(${PACKAGE_NAME} ocpn::jsoncpp)
# The wxsvg library enables SVG overall in the plugin
# add_subdirectory("${CMAKE_SOURCE_DIR}/opencpn-libs/wxsvg")
# target_link_libraries(${PACKAGE_NAME} ocpn::wxsvg)
endmacro ()