From 8d6334e96eb381efc1a59ccfab67827d423d3cfe Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Sat, 25 Mar 2017 14:28:11 -0500 Subject: Feature test code --- tests/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/Makefile (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..636f2f3 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,18 @@ +OBJECT=test_feature.o ../src/feature.o ../src/camera.o +CXXFLAGS+=-O2 -march=native -std=c++11 -pedantic-errors +CXXFLAGS+=-g -I../src +CXXFLAGS+=$(shell pkg-config --cflags eigen3 yaml-cpp) +#CXXFLAGS+=$(shell pkg-config --cflags opencv) +LIBS+=$(shell pkg-config --libs eigen3 yaml-cpp) +#LIBS+=$(shell pkg-config --libs opencv) + +test_feature: ${OBJECT} + $(CXX) -o $@ $^ $(CXXFLAGS) ${LIBS} + +.cpp.o: + $(CXX) $(CXXFLAGS) ${LIBS} -c $< -o $@ + +.PHONY: clean +clean: + rm -f test_feature *.o src/*.o + -- cgit v1.1