SerialPort examples: update CMakeLists.txt
* Use qt_standard_project_setup() instead of enabling AUTOMOC and
AUTOUIC manually
* Use versionless CMake functions
* Update check for Qt::Widgets when selecting the examples to build
Task-number: QTBUG-108868
Pick-to: 6.5
Change-Id: I71962ae99ed0586a482282df15a1a1f25d273c35
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | fb6b5b5109a19e50b03734619ba3f9716b56b2d2 |
| parent | 39a5f9b5e22ba711ce88bcbbbb1ba29d86d6d0e0 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 10 Feb 2023 11:43:49 +0100 |