2010-11-30 10:08:30 +00:00
|
|
|
include(FlightGearComponent)
|
|
|
|
|
|
|
|
set(SOURCES
|
2015-10-15 20:05:17 -05: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 15:49:58 -08:00
|
|
|
MessageBox.cxx
|
2015-10-15 20:05:17 -05:00
|
|
|
)
|
2011-06-26 07:49:37 +01:00
|
|
|
|
|
|
|
set(HEADERS
|
2015-10-15 20:05:17 -05: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 15:49:58 -08:00
|
|
|
MessageBox.hxx
|
2015-10-15 20:05:17 -05:00
|
|
|
)
|
2013-03-06 18:22:37 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
2015-10-15 20:05:17 -05: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 15:20:51 +03:00
|
|
|
|
2011-11-20 13:23:52 +00:00
|
|
|
if (APPLE)
|
2014-12-26 15:20:51 +03:00
|
|
|
list(APPEND HEADERS FGCocoaMenuBar.hxx
|
|
|
|
CocoaFileDialog.hxx
|
2013-11-06 15:49:58 -08:00
|
|
|
CocoaMouseCursor.hxx
|
2013-11-16 10:05:09 +00:00
|
|
|
CocoaHelpers.h
|
|
|
|
CocoaHelpers_private.h)
|
2014-12-26 15:20:51 +03:00
|
|
|
list(APPEND SOURCES FGCocoaMenuBar.mm
|
2013-11-06 15:49:58 -08: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 15:20:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (HAVE_QT)
|
2015-10-15 20:05:17 -05:00
|
|
|
qt5_wrap_ui(uic_sources Launcher.ui
|
2015-03-12 23:43:58 +01:00
|
|
|
EditRatingsFilterDialog.ui
|
|
|
|
SetupRootDialog.ui
|
2015-03-25 09:16:09 -05:00
|
|
|
AddCatalogDialog.ui
|
2015-11-03 15:28:36 -06:00
|
|
|
PathsDialog.ui
|
2016-04-15 17:06:53 +01:00
|
|
|
LocationWidget.ui
|
2016-06-15 22:28:27 +01:00
|
|
|
NoOfficialHangar.ui
|
|
|
|
InstallSceneryDialog.ui
|
|
|
|
)
|
2014-12-26 15:20:51 +03:00
|
|
|
qt5_add_resources(qrc_sources resources.qrc)
|
|
|
|
|
2017-05-18 17:27:41 +01:00
|
|
|
set(qml_sources
|
|
|
|
DownloadSettings.qml
|
|
|
|
GeneralSettings.qml
|
|
|
|
MPSettings.qml
|
|
|
|
RenderSettings.qml
|
|
|
|
TimeSettings.qml
|
|
|
|
ViewSettings.qml
|
|
|
|
Weather.qml
|
|
|
|
)
|
2014-12-26 15:20:51 +03:00
|
|
|
|
|
|
|
add_library(fglauncher QtLauncher.cxx
|
|
|
|
QtLauncher.hxx
|
2017-02-19 16:19:13 -08:00
|
|
|
LauncherMainWindow.hxx
|
|
|
|
LauncherMainWindow.cxx
|
2015-11-03 15:28:36 -06:00
|
|
|
BaseDiagram.cxx
|
|
|
|
BaseDiagram.hxx
|
2014-12-26 15:20:51 +03:00
|
|
|
AirportDiagram.cxx
|
|
|
|
AirportDiagram.hxx
|
2015-11-03 15:28:36 -06:00
|
|
|
NavaidDiagram.cxx
|
|
|
|
NavaidDiagram.hxx
|
2014-12-26 15:20:51 +03:00
|
|
|
EditRatingsFilterDialog.cxx
|
|
|
|
EditRatingsFilterDialog.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
|
|
|
AircraftItemDelegate.hxx
|
|
|
|
AircraftItemDelegate.cxx
|
|
|
|
AircraftModel.hxx
|
|
|
|
AircraftModel.cxx
|
2015-03-12 13:29:06 +00:00
|
|
|
CatalogListModel.cxx
|
|
|
|
CatalogListModel.hxx
|
2015-03-12 23:43:58 +01:00
|
|
|
AddCatalogDialog.cxx
|
|
|
|
AddCatalogDialog.hxx
|
2015-03-25 09:16:09 -05:00
|
|
|
PathsDialog.cxx
|
|
|
|
PathsDialog.hxx
|
2015-11-03 15:28:36 -06: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 22:28:27 +01:00
|
|
|
InstallSceneryDialog.hxx
|
|
|
|
InstallSceneryDialog.cxx
|
2017-04-10 14:37:18 +01:00
|
|
|
PreviewWindow.cxx
|
|
|
|
PreviewWindow.hxx
|
|
|
|
SettingsSection.cxx
|
|
|
|
SettingsSection.hxx
|
2017-02-21 11:01:06 +00:00
|
|
|
SettingsSectionQML.cxx
|
|
|
|
SettingsSectionQML.hxx
|
2017-01-30 08:00:37 +01:00
|
|
|
AdvancedSettingsButton.h
|
|
|
|
AdvancedSettingsButton.cpp
|
|
|
|
ToolboxButton.cpp
|
|
|
|
ToolboxButton.h
|
2017-02-19 14:59:39 -08:00
|
|
|
LauncherArgumentTokenizer.cxx
|
|
|
|
LauncherArgumentTokenizer.hxx
|
|
|
|
AircraftSearchFilterModel.cxx
|
|
|
|
AircraftSearchFilterModel.hxx
|
2017-02-19 16:19:13 -08: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 15:20:51 +03:00
|
|
|
${uic_sources}
|
2017-05-18 17:27:41 +01:00
|
|
|
${qrc_sources}
|
|
|
|
${qml_sources})
|
2014-12-26 15:20:51 +03:00
|
|
|
|
2015-01-07 09:38:02 +00:00
|
|
|
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
|
2017-02-21 11:01:06 +00:00
|
|
|
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml SimGearCore)
|
2016-01-23 15:55:11 -06:00
|
|
|
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
2017-04-10 22:18:19 +01:00
|
|
|
#target_include_directories(fglauncher PRIVATE ${Qt5Qml_PRIVATE_INCLUDE_DIRS})
|
2014-12-26 15:20:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2011-06-26 07:49:37 +01:00
|
|
|
flightgear_component(GUI "${SOURCES}" "${HEADERS}")
|