[solved]How to set pro file Debug / Release in Qt Creator?
-
For Qt Creator on Windows. I try to set the pro file for debug / release build:
For example:
inside my pro file, I need to set boost lib:
debug lib
LIBS += C:/boost_1_46_1/lib/libboost_thread-vc90-mt-gd-1_46_1.lib
LIBS += C:/boost_1_46_1/lib/libboost_date_time-vc90-mt-gd-1_46_1.librelease lib
LIBS += C:/boost_1_46_1/lib/libboost_thread-vc90-mt-1_46_1.lib
LIBS += C:/boost_1_46_1/lib/libboost_date_time-vc90-mt-1_46_1.libHow to change the pro file so that I do not need manually comment out the LIBS for different build?
-
Use scopes:
@CONFIG(debug, debug|release) {
debug stuff
}
CONFIG(release, debug|release) {
release stuff
}
@