CMake: Modernize the CMake code


Instead of including just QtSetup, rely on qt_build_repo() like the
rest of our repos.

Because qt_build_repo does not automatically add the translations
subdirectory for processing, create a src subdirectory that is
auto-loaded by qt_build_repo.
Add the translations subdirectory to the src subdirectory.

This is needed for proper SBOM document generation which relies on
qt_build_repo being called.

Clean up some of the outdated comments left over from the qmake
porting.

Task-number: QTBUG-122899
Task-number: QTBUG-128320
Change-Id: I3b60393b162066dd2c2df2e9b1d45cb5f1fbd493
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commit45b5935af81724e854a2fb7d69aaf1dd5ec0a1dd
parent0c9efa017000c56946383b9959b4681ade63439c
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeMon, 9 Dec 2024 13:39:18 +0100