Hmm, good question.

You could try including the other mkspec, i.e. using the include() function.

Alternatively you could try removing the subdir from SUBDIRS and instead have a custom command that runs a different qmake on the subdir, or with different arguments.

Cheers,
_