diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-09-06 14:44:11 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-09-14 19:53:49 +0200 |
commit | 3df618b8d96e45e515df8268a1789d361894736d (patch) | |
tree | d5b33430d9552fa342ef20783b91da9a13867681 /tests/auto/network | |
parent | 2e58e242b436d0d462748546d4451f6365de4743 (diff) |
CMake: Avoid creation of XXX_other_files targets
The XXX_other_files targets were introduced to collect files that are
added to resources and expose them to IDEs. This resembles what we did
in qmake with OTHER_FILES but has the downside of cluttering the IDE
with additional targets.
The idiomatic way of exposing such files to IDEs is to add them as
source files to the related target and mark them as HEADER_FILE_ONLY.
We must avoid marking source files as HEADER_FILE_ONLY that are
additionally used in SOURCES. This can only be done reliably when
finalizing a target.
Targets that are not finalized, for example targets that are added with
add_executable instead of qt_add_executable, are handled as before: for
those we still create the XXX_other_files target. The same applies if
CMake < 3.19 is used.
Task-number: QTBUG-99808
Change-Id: I7220e91d726e9409d557d5cd33d171528b9d4a63
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/network')
0 files changed, 0 insertions, 0 deletions