
add_library(QmlControls
	AppMessages.cc
	CoordinateVector.cc
	EditPositionDialogController.cc
	ParameterEditorController.cc
	QGCFileDialogController.cc
	QGCGeoBoundingCube.cc
	QGCImageProvider.cc
	QGroundControlQmlGlobal.cc
	QmlObjectListModel.cc
	RCChannelMonitorController.cc
	ScreenToolsController.cc
)

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
)
target_link_libraries(QmlControls
        PUBLIC
		qgc

		FactSystem
	PUBLIC
		Qt5::Concurrent
		Qt5::Location
		Qt5::SerialPort
		Qt5::TextToSpeech
		Qt5::Widgets
)

target_include_directories(QmlControls INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

