Browse Source

add 1st rough version of test/Makefile

master
roker 5 months ago
parent
commit
68052a3c78
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      test/Makefile

+ 20
- 0
test/Makefile View File

@ -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