1
0
Fork 0
flightgear/src/GUI/CMakeLists.txt

157 lines
5 KiB
Text
Raw Normal View History

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
FileDialog.cxx
PUIFileDialog.cxx
MouseCursor.cxx
MessageBox.cxx
2015-10-16 01:05:17 +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
FileDialog.hxx
PUIFileDialog.hxx
MouseCursor.hxx
MessageBox.hxx
2015-10-16 01:05:17 +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)
endif()
2011-11-20 13:23:52 +00:00
if (APPLE)
list(APPEND HEADERS FGCocoaMenuBar.hxx
CocoaFileDialog.hxx
CocoaMouseCursor.hxx
CocoaHelpers.h
CocoaHelpers_private.h)
list(APPEND SOURCES FGCocoaMenuBar.mm
CocoaFileDialog.mm
CocoaMouseCursor.mm
CocoaHelpers.mm)
2011-11-20 13:23:52 +00:00
endif()
if (HAVE_QT)
2015-10-16 01:05:17 +00:00
qt5_wrap_ui(uic_sources Launcher.ui
EditRatingsFilterDialog.ui
SetupRootDialog.ui
AddCatalogDialog.ui
2015-11-03 21:28:36 +00:00
PathsDialog.ui
LocationWidget.ui
NoOfficialHangar.ui
InstallSceneryDialog.ui
UpdateAllAircraft.ui
)
qt5_add_resources(qrc_sources resources.qrc)
add_library(fglauncher QtLauncher.cxx
QtLauncher.hxx
LauncherMainWindow.hxx
LauncherMainWindow.cxx
2015-11-03 21:28:36 +00:00
BaseDiagram.cxx
BaseDiagram.hxx
AirportDiagram.cxx
AirportDiagram.hxx
2015-11-03 21:28:36 +00:00
NavaidDiagram.cxx
NavaidDiagram.hxx
EditRatingsFilterDialog.cxx
EditRatingsFilterDialog.hxx
2017-02-21 11:01:06 +00:00
ExtraSettingsSection.cxx
ExtraSettingsSection.hxx
SetupRootDialog.cxx
SetupRootDialog.hxx
AircraftItemDelegate.hxx
AircraftItemDelegate.cxx
AircraftModel.hxx
AircraftModel.cxx
CatalogListModel.cxx
CatalogListModel.hxx
AddCatalogDialog.cxx
AddCatalogDialog.hxx
PathsDialog.cxx
PathsDialog.hxx
2015-11-03 21:28:36 +00:00
LocationWidget.cxx
LocationWidget.hxx
QtMessageBox.cxx
QtMessageBox.hxx
QtFileDialog.cxx
QtFileDialog.hxx
InstallSceneryDialog.hxx
InstallSceneryDialog.cxx
2017-02-26 00:39:33 +00:00
previewwindow.cpp
previewwindow.h
2017-01-30 07:00:37 +00:00
SettingsSection.cpp
SettingsSection.h
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
LauncherArgumentTokenizer.cxx
LauncherArgumentTokenizer.hxx
AircraftSearchFilterModel.cxx
AircraftSearchFilterModel.hxx
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
${uic_sources}
${qrc_sources})
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)
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})
endif()
flightgear_component(GUI "${SOURCES}" "${HEADERS}")