Trick with android/libs should work for older Qt versions, too, and it works the same on qmake and cmake. If all else fails, you could have different .pri per Qt version... It's a nuisance for sure but my hope is that for Qt 5.14+ it will stay as it is for long.