Last active
January 22, 2016 11:51
-
-
Save tibaes/2ffb36a2368baf5ad2a3 to your computer and use it in GitHub Desktop.
OpenCV Makefile with c++11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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