I have a question here. I use Qt4.4.1 in WindowsXP with VS2008. Now, i want to link different libraries for debug and release setups in VS project. I tried to play around with scopes in .pro file but i can't seem to get it right. For example, for Qwt i want to link qwtd5.lib for debug and qwt5.lib for release. This is what i have right now:
However, when i create a project with qmake i get qwtd5.lib in both debug and release. Of course if i change CONFIG toCONFIG += debug_and_release build_all
CONFIG(debug, debug|release) {
LIBS += C:\Qt\4.4.1\src\3rdparty\qwt-5.1.1\lib\qwtd5.lib
} else {
LIBS += C:\Qt\4.4.1\src\3rdparty\qwt-5.1.1\lib\qwt5.lib
}
CONFIG += release
then i get qwt5.lib everywhere. But i wonder if it's possible to put the right libraries in debug/release with a single pass of qmake.
Thanks.
Bookmarks