This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
86 lines (75 loc) · 2.87 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
##---------------------------------------------------------------------------
## Author: Sylvain Joyeux <[email protected]>
## Copyright:
## License: GPLv3+
##---------------------------------------------------------------------------
# define minimum cmake version
cmake_minimum_required(VERSION 3.4)
project(seabots_pi VERSION 0.3)
find_package(Rock)
rock_init()
SET(PACKAGE_NAME seabots_pi)
SET(VERBOSE_NAME SeaBots)
SET(TITLE_NAME SeaBots)
SET(CPACK_PACKAGE_CONTACT "Sylvain Joyeux")
INCLUDE("cmake/PluginConfigure.cmake")
rock_find_pkgconfig(BASE_TYPES base-types REQUIRED)
#INCLUDE("cmake/PluginNMEA.cmake")
#INCLUDE("cmake/PluginJSON.cmake")
#INCLUDE("cmake/PluginGL.cmake")
set(PLUGIN_DATA_PATH share/opencpn/plugins/seabots_pi)
configure_file(src/Paths.hpp.in ${CMAKE_CURRENT_BINARY_DIR}/src/Paths.hpp @ONLY)
add_definitions(-DRTT_COMPONENT)
add_definitions(-DGL_GLEXT_PROTOTYPES)
find_package(marnav)
rock_library(seabots_pi
MODULE src/Plugin.cpp src/NMEA.cpp src/OCPNInterfaceImpl.cpp
DEPS_PLAIN OPENGL # OpenGL found by OCPN's PluginConfigure.cmake
DEPS_PKGCONFIG base-types gps_base usv_control
orocos-rtt-gnulinux
orocos-rtt-corba-gnulinux
std-typekit-gnulinux
std-transport-corba-gnulinux
std-transport-mqueue-gnulinux
std-transport-typelib-gnulinux
base-typekit-gnulinux
base-transport-corba-gnulinux
base-transport-mqueue-gnulinux
base-transport-typelib-gnulinux
gps_base-typekit-gnulinux
gps_base-transport-corba-gnulinux
gps_base-transport-mqueue-gnulinux
gps_base-transport-typelib-gnulinux
ais_base-typekit-gnulinux
ais_base-transport-corba-gnulinux
ais_base-transport-mqueue-gnulinux
ais_base-transport-typelib-gnulinux
seabots_pi-tasks-gnulinux
seabots_pi-typekit-gnulinux
seabots_pi-transport-corba-gnulinux
seabots_pi-transport-mqueue-gnulinux
seabots_pi-transport-typelib-gnulinux
logger-tasks-gnulinux
logger-typekit-gnulinux
logger-transport-corba-gnulinux
logger-transport-mqueue-gnulinux
logger-transport-typelib-gnulinux)
target_include_directories(seabots_pi PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/src)
target_link_libraries(seabots_pi marnav::marnav)
install(FILES images/seabots.svg
images/plan_route.svg
images/plan_route_toggled.svg
images/execute_route.svg
images/execute_route_toggled.svg
src/trajectory.frag
src/trajectory.vert
DESTINATION "${PLUGIN_DATA_PATH}")
target_include_directories(seabots_pi PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DTIXML_USE_STL)
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")
if (ROCK_TEST_ENABLED)
add_subdirectory(test)
endif()