Improve examples CMakeLists.txt
- Remove # generated from xyz.pro comment from pro2cmake
- Remove "# special case" markers for pro2cmake
- Remove automatic use of CMAKE_AUTORCC
- Only opt into CMAKE_AUTOUIC if .ui files are involved
- Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR
- Combine multiple find_package(Qt6 ... calls)
- use REQUIRED COMPONENTS
- sort components alphabetically
- Fix wrong indentations
- Use (only) one empty line after multi-line commands
Pick-to: 6.3
Change-Id: I42cb1788cd53082f71f6a67446dc94f502497dca
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| commit | 97c866c75f5d60a79d799279f315d744fbcc2174 |
| parent | 363d8dc60d7e08eb6a84ea47d08a1cb454c13db8 |
| author | Kai Köhne <kai.koehne@qt.io> |
| committer | Kai Köhne <kai.koehne@qt.io> |
| commit time | Tue, 15 Feb 2022 17:31:17 +0100 |
- M examples/CMakeLists.txt
- M examples/qt3d/3d-text/CMakeLists.txt
- M examples/qt3d/CMakeLists.txt
- M examples/qt3d/advancedcustommaterial/CMakeLists.txt
- M examples/qt3d/anaglyph-rendering/CMakeLists.txt
- M examples/qt3d/audio-visualizer-qml/CMakeLists.txt
- M examples/qt3d/basicshapes-cpp/CMakeLists.txt
- M examples/qt3d/compute-particles/CMakeLists.txt
- M examples/qt3d/controls/CMakeLists.txt
- M examples/qt3d/controlsunderlay/CMakeLists.txt
- M examples/qt3d/instanced-arrays-qml/CMakeLists.txt
- M examples/qt3d/lights/CMakeLists.txt
- M examples/qt3d/multiviewport/CMakeLists.txt
- M examples/qt3d/pbr-materials/CMakeLists.txt
- M examples/qt3d/phong-cubes/CMakeLists.txt
- M examples/qt3d/planets-qml/CMakeLists.txt
- M examples/qt3d/qardboard/CMakeLists.txt
- M examples/qt3d/qgltf/CMakeLists.txt
- M examples/qt3d/scene2d/CMakeLists.txt
- M examples/qt3d/scene3d/CMakeLists.txt
- M examples/qt3d/shadow-map-qml/CMakeLists.txt
- M examples/qt3d/simple-cpp/CMakeLists.txt
- M examples/qt3d/simple-qml/CMakeLists.txt
- M examples/qt3d/simplecustommaterial/CMakeLists.txt
- M examples/qt3d/wave/CMakeLists.txt
- M examples/qt3d/widgets-scene3d/CMakeLists.txt
- M examples/qt3d/wireframe/CMakeLists.txt