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

Improve pro2cmake so it's usable as an initial step for converting qmake user projects to CMake

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None

      Description

      The intention is not to advertise it as fool-proof solution for converting qmake user projects to CMake, but rather as a helper that can hopefully handle 60-80% of usual conversion boilerplate.

      Off the top of my head some implementation things to consider:

      • default to generating public CMake Qt API instead of private API
      • fix qml module generation to use qt_add_qml_module where possible
      • handle required vs optional packages better
      • generate a single find_package call (or 2 when mixing required + optional) instead of one per line
      • see if we can handle plugins to be generated as qt_add_plugins and libs as qt_add_library
      • possibly generate qt_finalize_target + MANUAL_FINALIZATION as the default, so that users are aware of the API
      • possibly handle translations
      • check how subdir projects are handled for user projects

      And some product things to consider:

      • do we want to ship it in some form, or just tell people to git clone qtbase to get the script (it's not one file, there are helpers)
      • is a blog post enough, or do we want some documentation on the wiki or docs.qt.io
      • what parts should be documented? most options were for qt internal usage, some features i would not document or maybe even disable, like the special case preservation mechanism

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews