Is there a way to include different libraries depending on the operating system with Qt-Creator?
In other words, is there an equivalent for the following lines in the .pro file:
#ifdef Q_WS_WIN
include(C:/myProject/myLybrary/my-lib.pri)
#endif
#ifdef Q_WS_X11
include(/home/user/myProject/myLybrary/my-lib.pri)
#endif
I know that the character '#' identifies a comment in the .pro file. What's the alternative here?
Have you tried this:
unix: include(/home/user/myProject/myLybrary/my-lib.pri)
win32: include(C:/myProject/myLybrary/my-lib.pri)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With