mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 19:22:25 +01:00
Update Makefile for SelfTest
This is update to Makefile submitted in PR #141
This commit is contained in:
parent
5bb05400af
commit
a77c882bbc
@ -1,15 +1,19 @@
|
||||
SOURCES = ApproxTests.cpp ClassTests.cpp ConditionTests.cpp \
|
||||
ExceptionTests.cpp GeneratorTests.cpp MessageTests.cpp \
|
||||
MiscTests.cpp TestMain.cpp TrickyTests.cpp \
|
||||
catch_self_test.cpp
|
||||
SOURCES = ApproxTests.cpp BDDTests.cpp catch_self_test.cpp ClassTests.cpp \
|
||||
CmdLineTests.cpp ConditionTests.cpp ExceptionTests.cpp GeneratorTests.cpp \
|
||||
MessageTests.cpp MiscTests.cpp TestMain.cpp TrickyTests.cpp \
|
||||
VariadicMacrosTests.cpp
|
||||
|
||||
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
|
||||
|
||||
CXXFLAGS = -I../../include
|
||||
|
||||
main: $(OBJECTS)
|
||||
catch_self_test: $(OBJECTS)
|
||||
$(CXX) -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) main
|
||||
rm -f $(OBJECTS) catch_self_test
|
||||
|
||||
.PHONY: main clean
|
||||
check: catch_self_test
|
||||
./catch_self_test
|
||||
|
||||
.PHONY: catch_self_test clean check
|
||||
|
Loading…
Reference in New Issue
Block a user