2009-07-14 13:36:05 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = cppcheck
|
|
|
|
DEPENDPATH += .
|
2009-10-25 21:20:42 +01:00
|
|
|
INCLUDEPATH += . ../lib
|
2009-07-14 13:36:05 +02:00
|
|
|
OBJECTS_DIR = temp
|
2009-08-17 17:12:53 +02:00
|
|
|
CONFIG += warn_on
|
2009-08-30 13:26:10 +02:00
|
|
|
CONFIG -= qt app_bundle
|
2009-07-14 13:36:05 +02:00
|
|
|
|
2009-10-25 19:29:10 +01:00
|
|
|
include($$PWD/../lib/lib.pri)
|
|
|
|
|
2009-10-25 21:20:42 +01:00
|
|
|
SOURCES += main.cpp \
|
|
|
|
cppcheckexecutor.cpp \
|
|
|
|
threadexecutor.cpp
|
|
|
|
HEADERS += cppcheckexecutor.cpp \
|
|
|
|
threadexecutor.cpp
|
2009-07-14 13:36:05 +02:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
CONFIG += embed_manifest_exe console
|
|
|
|
RC_FILE = cppcheck.rc
|
|
|
|
HEADERS += resource.h
|
2009-07-18 12:10:24 +02:00
|
|
|
LIBS += -lshlwapi
|
|
|
|
}
|
|
|
|
|
|
|
|
# Add more strict compiling flags for GCC
|
|
|
|
# These flags are used in original (not generated by QMake) makefiles
|
|
|
|
contains(QMAKE_CXX, g++) {
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic
|
|
|
|
}
|
|
|
|
|
|
|
|
# Change Visual Studio compiler (CL) warning level to W4
|
|
|
|
contains(QMAKE_CXX, cl) {
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -W4
|
2009-07-14 13:36:05 +02:00
|
|
|
}
|