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

CMake: Support adding files to the Qt resource system (without qrc)

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • None
    • Build System: CMake
    • None

    Description

      Do support adding files to the Qt resource system without going through qrc.

      Why?

      • qrc is problematic in that the build system has to query an external tool (rcc) to get the dependencies right, which in turn causes issues when building Qt itself.
      • Also IDE's etc have to learn about qrc.

      Proposal

      qt_add_as_resource(target [PREFIX prefix] [OPTIONS ...] file1 file2)
      

      Open questions:

      • How to handle 'big resources'?

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes