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)
|
2018-06-27 22:18:18 +00:00
|
|
|
qt5_wrap_ui(uic_sources SetupRootDialog.ui
|
2016-06-15 21:28:27 +00:00
|
|
|
InstallSceneryDialog.ui
|
|
|
|
)
|
2018-08-28 15:32:23 +00:00
|
|
|
qt5_add_resources(qrc_sources resources.qrc)
|
|
|
|
|
|
|
|
if (TARGET fgfs_qm_files)
|
|
|
|
qt5_add_resources(qrc_sources ${PROJECT_BINARY_DIR}/translations.qrc)
|
|
|
|
endif()
|
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
|
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-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
|
2018-05-07 15:41:10 +00:00
|
|
|
LocationController.cxx
|
|
|
|
LocationController.hxx
|
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
|
|
|
LaunchConfig.cxx
|
|
|
|
LaunchConfig.hxx
|
|
|
|
MPServersModel.cpp
|
|
|
|
MPServersModel.h
|
2017-12-15 15:42:36 +00:00
|
|
|
PathUrlHelper.cxx
|
|
|
|
PathUrlHelper.hxx
|
2018-03-11 11:49:38 +00:00
|
|
|
RecentAircraftModel.cxx
|
|
|
|
RecentAircraftModel.hxx
|
|
|
|
RecentLocationsModel.cxx
|
|
|
|
RecentLocationsModel.hxx
|
2018-03-22 12:24:57 +00:00
|
|
|
LauncherController.cxx
|
|
|
|
LauncherController.hxx
|
2018-03-16 22:01:21 +00:00
|
|
|
AddOnsController.cxx
|
|
|
|
AddOnsController.hxx
|
2019-03-03 17:59:48 +00:00
|
|
|
AddonsModel.cxx
|
|
|
|
AddonsModel.hxx
|
2018-05-07 15:41:10 +00:00
|
|
|
PixmapImageItem.cxx
|
|
|
|
PixmapImageItem.hxx
|
2020-02-24 11:32:43 +00:00
|
|
|
PathListModel.cxx
|
|
|
|
PathListModel.hxx
|
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)
|
2018-07-02 22:10:52 +00:00
|
|
|
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::Svg 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
|
2017-12-15 15:42:36 +00:00
|
|
|
PopupWindowTracker.cxx
|
|
|
|
PopupWindowTracker.hxx
|
2018-05-07 15:41:10 +00:00
|
|
|
QmlPositioned.hxx
|
|
|
|
QmlPositioned.cxx
|
|
|
|
QmlNavCacheWrapper.hxx
|
|
|
|
QmlNavCacheWrapper.cxx
|
|
|
|
QmlRadioButtonHelper.cxx
|
|
|
|
QmlRadioButtonHelper.hxx
|
2018-07-17 10:55:25 +00:00
|
|
|
UnitsModel.cxx
|
|
|
|
UnitsModel.hxx
|
2018-07-18 10:32:47 +00:00
|
|
|
NavaidSearchModel.hxx
|
|
|
|
NavaidSearchModel.cxx
|
2018-08-11 20:05:04 +00:00
|
|
|
FlightPlanController.cxx
|
|
|
|
FlightPlanController.hxx
|
|
|
|
RouteDiagram.cxx
|
|
|
|
RouteDiagram.hxx
|
2018-10-25 11:10:42 +00:00
|
|
|
ModelDataExtractor.cxx
|
|
|
|
ModelDataExtractor.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)
|
2018-08-11 20:05:04 +00:00
|
|
|
target_link_libraries(fgqmlui Qt5::Quick Qt5::Widgets Qt5::Network Qt5::Qml SimGearCore)
|
2018-05-08 21:16:53 +00:00
|
|
|
target_include_directories(fgqmlui PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
2018-08-28 15:15:26 +00:00
|
|
|
|
|
|
|
if (TARGET fgfs_qm_files)
|
|
|
|
add_dependencies(fglauncher fgfs_qm_files)
|
|
|
|
add_dependencies(fgqmlui fgfs_qm_files)
|
|
|
|
endif()
|
2018-08-28 11:04:56 +00:00
|
|
|
|
2014-12-26 12:20:51 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2011-06-26 06:49:37 +00:00
|
|
|
flightgear_component(GUI "${SOURCES}" "${HEADERS}")
|