QT += core gui opengl contains(QT_VERSION, ^4\\.[0-8]\\..*) { message("* Using Qt $${QT_VERSION}.") QT += widgets # On my system I have to specify g++ as compiler else it will use clang++ by default #QMAKE_CXX=g++ #QMAKE_CC=gcc } #greaterThan(QT_MAJOR_VERSION, 4): QT += widgets contains(QT_VERSION, ^5\\.[0-8]\\..*) { message("* Using Qt $${QT_VERSION}.") QT += widgets # On my system I have to specify g++ as compiler else it will use clang++ by default #QMAKE_CXX=g++ #QMAKE_CC=gcc } SOURCES += \ main.cpp \ widget.cpp \ objet3d.cpp \ point3D.cpp \ mainwidget.cpp HEADERS += \ widget.h \ objet3d.h \ point3D.h \ mainwidget.h INCLUDEPATH += . ## OpenCV and Glut settings for Unix/Linux unix:!mac { message("* Using settings for Unix/Linux.") INCLUDEPATH += /usr/local/include/opencv \ /usr/include/ LIBS += -L/usr/local/lib/ \ -L/usr/lib/ \ -lopencv_core \ -lopencv_highgui \ -lopencv_imgproc \ -lGLU #-lglut } ## OpenCV settings for Mac OS X macx { message("* Using settings for Mac OS X.") INCLUDEPATH += /usr/local/include/opencv LIBS += -L/usr/local/lib/ \ -lopencv_core \ -lopencv_highgui \ -lopencv_imgproc } ## OpenCV settings for Windows and OpenCV 2.4.11 win32 { message("* Using settings for Windows cross compile.") INCLUDEPATH += ${HOME}/.wine/drive_c/opencv/build/include \ ${HOME}/.wine/drive_c/opencv/build/include/opencv \ ${HOME}/.wine/drive_c/opencv/build/include/opencv2 CONFIG += -static -staticlib CONFIG(debug, debug | release) { LIBS += -L ${HOME}/.wine/drive_c/opencv/build/x86/vc10/lib \ -lopencv_core2411d \ -lopencv_highgui2411d \ -lopencv_imgproc2411d } CONFIG(release, debug | release) { LIBS += -L ${HOME}/.wine/drive_c/opencv/build/x86/vc10/lib \ -lopencv_core2411 \ -lopencv_highgui2411 \ -lopencv_imgproc2411 } } ## OpenCV settings for Windows and OpenCV 2.4.7 #win32 { #message("* Using settings for Windows.") # INCLUDEPATH += "C:\\Dev\\SDK_ROOT\\opencv2.4.7\\build\\include" \ # "C:\\Dev\\SDK_ROOT\\opencv2.4.7\\build\\include\\opencv" \ # "C:\\Dev\\SDK_ROOT\\opencv2.4.7\\build\\include\\opencv2" #CONFIG(debug, debug | release) { # LIBS += -L"C:\\Dev\\SDK_ROOT\\opencv2.4.7\\build\\x86\\vc10\\lib" \ # -lopencv_core247d \ # -lopencv_highgui247d \ # -lopencv_imgproc247d #} #CONFIG(release, debug | release) { # LIBS += -L"C:\\Dev\\SDK_ROOT\\opencv2.4.7\\build\\x86\\vc10\\lib" \ # -lopencv_core247 \ # -lopencv_highgui247 \ # -lopencv_imgproc247 #} #}