Home | History | Annotate | Download | only in example_cmake
      1 CXX ?= g++
      2 
      3 CXXFLAGS += -c -Wall $(shell pkg-config --cflags opencv)
      4 LDFLAGS += $(shell pkg-config --libs --static opencv)
      5 
      6 all: opencv_example
      7 
      8 opencv_example: example.o; $(CXX) $< -o $@ $(LDFLAGS)
      9 
     10 %.o: %.cpp; $(CXX) $< -o $@ $(CXXFLAGS)
     11 
     12 clean: ; rm -f example.o opencv_example
     13