-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (52 loc) · 2.53 KB
/
Copy pathCMakeLists.txt
File metadata and controls
58 lines (52 loc) · 2.53 KB
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
# ============================================================================
# Analyze View Module
# Flight log analysis, MAVLink inspection, and telemetry visualization
# ============================================================================
add_subdirectory(GeoTag)
add_subdirectory(MAVLinkConsole)
add_subdirectory(MAVLinkInspector)
add_subdirectory(OnboardLogs)
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
# ----------------------------------------------------------------------------
# QML Module for Analyze View UI
# ----------------------------------------------------------------------------
qt_add_library(AnalyzeViewModule STATIC)
qt_add_qml_module(AnalyzeViewModule
URI QGroundControl.AnalyzeView
VERSION 1.0
RESOURCE_PREFIX /qml
QML_FILES
AnalyzePage.qml
AnalyzeView.qml
MAVLinkConsole/MAVLinkConsolePage.qml
MAVLinkInspector/MAVLinkChart.qml
MAVLinkInspector/MAVLinkMessageButton.qml
MAVLinkInspector/MAVLinkInspectorPage.qml
OnboardLogs/OnboardLogPage.qml
OnboardLogs/OnboardLogTable.qml
Vibration/VibrationPage.qml
NO_PLUGIN
)
# Flatten subdir paths into /qmlimages/<name>; VibrationPageIcon URL has no .png
# extension (consumer is QGCCorePlugin.cc).
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/GeoTag/GeoTagIcon.svg"
PROPERTIES QT_RESOURCE_ALIAS "GeoTagIcon.svg")
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/MAVLinkConsole/MAVLinkConsoleIcon.svg"
PROPERTIES QT_RESOURCE_ALIAS "MAVLinkConsoleIcon.svg")
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/MAVLinkInspector/MAVLinkInspector.svg"
PROPERTIES QT_RESOURCE_ALIAS "MAVLinkInspector.svg")
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/OnboardLogs/OnboardLogIcon.svg"
PROPERTIES QT_RESOURCE_ALIAS "OnboardLogIcon.svg")
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/Vibration/VibrationPageIcon.png"
PROPERTIES QT_RESOURCE_ALIAS "VibrationPageIcon")
qt_add_resources(${CMAKE_PROJECT_NAME} analyzeview_qmlimages
PREFIX "/qmlimages"
BASE "${CMAKE_CURRENT_SOURCE_DIR}"
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/FloatingWindow.svg"
"${CMAKE_CURRENT_SOURCE_DIR}/GeoTag/GeoTagIcon.svg"
"${CMAKE_CURRENT_SOURCE_DIR}/MAVLinkConsole/MAVLinkConsoleIcon.svg"
"${CMAKE_CURRENT_SOURCE_DIR}/MAVLinkInspector/MAVLinkInspector.svg"
"${CMAKE_CURRENT_SOURCE_DIR}/OnboardLogs/OnboardLogIcon.svg"
"${CMAKE_CURRENT_SOURCE_DIR}/Vibration/VibrationPageIcon.png"
)