Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
QMake commands and macros
Suths last edited by
I'm trying to get qmake to add a command into the make files it creates (for doing some static analysis), However I’m having a couple of problems the main one being that lists I define in the .pro file are not duplicated in the make files outputted. Take this example:
@LIST = ($$INCLUDEPATH)
LINTINCLUDES = $$join(LIST, " -I", -I)
MYCommand.depends = $(SOURCES)
MyCommand.commands = staticCommand $(LIST ) $ (SOURCES)
QMAKE_EXTRA_TARGETS += MyCommand@
Is there a way to make these lists / macros become defined in the make files qmake produces?
*Note i'm aware I could get the include paths by using INCPATH macro but there are other lists that i need to include.