N00b help!! Making VS 9 solution file link to release and debug libraries properly.
I am trying to add taglib into my project on Windows, and have it build against the debug library in debug, and the release library in release.
I have this code in my .pri to help.
INCLUDEPATH += $$(TAGLIB_HOME)/include/taglib
LIBS += -L$$(TAGLIB_HOME)/lib
debug:LIBS += -ltagd
!debug:LIBS += -ltag
I create my visual studio solution via this call:-
set EXTRA_QT_CONFIG=debug (which leads to CONFIG *= $$(EXTRA_QT_CONFIG))
qmake -tp vc -r app.pro
Obviously, this gives me a solution that in debug points to the correct debug libraries, but if I switch it to release from within the solution, it still points to the debug libraries in the project properties.
Is there a way to make it create a solution that is dynamic, as the solution is regenerated a lot in my build process, and I don't want to have to manually change the libraries in the project properties each time.
I'm sure that this is an easy question for someone out there, but I am lost.