解释QT += core QT -= gui CONFIG += c++11 TARGET = UavRectifyLoadLIb CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS win32{ CONFIG(debug, debug|release){ DESTDIR = $$PWD/../../../../RasterManager/bin/Debug } else{ DESTDIR = $$PWD/../../../../RasterManager/bin/release } INCLUDEPATH += $$PWD/../../../include/gdal1101 DEPENDPATH += $$PWD/../../../include/gdal1101 } else{ CONFIG(debug, debug|release){ DESTDIR = $$PWD/../../../product/release32 } else{ DESTDIR = $$PWD/../../../product/release32 } } # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lUAVAutoRectifyMt -lUAVAutoRectify -lUAVAutoRectifyFi INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_core unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_highgui unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_imgproc INCLUDEPATH += $$PWD/../../../lib/opencvf249 DEPENDPATH += $$PWD/../../../lib/opencvf249 unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_core #unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_highgui unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_imgproc unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_features2d unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_imgcodecs INCLUDEPATH += $$PWD/../../../../../../../usr/local/include DEPENDPATH += $$PWD/../../../../../../../usr/local/include unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lDEMDriver unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lProjection unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lIImage_gC QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
时间: 2023-07-19 18:53:39 浏览: 223
rewire-entry:重新连线以更改create-react-app的入口点
这是一个Qt项目的.pro文件,其中包含了该项目需要使用的库、头文件、源文件等信息的配置。
QT += core 表示该项目需要使用Qt的核心模块。
QT -= gui 表示该项目不需要使用Qt的GUI模块。
CONFIG += c++11 表示该项目需要使用C++11标准。
TARGET = UavRectifyLoadLIb 表示该项目的目标文件名为UavRectifyLoadLIb。
CONFIG += console 表示该项目是控制台应用程序。
CONFIG -= app_bundle 表示该项目不需要生成AppBundle。
TEMPLATE = app 表示该项目是一个应用程序。
SOURCES += main.cpp 表示该项目的源文件为main.cpp。
DEFINES += QT_DEPRECATED_WARNINGS 表示该项目使用了Qt中已经被废弃的API,会产生编译警告。
win32{...} else{...} 表示如果是win32系统,执行前面的语句,否则执行后面的语句。这里是设置DESTDIR的路径。
INCLUDEPATH 和 DEPENDPATH 分别表示头文件和依赖路径。
LIBS 表示需要链接的库文件。
QMAKE_CXXFLAGS_RELEASE 和 QMAKE_LFLAGS_RELEASE 分别表示编译和链接时的参数。
总之,这是一个Qt项目的.pro文件,通过配置各种参数和库文件来构建应用程序。
阅读全文