diff options
Diffstat (limited to 'QA/UnitTest/Makefile.inc')
-rw-r--r-- | QA/UnitTest/Makefile.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/QA/UnitTest/Makefile.inc b/QA/UnitTest/Makefile.inc new file mode 100644 index 0000000..820fb64 --- /dev/null +++ b/QA/UnitTest/Makefile.inc @@ -0,0 +1,17 @@ +UNITTEST_TARGET = QA/UnitTest/checker +UNITTEST_SOURCES += \ + QA/UnitTest/checker.cpp +UNITTEST_OBJECTS = \ + $(UNITTEST_SOURCES:.cpp=.o) + +TEST_TARGETS += check + +CLEANFILES += $(UNITTEST_OBJECTS) $(UNITTEST_TARGET) + +.PHONY: check +check: $(UNITTEST_TARGET) + $(TEST_RUNNER) ./$(UNITTEST_TARGET) + +$(UNITTEST_TARGET): $(CPPUNIT_TARGET) $(UNITTEST_OBJECTS) $(UNITTEST_LIBS) $(BUNDLED_LIBS) + $(QUIET_LINK)$(CXX) -o $(UNITTEST_TARGET) $(UNITTEST_OBJECTS) $(LDFLAGS) $(CPPUNIT_TARGET) $(UNITTEST_LIBS) $(BUNDLED_LIBS) $(LIBS) + |