2010-11-30 10:08:30 +00:00
|
|
|
include(FlightGearComponent)
|
|
|
|
|
|
|
|
set(SOURCES
|
2015-10-16 01:05:17 +00:00
|
|
|
AirportList.cxx
|
|
|
|
CanvasWidget.cxx
|
|
|
|
MapWidget.cxx
|
|
|
|
WaypointList.cxx
|
|
|
|
dialog.cxx
|
|
|
|
FGPUIDialog.cxx
|
|
|
|
fonts.cxx
|
|
|
|
gui.cxx
|
|
|
|
gui_funcs.cxx
|
|
|
|
layout-props.cxx
|
|
|
|
layout.cxx
|
|
|
|
menubar.cxx
|
|
|
|
FGPUIMenuBar.cxx
|
|
|
|
new_gui.cxx
|
|
|
|
property_list.cxx
|
|
|
|
FGFontCache.cxx
|
|
|
|
FGColor.cxx
|
2012-12-28 14:48:19 +00:00
|
|
|
FileDialog.cxx
|
|
|
|
PUIFileDialog.cxx
|
2013-02-09 16:05:54 +00:00
|
|
|
MouseCursor.cxx
|
2013-11-06 23:49:58 +00:00
|
|
|
MessageBox.cxx
|
2015-10-16 01:05:17 +00:00
|
|
|
)
|
2011-06-26 06:49:37 +00:00
|
|
|
|
|
|
|
set(HEADERS
|
2015-10-16 01:05:17 +00:00
|
|
|
AirportList.hxx
|
|
|
|
CanvasWidget.hxx
|
|
|
|
MapWidget.hxx
|
|
|
|
WaypointList.hxx
|
|
|
|
dialog.hxx
|
|
|
|
FGPUIDialog.hxx
|
|
|
|
gui.h
|
|
|
|
layout.hxx
|
|
|
|
menubar.hxx
|
|
|
|
FGPUIMenuBar.hxx
|
|
|
|
new_gui.hxx
|
|
|
|
property_list.hxx
|
|
|
|
FGFontCache.hxx
|
|
|
|
FGColor.hxx
|
2012-12-28 14:48:19 +00:00
|
|
|
FileDialog.hxx
|
|
|
|
PUIFileDialog.hxx
|
2013-02-09 16:05:54 +00:00
|
|
|
MouseCursor.hxx
|
2013-11-06 23:49:58 +00:00
|
|
|
MessageBox.hxx
|
2015-10-16 01:05:17 +00:00
|
|
|
)
|
2013-03-06 18:22:37 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
2015-10-16 01:05:17 +00:00
|
|
|
list(APPEND HEADERS WindowsMouseCursor.hxx
|
|
|
|
FGWindowsMenuBar.hxx
|
|
|
|
WindowsFileDialog.hxx)
|
|
|
|
list(APPEND SOURCES WindowsMouseCursor.cxx
|
|
|
|
FGWindowsMenuBar.cxx
|
|
|
|
WindowsFileDialog.cxx)
|
2013-03-06 18:22:37 +00:00
|
|
|
endif()
|
2014-12-26 12:20:51 +00:00
|
|
|
|
2011-11-20 13:23:52 +00:00
|
|
|
if (APPLE)
|
2014-12-26 12:20:51 +00:00
|
|
|
list(APPEND HEADERS FGCocoaMenuBar.hxx
|
|
|
|
CocoaFileDialog.hxx
|
2013-11-06 23:49:58 +00:00
|
|
|
CocoaMouseCursor.hxx
|
2013-11-16 10:05:09 +00:00
|
|
|
CocoaHelpers.h
|
|
|
|
CocoaHelpers_private.h)
|
2014-12-26 12:20:51 +00:00
|
|
|
list(APPEND SOURCES FGCocoaMenuBar.mm
|
2013-11-06 23:49:58 +00:00
|
|
|
CocoaFileDialog.mm
|
|
|
|
CocoaMouseCursor.mm
|
2013-11-16 10:05:09 +00:00
|
|
|
CocoaHelpers.mm)
|
2011-11-20 13:23:52 +00:00
|
|
|
endif()
|
2014-12-26 12:20:51 +00:00
|
|
|
|
|
|
|
if (HAVE_QT)
|
2015-10-16 01:05:17 +00:00
|
|
|
qt5_wrap_ui(uic_sources Launcher.ui
|
2015-03-12 22:43:58 +00:00
|
|
|
SetupRootDialog.ui
|
2015-03-25 14:16:09 +00:00
|
|
|
AddCatalogDialog.ui
|
2015-11-03 21:28:36 +00:00
|
|
|
PathsDialog.ui
|
2016-04-15 16:06:53 +00:00
|
|
|
LocationWidget.ui
|
2016-06-15 21:28:27 +00:00
|
|
|
InstallSceneryDialog.ui
|
|
|
|
)
|
2014-12-26 12:20:51 +00:00
|
|
|
qt5_add_resources(qrc_sources resources.qrc)
|
|
|
|
|
2017-05-18 16:27:41 +00:00
|
|
|
set(qml_sources
|
|
|
|
DownloadSettings.qml
|
|
|
|
GeneralSettings.qml
|
|
|
|
MPSettings.qml
|
|
|
|
RenderSettings.qml
|
|
|
|
TimeSettings.qml
|
|
|
|
ViewSettings.qml
|
|
|
|
Weather.qml
|
|
|
|
)
|
2014-12-26 12:20:51 +00:00
|
|
|
|
|
|
|
add_library(fglauncher QtLauncher.cxx
|
|
|
|
QtLauncher.hxx
|
2017-02-20 00:19:13 +00:00
|
|
|
LauncherMainWindow.hxx
|
|
|
|
LauncherMainWindow.cxx
|
2015-11-03 21:28:36 +00:00
|
|
|
BaseDiagram.cxx
|
|
|
|
BaseDiagram.hxx
|
2014-12-26 12:20:51 +00:00
|
|
|
AirportDiagram.cxx
|
|
|
|
AirportDiagram.hxx
|
2015-11-03 21:28:36 +00:00
|
|
|
NavaidDiagram.cxx
|
|
|
|
NavaidDiagram.hxx
|
2017-02-21 11:01:06 +00:00
|
|
|
ExtraSettingsSection.cxx
|
|
|
|
ExtraSettingsSection.hxx
|
2015-03-06 18:52:06 +00:00
|
|
|
SetupRootDialog.cxx
|
|
|
|
SetupRootDialog.hxx
|
2015-03-10 00:13:55 +00:00
|
|
|
AircraftModel.hxx
|
|
|
|
AircraftModel.cxx
|
2015-03-12 13:29:06 +00:00
|
|
|
CatalogListModel.cxx
|
|
|
|
CatalogListModel.hxx
|
2015-03-12 22:43:58 +00:00
|
|
|
AddCatalogDialog.cxx
|
|
|
|
AddCatalogDialog.hxx
|
2015-03-25 14:16:09 +00:00
|
|
|
PathsDialog.cxx
|
|
|
|
PathsDialog.hxx
|
2015-11-03 21:28:36 +00:00
|
|
|
LocationWidget.cxx
|
|
|
|
LocationWidget.hxx
|
2015-11-24 07:24:32 +00:00
|
|
|
QtMessageBox.cxx
|
|
|
|
QtMessageBox.hxx
|
2016-02-10 22:58:56 +00:00
|
|
|
QtFileDialog.cxx
|
|
|
|
QtFileDialog.hxx
|
2016-06-15 21:28:27 +00:00
|
|
|
InstallSceneryDialog.hxx
|
|
|
|
InstallSceneryDialog.cxx
|
2017-04-10 13:37:18 +00:00
|
|
|
SettingsSection.cxx
|
|
|
|
SettingsSection.hxx
|
2017-02-21 11:01:06 +00:00
|
|
|
SettingsSectionQML.cxx
|
|
|
|
SettingsSectionQML.hxx
|
2017-01-30 07:00:37 +00:00
|
|
|
AdvancedSettingsButton.h
|
|
|
|
AdvancedSettingsButton.cpp
|
|
|
|
ToolboxButton.cpp
|
|
|
|
ToolboxButton.h
|
2017-02-19 22:59:39 +00:00
|
|
|
LauncherArgumentTokenizer.cxx
|
|
|
|
LauncherArgumentTokenizer.hxx
|
|
|
|
AircraftSearchFilterModel.cxx
|
|
|
|
AircraftSearchFilterModel.hxx
|
2017-02-20 00:19:13 +00:00
|
|
|
DefaultAircraftLocator.cxx
|
|
|
|
DefaultAircraftLocator.hxx
|
2017-02-21 11:01:06 +00:00
|
|
|
SettingsWidgets.cxx
|
|
|
|
SettingsWidgets.hxx
|
|
|
|
LaunchConfig.cxx
|
|
|
|
LaunchConfig.hxx
|
|
|
|
ViewCommandLinePage.cxx
|
|
|
|
ViewCommandLinePage.hxx
|
|
|
|
MPServersModel.cpp
|
|
|
|
MPServersModel.h
|
2014-12-26 12:20:51 +00:00
|
|
|
${uic_sources}
|
2017-05-18 16:27:41 +00:00
|
|
|
${qrc_sources}
|
|
|
|
${qml_sources})
|
2014-12-26 12:20:51 +00:00
|
|
|
|
2015-01-07 09:38:02 +00:00
|
|
|
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
|
2017-06-22 09:45:47 +00:00
|
|
|
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::QuickWidgets SimGearCore)
|
2017-10-13 15:48:24 +00:00
|
|
|
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
2017-06-06 15:21:16 +00:00
|
|
|
|
|
|
|
add_library(fgqmlui QQuickDrawable.cxx
|
2017-10-05 11:37:43 +00:00
|
|
|
QQuickDrawable.hxx
|
|
|
|
QtQuickFGCanvasItem.cxx
|
|
|
|
QtQuickFGCanvasItem.hxx
|
2017-10-05 11:38:27 +00:00
|
|
|
PropertyItemModel.cxx
|
|
|
|
PropertyItemModel.hxx
|
|
|
|
FGQmlInstance.cxx
|
|
|
|
FGQmlInstance.hxx
|
|
|
|
FGQmlPropertyNode.cxx
|
|
|
|
FGQmlPropertyNode.hxx
|
2017-10-09 20:53:26 +00:00
|
|
|
QmlAircraftInfo.cxx
|
|
|
|
QmlAircraftInfo.hxx
|
|
|
|
LocalAircraftCache.cxx
|
|
|
|
LocalAircraftCache.hxx
|
2017-10-13 15:48:24 +00:00
|
|
|
PreviewImageItem.cxx
|
|
|
|
PreviewImageItem.hxx
|
|
|
|
ThumbnailImageItem.cxx
|
|
|
|
ThumbnailImageItem.hxx
|
|
|
|
FlickableExtentQuery.cxx
|
|
|
|
FlickableExtentQuery.hxx
|
2017-06-06 15:21:16 +00:00
|
|
|
)
|
2014-12-26 12:20:51 +00:00
|
|
|
|
2017-06-06 15:21:16 +00:00
|
|
|
set_property(TARGET fgqmlui PROPERTY AUTOMOC ON)
|
|
|
|
target_link_libraries(fgqmlui Qt5::Quick Qt5::Network Qt5::Qml SimGearCore)
|
2017-10-13 15:48:24 +00:00
|
|
|
target_include_directories(fgqmlui PRIVATE ${PROJECT_BINARY_DIR}/src/GUI ${Qt5Quick_PRIVATE_INCLUDE_DIRS})
|
2014-12-26 12:20:51 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2011-06-26 06:49:37 +00:00
|
|
|
flightgear_component(GUI "${SOURCES}" "${HEADERS}")
|