cmake: Strip whitespace from output of qmake queries