catch2/projects/SelfTest/makefile

28 lines
566 B
Makefile
Raw Normal View History

2014-09-01 18:19:59 +02:00
SOURCES = ApproxTests.cpp \
ClassTests.cpp \
ConditionTests.cpp \
ExceptionTests.cpp \
GeneratorTests.cpp \
MessageTests.cpp \
MiscTests.cpp \
TestMain.cpp \
TrickyTests.cpp \
BDDTests.cpp \
VariadicMacrosTests.cpp \
EnumToString.cpp
2014-09-01 18:19:59 +02:00
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
CXX = g++
CXXFLAGS = -I../../include -std=c++11
CatchSelfTest: $(OBJECTS)
$(CXX) -o $@ $^
2014-09-01 18:19:59 +02:00
test: CatchSelfTest
./CatchSelfTest
clean:
2014-09-01 18:19:59 +02:00
rm -f $(OBJECTS) CatchSelfTest