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

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Build System: CMake
    • None
    • 5818f97e7 (dev), b53c1bd4f (dev), 7b0c003dd (dev), 32c9e3f6f (dev), 2aca1b0e9 (dev), 593fd306e (6.10), e16695f23 (6.9), ab33784d8 (tqtc/lts-6.8), 4e64a9889 (dev), 4a90a71a1 (6.10), 4eaf3f1bb (6.9), 7fc4f6e71 (tqtc/lts-6.8), de43839d5 (tqtc/lts-6.5)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes