catch2/projects/SelfTest/makefile

31 lines
660 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 \
2014-09-01 19:09:37 +02:00
EnumToString.cpp \
ToStringPair.cpp \
ToStringContainers.cpp \
2014-09-01 19:09:37 +02:00
ToStringWhich.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