[Development] Visual Studio generator "autogen"
Joerg Bornemann
joerg.bornemann at qt.io
Wed Apr 15 16:09:30 CEST 2026
On 4/9/26 12:44 AM, Scott Bloom wrote:
> When I use AUTO functionality for qt and cmake, it generates additional
> targets, that tend to clutter the IDE solution.
>
> I always run with
>
> set_property( GLOBAL PROPERTY USE_FOLDERS ON )
[...]
> First, doesn’t anyone know how to set the folder property on the autogen
> targets?
>
> Second, what do people think about adding a
> “QT_GENERATED_TARGETS_FOLDER” into the Qt cmake flow, so this is done
> automatically?
With a recent enough Qt and using qt_standard_project_setup() [1] I
don't see the target clutter.
Which versions of
- Qt
- CMake
- Visual Studio
are you using?
Also, there is QT_TARGETS_FOLDER [2] which seems to serve the purpose of
your proposed QT_GENERATED_TARGETS_FOLDER.
I have mentioned this also the last time you brought this up:
https://lists.qt-project.org/pipermail/development/2025-October/046663.html
Cheers,
Joerg
[1] https://doc.qt.io/qt-6/qt-standard-project-setup.html
[2] https://doc.qt.io/qt-6/cmake-global-property-qt-targets-folder.html
More information about the Development
mailing list