support cmake builds for Qt first