okay, you are thinking very different from what I thought of. I didn't notice you are generating a
src.pro from a
src.pro.in. Actually, I like that idea more than mine. For a port to Qt5 we would then have to generate a .pro-file, run the porting tool and then take the changes back to the
src.pro.in. That is not a huge deal and might work as well.