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
|
|
|
EditRatingsFilterDialog.ui
|
|
|
|
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
|
|
|
NoOfficialHangar.ui
|
|
|
|
InstallSceneryDialog.ui
|
2016-11-07 19:49:33 +00:00
|
|
|
UpdateAllAircraft.ui
|
2016-06-15 21:28:27 +00:00
|
|
|
)
|
2014-12-26 12:20:51 +00:00
|
|
|
qt5_add_resources(qrc_sources resources.qrc)
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2014-12-26 12:20:51 +00: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 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
|
|
|
PreviewWindow.cxx
|
|
|
|
PreviewWindow.hxx
|
|
|
|
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}
|
|
|
|
${qrc_sources})
|
|
|
|
|
2017-04-10 13:37:18 +00:00
|
|
|
#HACK: CMake with broken Qt5Qml_PRIVATE_INCLUDE_DIRS
|
|
|
|
# This is needed for Qt 5.2, possibly 5.3. Can be removed if we raise
|
|
|
|
# the minimum version higher.
|
|
|
|
if(NOT "${Qt5Qml_PRIVATE_INCLUDE_DIRS}" MATCHES "/QtQml/")
|
|
|
|
list(APPEND Qt5Qml_PRIVATE_INCLUDE_DIRS "${_qt5Core_install_prefix}/include/QtCore/${Qt5Core_VERSION}/QtCore")
|
|
|
|
list(APPEND Qt5Qml_PRIVATE_INCLUDE_DIRS "${_qt5Qml_install_prefix}/include/QtQml/${Qt5Core_VERSION}/QtQml")
|
|
|
|
list(REMOVE_DUPLICATES Qt5Qml_PRIVATE_INCLUDE_DIRS)
|
|
|
|
endif()
|
|
|
|
|
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 21:55:11 +00:00
|
|
|
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
2017-02-21 11:01:06 +00:00
|
|
|
target_include_directories(fglauncher PRIVATE ${Qt5Qml_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}")
|