Skip to content

Instantly share code, notes, and snippets.

@tibaes
Last active January 22, 2016 11:51
Show Gist options
  • Save tibaes/2ffb36a2368baf5ad2a3 to your computer and use it in GitHub Desktop.
Save tibaes/2ffb36a2368baf5ad2a3 to your computer and use it in GitHub Desktop.
OpenCV Makefile with c++11
SHELL := /bin/bash
CC = g++
CFLAGS=-std=c++11 -Wall -Wno-overloaded-virtual -O2 `pkg-config --cflags opencv`
CXXFLAGS=$(CFLAGS)
LDFLAGS=`pkg-config --libs opencv`
SHELL := /bin/bash
CXX=g++
CXXFLAGS=-std=c++11 -Wall -O2 `pkg-config --cflags /usr/local/opt/opencv3/lib/pkgconfig/opencv.pc`
LDFLAGS=-L/usr/local/Cellar/opencv3/3.1.0_1/share/OpenCV/3rdparty/lib/ `pkg-config --libs /usr/local/opt/opencv3/lib/pkgconfig/opencv.pc`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment