Skip to content

Instantly share code, notes, and snippets.

@kevinhughes27
Created April 4, 2013 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kevinhughes27/5311583 to your computer and use it in GitHub Desktop.
Save kevinhughes27/5311583 to your computer and use it in GitHub Desktop.
MinGW Makefile for OpenCV Project
CC = g++
CFLAGS = -g -Wall
SRCS = HelloWorld.cpp
PROG = HelloWorld.exe
OPENCV = -I"C:\opencv\build\include" -L"C:\opencv\build\x86\mingw\lib" -lopencv_core243 -lopencv_highgui243
$(PROG) : $(SRCS)
$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(OPENCV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment