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
|
|
|
|
NoOfficialHanagar.ui)
|
2014-12-26 12:20:51 +00:00
|
|
|
qt5_add_resources(qrc_sources resources.qrc)
|
|
|
|
|
|
|
|
|
|
|
|
add_library(fglauncher QtLauncher.cxx
|
|
|
|
QtLauncher.hxx
|
2015-10-16 01:05:17 +00:00
|
|
|
QtLauncher_private.hxx
|
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
|
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
|
2014-12-26 12:20:51 +00:00
|
|
|
${uic_sources}
|
|
|
|
${qrc_sources})
|
|
|
|
|
2015-01-07 09:38:02 +00:00
|
|
|
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
|
2014-12-26 12:20:51 +00:00
|
|
|
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets )
|
2016-01-23 21:55:11 +00:00
|
|
|
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
2014-12-26 12:20:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2011-06-26 06:49:37 +00:00
|
|
|
flightgear_component(GUI "${SOURCES}" "${HEADERS}")
|