2009-07-14 13:36:05 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = cppcheck
|
|
|
|
DEPENDPATH += .
|
2010-12-12 17:26:13 +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
|
|
|
|
2010-12-18 15:29:58 +01:00
|
|
|
BASEPATH = ../externals/tinyxml/
|
2010-12-12 11:56:22 +01:00
|
|
|
include($$PWD/../externals/tinyxml/tinyxml.pri)
|
2010-12-18 16:03:46 +01:00
|
|
|
BASEPATH = ../lib/
|
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 \
|
2010-12-12 11:56:22 +01:00
|
|
|
cmdlineparser.cpp \
|
2011-01-18 18:37:15 +01:00
|
|
|
filelister.cpp \
|
|
|
|
filelister_unix.cpp \
|
|
|
|
filelister_win32.cpp \
|
2011-01-31 14:25:51 +01:00
|
|
|
pathmatch.cpp \
|
2009-10-25 21:20:42 +01:00
|
|
|
threadexecutor.cpp
|
2011-01-31 14:25:51 +01:00
|
|
|
|
2010-12-12 11:56:22 +01:00
|
|
|
HEADERS += cppcheckexecutor.h \
|
2011-01-18 18:37:15 +01:00
|
|
|
cmdlineparser.h \
|
|
|
|
filelister.h \
|
|
|
|
filelister_unix.h \
|
|
|
|
filelister_win32.h \
|
2011-01-31 14:25:51 +01:00
|
|
|
pathmatch.h \
|
2010-12-12 11:56:22 +01:00
|
|
|
threadexecutor.h
|
2009-07-14 13:36:05 +02:00
|
|
|
|
2009-11-28 17:50:53 +01:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DEFINES += NDEBUG
|
|
|
|
}
|
|
|
|
|
2009-07-14 13:36:05 +02:00
|
|
|
win32 {
|
|
|
|
CONFIG += embed_manifest_exe console
|
2010-12-18 10:47:28 +01:00
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
2009-07-14 13:36:05 +02:00
|
|
|
RC_FILE = cppcheck.rc
|
2009-10-28 17:37:38 +01:00
|
|
|
HEADERS += resource.h
|
2009-07-18 12:10:24 +02:00
|
|
|
LIBS += -lshlwapi
|
|
|
|
}
|
|
|
|
|
|
|
|
# Add more strict compiling flags for GCC
|
|
|
|
contains(QMAKE_CXX, g++) {
|
2010-04-03 13:08:17 +02:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
|
2009-11-28 18:29:32 +01:00
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
# checked STL
|
|
|
|
DEFINES += _GLIBCXX_DEBUG
|
|
|
|
}
|
2009-07-18 12:10:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|