add 1st rough version of test/Makefile

master
roker 2 years ago
parent fa8c1bf66c
commit 68052a3c78
  1. 20
      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
Loading…
Cancel
Save