From 68052a3c78b8d1f2c1dbffba1b6154900ff85c31 Mon Sep 17 00:00:00 2001 From: roker Date: Thu, 3 Jun 2021 17:28:03 +0200 Subject: [PATCH] add 1st rough version of test/Makefile --- test/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/Makefile diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..c51f4c6 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,20 @@ +include ../Makefile.conf + +LDFLAGS=-L../src $(ENGINE_LIB) +LDLIBS=-lstdc++ -lpEpEngine -lpEpAdapter +CXXFLAGS:=-I../src -DENGINE_TEST=$(ENGINE_TEST) $(CXXFLAGS) + +TEST_SOURCE=$(wildcard *.cc) +TEST_OBJECTS=$(subst .cc,.o,$(TEST_SOURCE)) + +all: unittests + +unittests: $(TEST_OBJECTS) ../src/libpEpDatatypes.a + $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lgtest -lgtest_main + +.PHONY: clean + +clean: + rm -f unittests + rm -Rf *.dSYM + rm -f *.o