2011-03-25 07:59:48 +01:00
|
|
|
|
|
|
|
TEMPLATE = app
|
2011-08-04 21:20:39 +02:00
|
|
|
TARGET = testrunner
|
2011-03-25 07:59:48 +01:00
|
|
|
DEPENDPATH += .
|
|
|
|
INCLUDEPATH += . ../cli ../lib
|
|
|
|
OBJECTS_DIR = temp
|
|
|
|
CONFIG += warn_on console
|
|
|
|
CONFIG -= qt app_bundle
|
|
|
|
win32 {
|
|
|
|
LIBS += -lshlwapi
|
2011-01-31 14:25:51 +01:00
|
|
|
}
|
|
|
|
|
2011-03-25 07:59:48 +01:00
|
|
|
BASEPATH = ../externals/tinyxml/
|
|
|
|
include(../externals/tinyxml/tinyxml.pri)
|
|
|
|
BASEPATH = ../lib/
|
|
|
|
include(../lib/lib.pri)
|
|
|
|
|
|
|
|
# cli/*
|
|
|
|
SOURCES += ../cli/cmdlineparser.cpp \
|
|
|
|
../cli/cppcheckexecutor.cpp \
|
|
|
|
../cli/filelister.cpp \
|
|
|
|
../cli/pathmatch.cpp \
|
2011-04-27 18:24:40 +02:00
|
|
|
../cli/threadexecutor.cpp
|
|
|
|
|
2011-03-25 07:59:48 +01:00
|
|
|
HEADERS += ../cli/cmdlineparser.h \
|
|
|
|
../cli/cppcheckexecutor.h \
|
|
|
|
../cli/filelister.h \
|
|
|
|
../cli/pathmatch.h \
|
|
|
|
../cli/threadexecutor.h
|
|
|
|
|
|
|
|
# test/*
|
|
|
|
|
|
|
|
HEADERS += options.h redirect.h testsuite.h
|
|
|
|
SOURCES += options.cpp \
|
2011-08-03 09:38:07 +02:00
|
|
|
test64bit.cpp \
|
|
|
|
testassignif.cpp \
|
2011-03-25 07:59:48 +01:00
|
|
|
testautovariables.cpp \
|
2011-10-23 15:45:56 +02:00
|
|
|
testboost.cpp \
|
2011-03-25 07:59:48 +01:00
|
|
|
testbufferoverrun.cpp \
|
|
|
|
testcharvar.cpp \
|
|
|
|
testclass.cpp \
|
|
|
|
testcmdlineparser.cpp \
|
|
|
|
testconstructors.cpp \
|
|
|
|
testcppcheck.cpp \
|
|
|
|
testdivision.cpp \
|
|
|
|
testerrorlogger.cpp \
|
|
|
|
testexceptionsafety.cpp \
|
2011-04-07 17:36:42 +02:00
|
|
|
testfilelister.cpp \
|
2011-03-25 07:59:48 +01:00
|
|
|
testincompletestatement.cpp \
|
|
|
|
testmathlib.cpp \
|
|
|
|
testmemleak.cpp \
|
2011-08-03 09:38:07 +02:00
|
|
|
testnonreentrantfunctions.cpp \
|
2011-03-25 07:59:48 +01:00
|
|
|
testnullpointer.cpp \
|
|
|
|
testobsoletefunctions.cpp \
|
|
|
|
testoptions.cpp \
|
|
|
|
testother.cpp \
|
|
|
|
testpath.cpp \
|
|
|
|
testpathmatch.cpp \
|
|
|
|
testpostfixoperator.cpp \
|
|
|
|
testpreprocessor.cpp \
|
|
|
|
testrunner.cpp \
|
|
|
|
testsimplifytokens.cpp \
|
|
|
|
teststl.cpp \
|
|
|
|
testsuite.cpp \
|
2011-05-03 12:18:05 +02:00
|
|
|
testsuppressions.cpp \
|
2011-03-25 07:59:48 +01:00
|
|
|
testsymboldatabase.cpp \
|
|
|
|
testthreadexecutor.cpp \
|
|
|
|
testtoken.cpp \
|
|
|
|
testtokenize.cpp \
|
|
|
|
testuninitvar.cpp \
|
|
|
|
testunusedfunctions.cpp \
|
|
|
|
testunusedprivfunc.cpp \
|
|
|
|
testunusedvar.cpp
|
|
|
|
|
|
|
|
# Change Visual Studio compiler (CL) warning level to W4
|
|
|
|
contains(QMAKE_CXX, cl) {
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -W4
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
|
|
}
|