Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved]How to set pro file Debug / Release in Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

[solved]How to set pro file Debug / Release in Qt Creator?

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 5.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kathy
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Duck
      wrote on last edited by
      #2

      Use scopes:

      @CONFIG(debug, debug|release) {

      debug stuff

      }

      CONFIG(release, debug|release) {

      release stuff

      }
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved