summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile18
1 files changed, 18 insertions, 0 deletions
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
+