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

233 lines
8.2 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)
2018-06-27 22:18:18 +00:00
qt5_wrap_ui(uic_sources SetupRootDialog.ui
InstallSceneryDialog.ui
)
qt5_add_resources(qrc_sources resources.qrc)
if (TARGET fgfs_qm_files)
qt5_add_resources(qrc_sources ${PROJECT_BINARY_DIR}/translations.qrc)
endif()
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
CarrierDiagram.cxx
CarrierDiagram.hxx
2015-11-03 21:28:36 +00:00
NavaidDiagram.cxx
NavaidDiagram.hxx
SetupRootDialog.cxx
SetupRootDialog.hxx
AircraftItemModel.hxx
AircraftItemModel.cxx
CatalogListModel.cxx
CatalogListModel.hxx
QtMessageBox.cxx
QtMessageBox.hxx
QtFileDialog.cxx
QtFileDialog.hxx
InstallSceneryDialog.hxx
InstallSceneryDialog.cxx
LocationController.cxx
LocationController.hxx
LauncherArgumentTokenizer.cxx
LauncherArgumentTokenizer.hxx
AircraftProxyModel.cxx
AircraftProxyModel.hxx
DefaultAircraftLocator.cxx
DefaultAircraftLocator.hxx
2017-02-21 11:01:06 +00:00
LaunchConfig.cxx
LaunchConfig.hxx
MPServersModel.cpp
MPServersModel.h
2018-03-11 11:49:38 +00:00
RecentAircraftModel.cxx
RecentAircraftModel.hxx
RecentLocationsModel.cxx
RecentLocationsModel.hxx
LauncherController.cxx
LauncherController.hxx
AddOnsController.cxx
AddOnsController.hxx
AddonsModel.cxx
AddonsModel.hxx
PixmapImageItem.cxx
PixmapImageItem.hxx
PathListModel.cxx
PathListModel.hxx
CarriersLocationModel.cxx
CarriersLocationModel.hxx
FavouriteAircraftData.cxx
FavouriteAircraftData.hxx
2020-10-03 14:35:22 +00:00
UpdateChecker.cxx
UpdateChecker.hxx
LauncherPackageDelegate.hxx
LauncherPackageDelegate.cxx
LauncherNotificationsController.hxx
LauncherNotificationsController.cxx
${uic_sources}
2017-05-18 16:27:41 +00:00
${qrc_sources}
${qml_sources})
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI )
# we include WindowBuilder.h which needs this
target_include_directories(fglauncher PRIVATE ${OPENSCENEGRAPH_INCLUDE_DIRS})
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::Svg SimGearCore)
if (ENABLE_QQ_UI)
set(QQUI_SOURCES
QQuickDrawable.cxx
QQuickDrawable.hxx)
endif()
add_library(fgqmlui
QtQuickFGCanvasItem.cxx
QtQuickFGCanvasItem.hxx
PropertyItemModel.cxx
PropertyItemModel.hxx
FGQmlInstance.cxx
FGQmlInstance.hxx
FGQmlPropertyNode.cxx
FGQmlPropertyNode.hxx
QmlAircraftInfo.cxx
QmlAircraftInfo.hxx
LocalAircraftCache.cxx
LocalAircraftCache.hxx
PreviewImageItem.cxx
PreviewImageItem.hxx
ThumbnailImageItem.cxx
ThumbnailImageItem.hxx
QmlPropertyModel.hxx
QmlPropertyModel.cxx
QmlPositioned.hxx
QmlPositioned.cxx
QmlNavCacheWrapper.hxx
QmlNavCacheWrapper.cxx
QmlRadioButtonHelper.cxx
QmlRadioButtonHelper.hxx
QtHelpers.hxx
QtHelpers.cxx
UnitsModel.cxx
UnitsModel.hxx
2018-07-18 10:32:47 +00:00
NavaidSearchModel.hxx
NavaidSearchModel.cxx
FlightPlanController.cxx
FlightPlanController.hxx
RouteDiagram.cxx
RouteDiagram.hxx
StackController.cxx
StackController.hxx
ModelDataExtractor.cxx
ModelDataExtractor.hxx
2020-04-01 09:47:29 +00:00
HoverArea.cxx
HoverArea.hxx
FGQQWindowManager.cxx
FGQQWindowManager.hxx
PathUrlHelper.cxx
PathUrlHelper.hxx
DialogStateController.cxx
DialogStateController.hxx
GettingStartedTip.hxx
GettingStartedTip.cxx
GettingStartedTipsController.cxx
GettingStartedTipsController.hxx
TipBackgroundBox.cxx
TipBackgroundBox.hxx
GettingStartedScope.hxx
GettingStartedScope.cxx
${QQUI_SOURCES}
)
set_property(TARGET fgqmlui PROPERTY AUTOMOC ON)
target_link_libraries(fgqmlui Qt5::Quick Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Gui SimGearCore)
target_include_directories(fgqmlui PRIVATE ${PROJECT_BINARY_DIR}/src/GUI ${OPENSCENEGRAPH_INCLUDE_DIRS})
if (ENABLE_QQ_UI)
# this is a headers-only dependency, so we can include <private/qopenglcontext_p.h>
target_link_libraries(fgqmlui Qt5::GuiPrivate)
endif()
if (TARGET fgfs_qm_files)
add_dependencies(fglauncher fgfs_qm_files)
add_dependencies(fgqmlui fgfs_qm_files)
endif()
endif()
flightgear_component(GUI "${SOURCES}" "${HEADERS}")