如何定义要在qmake .pro文件中使用的变量?例如:
DEFINES += MYCONDITION # also used in C++ code MYCONDITION { # do something here }
问候,
你可以使用CONFIG
CONFIG += qt console newstuff newstuff { SOURCES += new.cpp HEADERS += new.h }