Make it possible to test with other devices
Use Qt5 cmake macros

The qt_* macros have a different signature
Shut up cmake 3.0