Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.2
-
None
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
- duplicates
-
QTBUG-108237 Allow for multiple targets inside qt_add_translations and qt_add_lupdate
- Closed