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

Transition to CMake



    • Epic
    • Resolution: Done
    • P1: Critical
    • 6.2
    • None
    • Build System
    • None
    • Build system transition to CMake



      We have supported three build systems in Qt: qmake, Qbs, and CMake. We plan that in Qt 6, the main build tool is CMake, so we need to create a CMake-based build system, which is used to build Qt and which is used by customers in their Qt projects. 

      Business justification

      Helps customers, who already use CMake, to start using Qt. 

      What is needed?

      • CMake build system
        • CMakeLists.txt files as replacement for the .pro/pri files
        • Conversion script exists, but requires some hand edits into the build files 
      • CMake build system for Qt Creator 
      • Good CMake support in Qt Creator 
        • Toolchain support for B2Qt
      • Improve CMake support to at least the same level as qmake
        • Fix/complete missing features for Qt 5 CMake support to build Qt apps
      • Promote CMake as the preferred build system for new projects already now
      • Make sure the default install of Qt Creator install everything needed for CMake to work
      • Change the Creator wizards etc to create CMake applications by default (currently offers qmake, CMake and QBS with qmake as default)
      • Change the examples to use CMake instead of qmake
      • Remove all linking and promotion of QBS from documentation and Creator (QBS documentation can be there, but we should not position it as something to start new things with)
      • Clearly mark to all QBS documentation, tutorials, … that QBS is deprecated and should not be used in new projects
      • Remove QBS from option list of new application wizards? Or mark that it is deprecated
      • Write blog posts about how to use CMake with Qt and Creator 
      • Create tutorials, videos, webinars etc on how to use CMake with Qt 5 application



        Issue Links

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



              tpyssysa Tino Pyssysalo
              tpyssysa Tino Pyssysalo
              Tino Pyssysalo Tino Pyssysalo
              Kai Köhne Kai Köhne
              0 Vote for this issue
              24 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes