summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Løve Selvik <andreas.l.selvik@gmail.com>2015-10-13 16:32:52 +0200
committerAndreas Løve Selvik <andreas.l.selvik@gmail.com>2015-10-22 22:24:29 +0200
commit3e5f49435f95de57bffbde53d745dcb4a8f1f870 (patch)
tree566aeea532067a81cbb517fa85edc2fcef1dc250 /Makefile
parent0151742509c23b927b0159230ac70399ac4f8967 (diff)
downloadcaffeonacl-3e5f49435f95de57bffbde53d745dcb4a8f1f870.tar.gz
caffeonacl-3e5f49435f95de57bffbde53d745dcb4a8f1f870.tar.bz2
caffeonacl-3e5f49435f95de57bffbde53d745dcb4a8f1f870.zip
Add opencv_imgcodecs to library path in Makefile
Project does not compile without opencv_imgcodecs in the library path if you're using OpenCV 3. This introduces a OPENCV_VERSION flag in Makefile.config that includes the library if set to 3. (Trying to include it with OpenCV 2 also breaks the build)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5fb6394e..43cb15fe 100644
--- a/Makefile
+++ b/Makefile
@@ -184,7 +184,12 @@ ifeq ($(USE_LMDB), 1)
LIBRARIES += lmdb
endif
ifeq ($(USE_OPENCV), 1)
- LIBRARIES += opencv_core opencv_highgui opencv_imgproc
+ LIBRARIES += opencv_core opencv_highgui opencv_imgproc
+
+ ifeq ($(OPENCV_VERSION), 3)
+ LIBRARIES += opencv_imgcodecs
+ endif
+
endif
PYTHON_LIBRARIES := boost_python python2.7
WARNINGS := -Wall -Wno-sign-compare