- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    6.2.2
 - 
    None
 - 
    CMake-3.22.1
Visual Studio 2019 v.16.11.8 (same problem with MinGW)
Qt-6.2.2. 
(Possibly related to QTCREATORBUG-24718)
When I use cmake on my qt project, it now (since qt6?) adds a lot of new targets related to the main targets, for example:
HT_Simple (the normal target) HT_Simple_autogen HT_Simple_automoc_json_extraction HT_Simple_other_files HT_Simple_qmltyperegistration
It is even worse when I compile a qml module:
SQView.program SQView.program_init SQView_program SQView_program_autogen SQView_program_automoc_json_extraction SQView_program_other_files SQView_program_qmlcache SQView_program_qmllint SQView_program_qmltyperegistration SQView_program_resources_1 SQView_program_resources_2 SQView_program_tooling
Are these targets useful for the user, except maybe the _qmllint ones? 
 I would like to get rid of them , or at least group them together, because the Visual Studio Solution Explorer becomes unreadable.
Thanks to this SO question, I managed to group all the _autogen targets together, but I don't know how to group or get rid of the other supererogatory targets.
 The _autogen targets problem was supposed to be a bug in CMake-3.9, I don't know about our situation now.
Thank you for your help!
| For Gerrit Dashboard: QTBUG-99808 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 410082,5 | CMake: Put Qt-internal targets into a dedicated FOLDER | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 425986,7 | CMake: Avoid creation of XXX_other_files targets | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 425987,3 | CMake: Place *_qmllint* targets into a separate FOLDER | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 425988,2 | CMake: Move internal targets to the QtInternalTargets FOLDER | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 425989,2 | Doc: List the global CMake properties of QtCore and QtQml | dev | qt/qtdoc | Status: MERGED | +2 | 0 | 
| 433366,2 | Fix the way deffered files are added to a CMake source tree | dev | qt/qtbase | Status: MERGED | +2 | 0 |