title: Building multiple targets in Qt / Qmake
body: <p>How could I specify multiple targets with different configurations in Qt? Is there a way to do it in one .pro file?</p>
  
  <p>For example, I would want to build the following 2 .pro files (without having to manually change the .pro file each time):</p>
  
  <p>targetA:</p>
  
  <pre><code>QT += network
  TEMPLATE = app
  SOURCES += main.cpp \
      mainwindow.cpp
  HEADERS += mainwindow.h
  FORMS += mainwindow.ui
  RESOURCES += resource.qrc
  
  TARGET = targetA
  DEFINES += PARAMA
  </code></pre>
  
  <p>targetB:</p>
  
  <pre><code>  QT += network
    TEMPLATE = app
    SOURCES += main.cpp \
        mainwindow.cpp
    HEADERS += mainwindow.h
    FORMS += mainwindow.ui
    RESOURCES += resource.qrc
  
    TARGET = targetB
    DEFINES += PARAMB
  </code></pre>