Add platform dependent path into pro file problem
Hi,
I've created simple project and i want to add a library to my project and i want to add its path base on my platform so i did this in my pro file:
Code:
win32
{
INCLUDEPATH += C:\Qwt-6.0.2\include
LIBS += -LC:\Qwt-6.0.2\lib -lqwt
CONFIG += qwt
}
but i get " error: Parse Error ('win32')" . When i remove win32 it works fine. any suggestion?
Re: Add platform dependent path into pro file problem
try this form
Code:
win32 {
INCLUDEPATH += C:\Qwt-6.0.2\include
LIBS += -LC:\Qwt-6.0.2\lib -lqwt
CONFIG += qwt
}
Re: Add platform dependent path into pro file problem
What's its difference with my code!!!???
Re: Add platform dependent path into pro file problem
open the brace in front of win32, line two of your code is in line one in the second code
Added after 9 minutes:
take a look at this http://doc.qt.io/qt-4.8/qmake-project-files.html,
Quote:
The opening brace must stand on the same line as the condition
Re: Add platform dependent path into pro file problem
Re: Add platform dependent path into pro file problem
Quote:
Originally Posted by
alizadeh91
:| !!! That's worked!!!
You better use forward slashes anyway.