I'd like to be able to pass arguments to the moc compiler from a qmake project, but only for specific files.
Example, in some .pro file:
HEADER += foo.h \
bar.h \
baz.h
I'd like to pass -ffoo_extra.h
to foo.h, -fbar_extra.h
to bar.h, and nothing to baz.h
This answer suggests using the QMAKE_MOC
variable, but that affects all headers together. Something like that but targeted to individual header files would be ideal.