Read QT_MAJOR_VERSION dynamically in CMake Config

Because this library can build against both qt5/qt6 but the cmake config file would differ between the two otherwise

Merge request reports

Loading