The QT_QMAKE_EXECUTABLE has to be passed through the cmake calls because the executable may not be in the PATH.