Merge pull request #4896 from tiagoshibata/opencv4-AlexeyAB

Support building with OpenCV 4
pull/4907/head
Alexey 5 years ago committed by GitHub
commit 1de03f948c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      Makefile

@ -60,7 +60,7 @@ else
CC=gcc
endif
CPP=g++
CPP=g++ -std=c++11
NVCC=nvcc
OPTS=-Ofast
LDFLAGS= -lm -pthread
@ -87,8 +87,8 @@ endif
ifeq ($(OPENCV), 1)
COMMON+= -DOPENCV
CFLAGS+= -DOPENCV
LDFLAGS+= `pkg-config --libs opencv`
COMMON+= `pkg-config --cflags opencv`
LDFLAGS+= `pkg-config --libs opencv4 2> /dev/null || pkg-config --libs opencv`
COMMON+= `pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv`
endif
ifeq ($(OPENMP), 1)

Loading…
Cancel
Save