Hello,

I need some help with qmake and the Makefile generated by Qt. I was searching in Qt Assistant but I didn't find anything to solve my problem.

I'd like to include a file using variables into the Makefile created by "qmake" command. Something like that:

.pro example

Qt Code:
  1. TEMPLATE = lib
  2. TARGET =
  3. DEPENDPATH += .
  4. LIBS += …
  5.  
  6. [B]include ( var.include )[/B]
  7.  
  8. INCLUDEPATH += .
To copy to clipboard, switch view to plain text mode 

Is that possible?

By the way, is there something to include my own variable into the Makefile? Example:

.pro example

Qt Code:
  1. TEMPLATE = lib
  2. TARGET =
  3. DEPENDPATH += .
  4. LIBS += …
  5.  
  6. [B]MYOWNVARIABLE = $(ROOT)[/B]
  7.  
  8. INCLUDEPATH += .
To copy to clipboard, switch view to plain text mode 

Thank you very much.