using cmake to avoid qmake configuration errors