Examples: Modernize CMakeLists.txt


* Replace CMAKE_AUTOMOC ... with qt_standard_project_setup()
* Remove outdated logic to install Qt examples
* Use Qt6:: instead of Qt::
* Use PRIVATE linkage by default

Task-number: QTBUG-113277
Pick-to: 6.11
Change-Id: Ib65005f1ae98b9cbf3a1427ea58760d37f139bad
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commit7a7ad0833bd70e49435fde9d1612f63fa80d7750
parent0fda81b3b25c5946b34c7e34658097dcda8ab9a0
authorKai Köhne <kai.koehne@qt.io>
committerKai Köhne <kai.koehne@qt.io>
commit timeMon, 9 Mar 2026 09:43:16 +0100