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

Support for multiple targets in qt_add_{lupdate,lrelease,translations}

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.5.2
    • Build System: CMake
    • None
    • All

    Description

      It's common for applications to be spread over multiple targets, e.g. static and/or dynamic libraries + the application executable.

      However, the new target-based qt_add_{lupdate,lrelease,translations} CMake helpers which are recommended in favour of the now deprecated qt_add_translation and qt_create_translation, only supports specifying a single target. This forces you to give up on the convenience of automatic source file deduction and having to specify all sources manually.

      It would be good if there was a better way to handle this use case. Possibly the helpers could take multiple targets as arguments?

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              estan Elvis Stansvik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes