summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorMartin Miller2017-03-25 14:28:11 -0500
committerMartin Miller2017-03-25 14:28:11 -0500
commit8d6334e96eb381efc1a59ccfab67827d423d3cfe (patch)
treef22418d2fd480ef1930707c283dcd90999a5ee20 /tests/Makefile
parentde63c9b1dd8587516159affb79bdac0b9a5b5de8 (diff)
downloadrefslam-8d6334e96eb381efc1a59ccfab67827d423d3cfe.zip
refslam-8d6334e96eb381efc1a59ccfab67827d423d3cfe.tar.gz
Feature test code
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
+