for a given qmake project:
CONFIG += debug
CPPUTEST_HOME = /Users/vodde/workspace/cpputest
TEMPLATE = app
TARGET = design_patterns_qmake
DEPENDPATH += .
INCLUDEPATH += (CPPUTEST_HOME)/include
CONFIG += qt
CONFIG += x11
CONFIG += cpputest
QMAKE_CXXFLAGS_DEBUG += -include $(CPPUTEST_HOME)/include/CppUTest/MemoryLeakDetectorNewMacros.h
QMAKE_CXXFLAGS_DEBUG += -include $(CPPUTEST_HOME)/include/CppUTest/MemoryLeakDetectorMallocMacros.h
# Input
SOURCES += factorial.cpp
SOURCES += testdriver.cpp
SOURCES += tests.cpp
how can I configure the project file to include the test driver, and test file so that only when the debug flag is raised it will include the test source files?
- see here https://cpputest.github.io/manual.html
- errors when using QMake http://pastebin.com/v5wrtjMf