INCLUDEPATH in qmake project file doesn't work

前端 未结 12 2089
梦如初夏
梦如初夏 2020-12-06 09:53

I\'ve got a problem with include in a qmake project. In my .pro file I\'ve got:

INCLUDEPATH += \"C:\\OpenCV\\build\\include\"

and in my cpp

12条回答
  •  佛祖请我去吃肉
    2020-12-06 10:08

    here's one of my pro files:

        # Blah Application
    
    TEMPLATE  = app
    CONFIG   += qt console staticlib debug_and_release
    QT       -= gui
    QT       += network sql xml
    TARGET    = blah
    
    CONFIG(debug, debug|release){
        DESTDIR = debug
        LIBS += -L../../../lib/core/debug -lcore
    } else {
        DESTDIR = release
        LIBS += -L../../../lib/core/release -lcore
    }
    DEPENDPATH  += . ../../lib ../../../lib/core
    INCLUDEPATH += . ../../lib ../../../lib/core
    
    # Library files
    HEADERS += mtBlahRTP.h
    SOURCES += mtBlahRTP.cpp
    
    # Input
    HEADERS +=
    SOURCES += main.cpp
    

    The include path points to the RELATIVE directory of my lib files. mtBlahRTP.h and mtBlahRTP.cpp are in ../../lib

提交回复
热议问题