Merge pull request #4032 from mshabunin:fix-pkg-config

This commit is contained in:
Vadim Pisarevsky
2015-05-26 12:47:14 +00:00
7 changed files with 105 additions and 61 deletions

View File

@@ -0,0 +1,12 @@
CXX ?= g++
CXXFLAGS += -c -Wall $(shell pkg-config --cflags opencv)
LDFLAGS += $(shell pkg-config --libs --static opencv)
all: opencv_example
opencv_example: example.o; $(CXX) $< -o $@ $(LDFLAGS)
%.o: %.cpp; $(CXX) $< -o $@ $(CXXFLAGS)
clean: ; rm -f example.o opencv_example