Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140464

Examples: Simplify CMake projects using qt_standard_project_setup()

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Examples and Demos
    • None

      qt_standard_project_setup() provides numerous conveniences, listed at https://doc.qt.io/qt-6/qt-standard-project-setup.html#description

      Let's take advantage of this function and use it to simplify our projects. For example:

      • A basic qt_standard_project_setup() removes the need to write set(CMAKE_AUTOMOC ON), set(CMAKE_AUTOUIC ON), or include(GNUInstallDirs)
      • qt_standard_project_setup(REQUIRES 6.5) removes the need to write qt_policy(SET QTP0001 NEW) in CMakeLists.txt or RESOURCE_PREFIX /qt/qml in qt_add_qml_module()

        For Gerrit Dashboard: QTBUG-140464
        # Subject Branch Project Status CR V

            skoh-qt Sze Howe Koh
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change