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 RCC_DIR = temp
MOC_DIR = temp MOC_DIR = temp
OBJECTS_DIR = temp OBJECTS_DIR = temp
CONFIG += warn_on debug CONFIG += warn_on
RESOURCES = gui.qrc RESOURCES = gui.qrc
FORMS = main.ui \ FORMS = main.ui \
resultsview.ui \ resultsview.ui \

View File

@ -18,9 +18,14 @@ Compiling
The Makefile works under Linux. The Makefile works under Linux.
To make it work under Windows with DJGPP, change "g++" to "gxx". 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: To compile the GUI one needs Qt development libraries and issue the following commands:
cd gui cd gui
qmake qmake -config release (or '-config debug' if doing developer build)
lrelease gui.pro lrelease gui.pro
make make

View File

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