If you don't mind maintaining your own CMake (or similar) script, the sourceprocessor in the SDK allows to specify a target directory for the generated files from R21 onwards.
I would not exactly recommend going that way, but for me it beats using the project tool.