Use Qt CMake version-less targets
We only need to use QT_MAJOR_VERSION in the find_package() calls, however using the targets after that, we can use the version-less ones.
Thanks to Christophe Giboudeaux for pointing that out.
See: https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html