Hi

I want to do something like this in order to stub out parts of my code when building but I do not know how to achive something similar to ifdef in the Qt pro file:

I would like to do this:

DEFINES += USE_LIBS // I want to build with all my libs

ifdef USE_LIBS
LIBS+= -lmylib1 -lmyLib2
else
//Stub out parts of the app by not including the libs. The USE_LIBS will be 0 and the corresponding includes in the code will be removed with the USE_LIBS define.
endif

Can this conditional building be done in the pro file, if not how can I achive this?