You could try setting the QMAKE_CC and QMAKE_CXX variables inside the subdirectory's .pro file.

Cheers,
_