X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2FCMakeLists.txt;h=26516756a1870da6eb302d084a8880b376e87398;hb=846fd2169832c8938f04386139de746a06e80d4b;hp=573bbf452d3e8cf1f0e9416594decc78e0bb31cc;hpb=136cd6ac51fe8d34f1acc1445ab42c92b4232922;p=flightgear.git diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt index 573bbf452..26516756a 100644 --- a/src/GUI/CMakeLists.txt +++ b/src/GUI/CMakeLists.txt @@ -1,66 +1,120 @@ include(FlightGearComponent) set(SOURCES - 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 + 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 - ) + ) set(HEADERS - 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 + 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 - ) + ) if(WIN32) - message(STATUS "on Windows") - - list(APPEND HEADERS WindowsMouseCursor.hxx) - list(APPEND SOURCES WindowsMouseCursor.cxx) + list(APPEND HEADERS WindowsMouseCursor.hxx + FGWindowsMenuBar.hxx + WindowsFileDialog.hxx) + list(APPEND SOURCES WindowsMouseCursor.cxx + FGWindowsMenuBar.cxx + WindowsFileDialog.cxx) endif() - + if (APPLE) - list(APPEND HEADERS FGCocoaMenuBar.hxx - CocoaFileDialog.hxx + list(APPEND HEADERS FGCocoaMenuBar.hxx + CocoaFileDialog.hxx CocoaMouseCursor.hxx - CocoaAutoreleasePool.hxx) - list(APPEND SOURCES FGCocoaMenuBar.mm + CocoaHelpers.h + CocoaHelpers_private.h) + list(APPEND SOURCES FGCocoaMenuBar.mm CocoaFileDialog.mm CocoaMouseCursor.mm - CocoaMessageBox.mm) + CocoaHelpers.mm) +endif() + + + + +if (HAVE_QT) + qt5_wrap_ui(uic_sources Launcher.ui + EditRatingsFilterDialog.ui + SetupRootDialog.ui + AddCatalogDialog.ui + PathsDialog.ui + LocationWidget.ui) + qt5_add_resources(qrc_sources resources.qrc) + + include_directories(${PROJECT_BINARY_DIR}/src/GUI) + + add_library(fglauncher QtLauncher.cxx + QtLauncher.hxx + QtLauncher_private.hxx + BaseDiagram.cxx + BaseDiagram.hxx + AirportDiagram.cxx + AirportDiagram.hxx + NavaidDiagram.cxx + NavaidDiagram.hxx + EditRatingsFilterDialog.cxx + EditRatingsFilterDialog.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 + LocationWidget.cxx + LocationWidget.hxx + QtMessageBox.cxx + QtMessageBox.hxx + ${uic_sources} + ${qrc_sources}) + + set_property(TARGET fglauncher PROPERTY AUTOMOC ON) + target_link_libraries(fglauncher Qt5::Core Qt5::Widgets ) + + endif() - + + flightgear_component(GUI "${SOURCES}" "${HEADERS}")