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

CMake: Add warnings for unhandled resource files

XMLWordPrintable

      Problem:

      Currently adding resource files to a project does not guarantee that the resource files are processed. For example:

       

      qt_add_executable(res_test
          main.cpp
          res.qrc
      ) 

      would easily give the impression that the resource collection file has now been added to the project and that's all that needs to be done but without enabling AUTORCC nothing happens.

       

      This same problem exists with other cmake funcs such as qt_add_qml_module too.

      In these cases it is not obvious to the user why the resources aren't available in their projects.

      Suggestion:

      Add clear warnings when user passes qrc files into qt specific functions in their CMakeLists.txt but RCC would not be run on the qrc file.

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

            qtbuildsystem Qt Build System Team
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes