cppcheck/cli/cli.pro

55 lines
1.3 KiB
Prolog
Raw Normal View History

TEMPLATE = app
TARGET = cppcheck
DEPENDPATH += .
INCLUDEPATH += . ../lib
OBJECTS_DIR = temp
CONFIG += warn_on
CONFIG -= qt app_bundle
BASEPATH = ../externals/tinyxml/
2010-12-12 11:56:22 +01:00
include($$PWD/../externals/tinyxml/tinyxml.pri)
BASEPATH = ../lib/
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 \
filelister.cpp \
filelister_unix.cpp \
filelister_win32.cpp \
2009-10-25 21:20:42 +01:00
threadexecutor.cpp
2010-12-12 11:56:22 +01:00
HEADERS += cppcheckexecutor.h \
cmdlineparser.h \
filelister.h \
filelister_unix.h \
filelister_win32.h \
2010-12-12 11:56:22 +01:00
threadexecutor.h
CONFIG(release, debug|release) {
DEFINES += NDEBUG
}
win32 {
CONFIG += embed_manifest_exe console
DEFINES += _CRT_SECURE_NO_WARNINGS
RC_FILE = cppcheck.rc
HEADERS += resource.h
LIBS += -lshlwapi
}
# Add more strict compiling flags for GCC
contains(QMAKE_CXX, g++) {
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
}
}
# Change Visual Studio compiler (CL) warning level to W4
contains(QMAKE_CXX, cl) {
QMAKE_CXXFLAGS_WARN_ON -= -W3
QMAKE_CXXFLAGS_WARN_ON += -W4
}