I compile a Qt executable using qmake && make on the following project.pro file:
qmake && make
project.pro
INCLUDEPATH *= ../../dependencies/boost QT
In my code in header files I just have:
#ifndef Q_MOC_RUN //Here we include Boost or Ogre headers with Macro #endif
It works perfectly in Qt5 x64 and need not recompiling anything.