Don't force debug builds in qmake project files.

When creating makefiles with qmake one needs to give the target in command
line. E.g.
  $ qmake -config debug
or
  $ qmake -config release

For Visual studio projects both targets are generated by just running the
qmake command without switches.
This commit is contained in:
Kimmo Varis 2009-08-17 18:12:53 +03:00
parent d16d19e580
commit ec40b4c628
3 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,7 @@ INCLUDEPATH += .
RCC_DIR = temp
MOC_DIR = temp
OBJECTS_DIR = temp
CONFIG += warn_on debug
CONFIG += warn_on
RESOURCES = gui.qrc
FORMS = main.ui \
resultsview.ui \

View File

@ -17,10 +17,15 @@ Compiling
The Makefile works under Linux.
To make it work under Windows with DJGPP, change "g++" to "gxx".
To build cppcheck with qmake, run the commands:
cd src
qmake -config release (or '-config debug' if doing developer build)
make
To compile the GUI one needs Qt development libraries and issue the following commands:
cd gui
qmake
qmake -config release (or '-config debug' if doing developer build)
lrelease gui.pro
make

View File

@ -7,7 +7,7 @@ TARGET = cppcheck
DEPENDPATH += .
INCLUDEPATH += .
OBJECTS_DIR = temp
CONFIG += warn_on debug
CONFIG += warn_on
QT -= gui core
# Input