Skip to content

Commit

Permalink
cmake updates for current master
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed May 5, 2020
1 parent 2c09c1d commit bcea344
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 664 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ find_package(Qt5 ${QT_VERSION}
Network
Positioning
Quick
QuickControls2
QuickWidgets
OpenGL
Sql
Expand Down
29 changes: 27 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set(EXTRA_SRC)
if(MOBILE)
list(APPEND EXTRA_SRC
MobileScreenMgr.cc
MobileScreenMgr.h
)
endif()
if(GST_FOUND)
Expand Down Expand Up @@ -85,25 +86,48 @@ add_library(qgc
${EXTRA_SRC}

CmdLineOptParser.cc
CmdLineOptParser.h
JsonHelper.cc
KMLFileHelper.cc
JsonHelper.h
KMLDomDocument.cc
KMLDomDocument.h
KMLHelper.cc
KMLHelper.h
LogCompressor.cc
LogCompressor.h
main.cc
QGCApplication.cc
QGC.cc
QGC.h
QGCApplication.cc
QGCApplication.h
QGCComboBox.cc
QGCComboBox.h
QGCConfig.h
QGCDockWidget.cc
QGCDockWidget.h
QGCFileDownload.cc
QGCFileDownload.h
QGCLoggingCategory.cc
QGCLoggingCategory.h
QGCMapPalette.cc
QGCMapPalette.h
QGCPalette.cc
QGCPalette.h
QGCQGeoCoordinate.cc
QGCQGeoCoordinate.h
QGCTemporaryFile.cc
QGCTemporaryFile.h
QGCToolbox.cc
QGCToolbox.h
RunGuard.cc
RunGuard.h
ShapeFileHelper.cc
ShapeFileHelper.h
SHPFileHelper.cc
SHPFileHelper.h
stable_headers.h
TerrainTile.cc
TerrainTile.h
)

set_source_files_properties(QGCApplication.cc PROPERTIES COMPILE_DEFINITIONS GIT_VERSION="${GIT_VERSION}")
Expand Down Expand Up @@ -143,6 +167,7 @@ add_subdirectory(ViewWidgets)
target_link_libraries(qgc
PRIVATE
shp
Qt5::QuickControls2

PUBLIC
Qt5::QuickWidgets
Expand Down
2 changes: 1 addition & 1 deletion src/FlightMap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_subdirectory(MapItems)
add_subdirectory(Widgets)

add_library(FlightMap
Widgets/ValuesWidgetController.cc
#Widgets/ValuesWidgetController.cc
)

target_link_libraries(FlightMap
Expand Down
20 changes: 12 additions & 8 deletions src/MissionManager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ add_library(MissionManager
GeoFenceController.h
GeoFenceManager.cc
GeoFenceManager.h
KML.cc
KML.h
KMLPlanDomDocument.cc
KMLPlanDomDocument.h
LandingComplexItem.cc
LandingComplexItem.h
MissionCommandList.cc
MissionCommandList.h
MissionCommandTree.cc
Expand Down Expand Up @@ -103,12 +105,11 @@ add_library(MissionManager
QGCMapPolyline.cc
QGCMapPolyline.h
RallyPoint.cc
RallyPoint.h
RallyPointController.cc
RallyPointController.h
RallyPoint.h
RallyPointManager.cc
RallyPointManager.h
Section.h
SimpleMissionItem.cc
SimpleMissionItem.h
SpeedSection.cc
Expand All @@ -127,17 +128,19 @@ add_library(MissionManager
TransectStyleComplexItem.h
VisualMissionItem.cc
VisualMissionItem.h
VTOLLandingComplexItem.cc
VTOLLandingComplexItem.h

Section.h # shouldn't be listed here, but isn't named properly for AUTOMOC

${EXTRA_SRC}
)

add_custom_Target(MisionManagerQml
SOURCES
QGCMapCircleVisuals.qml
QGCMapPolygonVisuals.qml
QGCMapPolylineVisuals.qml
SOURCES
QGCMapCircleVisuals.qml
QGCMapPolygonVisuals.qml
QGCMapPolylineVisuals.qml
)

target_link_libraries(MissionManager
Expand All @@ -149,3 +152,4 @@ target_link_libraries(MissionManager
)

target_include_directories(MissionManager INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

162 changes: 91 additions & 71 deletions src/QmlControls/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,90 +1,110 @@

add_library(QmlControls
AppMessages.cc
CoordinateVector.cc
AppMessages.h
EditPositionDialogController.cc
EditPositionDialogController.h
FlightPathSegment.cc
FlightPathSegment.h
InstrumentValueArea.cc
InstrumentValueArea.h
InstrumentValueData.cc
InstrumentValueData.h
ParameterEditorController.cc
ParameterEditorController.h
QGCFileDialogController.cc
QGCFileDialogController.h
QGCGeoBoundingCube.cc
QGCGeoBoundingCube.h
QGCImageProvider.cc
QGCImageProvider.h
QGroundControlQmlGlobal.cc
QGroundControlQmlGlobal.h
QmlObjectListModel.cc
QmlObjectListModel.h
QmlUnitsConversion.h
RCChannelMonitorController.cc
RCChannelMonitorController.h
RCToParamDialogController.cc
RCToParamDialogController.h
ScreenToolsController.cc
ScreenToolsController.h
TerrainProfile.cc
TerrainProfile.h
)

add_custom_target(QmlControlsQml
SOURCES
APMSubMotorDisplay.qml
AppMessages.qml
AxisMonitor.qml
ClickableColor.qml
DeadMouseArea.qml
DropButton.qml
DropPanel.qml
EditPositionDialog.qml
ExclusiveGroupItem.qml
FactSliderPanel.qml
FileButton.qml
FlightModeDropdown.qml
FlightModeMenu.qml
HackAndroidFileDialog.qml
HackFileDialog.qml
IndicatorButton.qml
JoystickThumbPad.qml
LogReplayStatusBar.qml
MAVLinkMessageButton.qml
MissionCommandDialog.qml
MissionItemIndexLabel.qml
ModeSwitchDisplay.qml
MultiRotorMotorDisplay.qml
OfflineMapButton.qml
PageView.qml
ParameterEditor.qml
ParameterEditorDialog.qml
PIDTuning.qml
PreFlightCheckButton.qml
PreFlightCheckGroup.qml
PreFlightCheckModel.qml
QGCButton.qml
QGCCheckBox.qml
QGCColoredImage.qml
QGCComboBox.qml
QGCFileDialog.qml
QGCFlickable.qml
QGCFlickableHorizontalIndicator.qml
QGCFlickableVerticalIndicator.qml
QGCGroupBox.qml
QGCHoverButton.qml
QGCLabel.qml
QGCListView.qml
QGCMapLabel.qml
QGCMenu.qml
QGCMenuItem.qml
QGCMenuSeparator.qml
QGCMouseArea.qml
QGCMovableItem.qml
QGCPipable.qml
QGCRadioButton.qml
QGCSlider.qml
QGCSwitch.qml
QGCTabBar.qml
QGCTabButton.qml
QGCTextField.qml
QGCToolBarButton.qml
QGCViewDialog.qml
QGCViewDialogContainer.qml
QGCViewMessage.qml
QmlTest.qml
RCChannelMonitor.qml
RoundButton.qml
ScreenTools.qml
SectionHeader.qml
SliderSwitch.qml
SubMenuButton.qml
ToolStrip.qml
VehicleRotationCal.qml
VehicleSummaryRow.qml
APMSubMotorDisplay.qml
AppMessages.qml
AxisMonitor.qml
ClickableColor.qml
DeadMouseArea.qml
DropButton.qml
DropPanel.qml
EditPositionDialog.qml
ExclusiveGroupItem.qml
FactSliderPanel.qml
FileButton.qml
FlightModeDropdown.qml
FlightModeMenu.qml
HackAndroidFileDialog.qml
HackFileDialog.qml
IndicatorButton.qml
JoystickThumbPad.qml
LogReplayStatusBar.qml
MAVLinkMessageButton.qml
MissionCommandDialog.qml
MissionItemIndexLabel.qml
ModeSwitchDisplay.qml
MultiRotorMotorDisplay.qml
OfflineMapButton.qml
PageView.qml
ParameterEditor.qml
ParameterEditorDialog.qml
PIDTuning.qml
PreFlightCheckButton.qml
PreFlightCheckGroup.qml
PreFlightCheckModel.qml
QGCButton.qml
QGCCheckBox.qml
QGCColoredImage.qml
QGCComboBox.qml
QGCFileDialog.qml
QGCFlickable.qml
QGCFlickableHorizontalIndicator.qml
QGCFlickableVerticalIndicator.qml
QGCGroupBox.qml
QGCHoverButton.qml
QGCLabel.qml
QGCListView.qml
QGCMapLabel.qml
QGCMenu.qml
QGCMenuItem.qml
QGCMenuSeparator.qml
QGCMouseArea.qml
QGCMovableItem.qml
QGCPipable.qml
QGCRadioButton.qml
QGCSlider.qml
QGCSwitch.qml
QGCTabBar.qml
QGCTabButton.qml
QGCTextField.qml
QGCToolBarButton.qml
QGCViewDialog.qml
QGCViewDialogContainer.qml
QGCViewMessage.qml
QmlTest.qml
RCChannelMonitor.qml
RoundButton.qml
ScreenTools.qml
SectionHeader.qml
SliderSwitch.qml
SubMenuButton.qml
ToolStrip.qml
VehicleRotationCal.qml
VehicleSummaryRow.qml
)
target_link_libraries(QmlControls
PUBLIC
Expand Down
7 changes: 0 additions & 7 deletions src/comm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,14 @@ add_library(comm
LogReplayLink.cc
MavlinkMessagesTimer.cc
MAVLinkProtocol.cc
QGCJSBSimLink.cc
QGCMAVLink.cc
QGCSerialPortInfo.cc
QGCXPlaneLink.cc
SerialLink.cc
TCPLink.cc
UDPLink.cc
UdpIODevice.cc

${EXTRA_SRC}

# HEADERS
# shouldn't be listed here, but aren't named properly for AUTOMOC
QGCHilLink.h
QGCJSBSimLink.h
)

target_link_libraries(comm
Expand Down
3 changes: 0 additions & 3 deletions src/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ add_subdirectory(preferences)
add_subdirectory(toolbar)

add_library(ui

MAVLinkDecoder.cc
MAVLinkDecoder.h
QGCMapRCToParamDialog.h
QGCPluginHost.cc
QGCPluginHost.h
Expand Down
Loading

0 comments on commit bcea344

Please sign in to comment.