Hi all. We are building an embedded application. On the target a QT application runs. There is however also other processes running that are written in C. We have customer specific requirements that we differentiate via defines. To avoid editing the defines in each subsection, I have environment variables that I set. According to these environment variables, the code is built.

If the defines are added to QMAKE_CXX_RELEASE, then they are automatically added to the CFLAGS in the generated Makefile. This is then handled at compiletime and all is fine.

Unfortunately the moc compiler only looks at $(DEFINES) and at $(INCLUDE). How can I add my list (-DBLA -DBLAH) to the DEFINES without prepending another -D? Alternatively, how can I pass the defines directly to the moc compiler?