Improve examples CMakeLists.txt
- Remove "# generated from xyz.pro" comment from 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: I024f0c99756c2583a867022b8478f06e088a39af
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
| commit | 7364adf4725a044819ab50ce55f82ad522f9c442 |
| parent | b9bad5bce1929fdadbc9872f90c68116c7aef710 |
| author | Kai Köhne <kai.koehne@qt.io> |
| committer | Kai Köhne <kai.koehne@qt.io> |
| commit time | Mon, 21 Feb 2022 10:24:42 +0100 |
- M examples/serialport/blockingreceiver/CMakeLists.txt
- M examples/serialport/blockingsender/CMakeLists.txt
- M examples/serialport/cenumerator/CMakeLists.txt
- M examples/serialport/creaderasync/CMakeLists.txt
- M examples/serialport/creadersync/CMakeLists.txt
- M examples/serialport/cwriterasync/CMakeLists.txt
- M examples/serialport/cwritersync/CMakeLists.txt
- M examples/serialport/enumerator/CMakeLists.txt
- M examples/serialport/receiver/CMakeLists.txt
- M examples/serialport/sender/CMakeLists.txt
- M examples/serialport/terminal/CMakeLists.txt