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

Make each Qt CMake test a standalone project so that the project can be built by IDEs

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Build System: CMake
    • None
    • 779e4cc0b (dev), 6743bbe35 (6.5), 92805d19b (6.6), 68cb89c8b (dev), 8450ab8de (dev), d4b7acec4 (dev), 463d23245 (dev), 0e56dd274 (dev), 1e5252f82 (dev), 1858e6c7b (dev), 03a0e0696 (dev), 5818f97e7 (dev), b53c1bd4f (dev), 7b0c003dd (dev), 32c9e3f6f (dev)

    Description

      With https://codereview.qt-project.org/c/qt/qtbase/+/344693 merged, each CMake test project needs a snippet added to it, to allow opening the project in an IDE like Qt Creator, without having to use qt-cmake-standalone-test to initially configure the project and then manually import the build directory into Creator.

      The snippet should look like

      if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
          project(a_qt_test LANGUAGES C CXX ASM)
          find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
      endif()
      

      Adding a VERSION to project() might be needed for certain tests.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes