[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.lib

    release 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.lib

    How 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

    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.