Hi everyone,

I was wondering what's the equivalent of #define in my .pro file.
For example, this is what I want to achieve in my .pro file-

Qt Code:
  1. #define shapeA
  2.  
  3.  
  4. #if defined(shapeA)
  5. FORMS += \
  6. formA.ui
  7. #elif defined(shapeB)
  8. FORMS += \
  9. formB.ui
  10. #endif
To copy to clipboard, switch view to plain text mode 

I know # symbol is meant to comment a line in .pro file, I just used it for illustration purpose.
And yes, I did search in google about this. I get some examples regarding the use of CONFIG+= or DEFINES+= . I tried them in my .pro file but couldn't achieve what I wanted to. I would be really glad if someone would help me out regarding this.


-Thanks,
sattu