summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/cmake-macros/examples.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Use qt_add_ui instead of qt6_add_uiOrkun Tokdemir2024-08-051-10/+10
| | | | | | | Pick-to: 6.8 Task-number: QTBUG-126463 Change-Id: Ib5d207e72c0de436b4daec29efd8baec8a998103 Reviewed-by: Alexandru Croitor <[email protected]>
* CMake: Add `qt_add_ui` APIOrkun Tokdemir2024-05-071-0/+26
This commit introduces a new `qt_add_ui` CMake API to be used instead of AUTOUIC, due to several hard-to-fix bugs it has. * Resolves the issue where Ninja required two passes to correctly build `.ui` files. * Avoids build folder leakage, in contrast to `AUTOUIC` * Prevents unnecessary recompilation of unchanged source files when a `.ui` file is modified with Ninja. * Since `qt_add_ui` does not scan source files, it provides a faster build than `AUTOUIC`. These changes aim to streamline the build process and improve efficiency when working with `.ui` files. This addresses the following issues: https://gitlab.kitware.com/cmake/cmake/-/issues/16776 https://gitlab.kitware.com/cmake/cmake/-/issues/25436 https://gitlab.kitware.com/cmake/cmake/-/issues/25195 Task-number: QTBUG-110369 Fixes: QTBUG-114563 Change-Id: I34cd3df70542becf6e08502f0cbcd1c11eeeadd6 Reviewed-by: Alexandru Croitor <[email protected]>