How do I reference environment variables in my project's .includes file? For the environment variable "SDK" I've tied %SDK% and $SDK. How do I reference it?
Printable View
How do I reference environment variables in my project's .includes file? For the environment variable "SDK" I've tied %SDK% and $SDK. How do I reference it?
Try.Code:
$$(var)
That doesn't work either. This is what I tried:
Code:
$$(CC_VC2010)/VC/atlmfc/include
I added this to my .pro file:which resulted in this output:Code:
message(QTDIR %QTDIR% $QTDIR $$(QTDIR))
This shows $$(var) worked for me. Maybe I misunderstood what you mean by ".includes file".Code:
Project MESSAGE: QTDIR %QTDIR% $QTDIR C:/Qt/2009.03/qt
I don't know if it's different from a normal project. I have a file that was created with my makefile import project that is (projectname).includes which allows QT Creator to find directories used for code completion and syntax checking.