Created
October 17, 2013 22:29
-
-
Save bestimmaa/7033447 to your computer and use it in GitHub Desktop.
Import OpenCV in Qt Creator project
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
#------------------------------------------------- | |
# | |
# Add OpenCV to QT Creator on Mac OS X | |
# | |
# This pro file assumes that opencv was installed | |
# by homebrew or manually in /usr/local/ | |
# | |
#------------------------------------------------- | |
QT += core gui | |
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
TARGET = Test | |
TEMPLATE = app | |
SOURCES += main.cpp\ | |
mainwindow.cpp | |
HEADERS += mainwindow.h | |
FORMS += mainwindow.ui | |
INCLUDEPATH += /usr/local/include | |
LIBS += -L/usr/local/lib \ | |
-lopencv_core \ | |
-lopencv_imgproc \ | |
-lopencv_calib3d \ | |
-lopencv_highgui \ | |
# Add other OpenCV libs here as necessary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment