CMakeLists.txt: adjust cmake build rules for Qt6 support