Hi,
I have a program that I'm working on which has an optional dependency. In my code I have the appropriate #ifdef ENABLE_DEPENENCY ... #endif block, which works fine.

However, I want to make a source package that I can distribute which will allow the user to do the equivalent of the normal "configure; make; make install" in which the presence or absence of the optional dependency is detected and #define is called (or not!) appropriately.

I'm just not sure how to best do this in qmake. Can anyone point me to some documentation. Is it better to use cmake?

Thanks, B.