From ec40b4c628b7ba59b38ff41948d6febfe547e78a Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 17 Aug 2009 18:12:53 +0300 Subject: [PATCH] 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. --- gui/gui.pro | 2 +- readme.txt | 7 ++++++- src/src.pro | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gui/gui.pro b/gui/gui.pro index 74b481242..ea60c6d7a 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -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 \ diff --git a/readme.txt b/readme.txt index 427f343e7..fe0e80f62 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/src/src.pro b/src/src.pro index 6c7ef4b48..7a77c3a82 100644 --- a/src/src.pro +++ b/src/src.pro @@ -7,7 +7,7 @@ TARGET = cppcheck DEPENDPATH += . INCLUDEPATH += . OBJECTS_DIR = temp -CONFIG += warn_on debug +CONFIG += warn_on QT -= gui core # Input