#------------------------------------------------- # # Project created by QtCreator 2020-11-18T10:59:17 # #------------------------------------------------- QT += core gui opengl greaterThan(QT_MAJOR_VERSION, 4): QT += widgets serialport network TARGET = OpenGLViewSample TEMPLATE = app DESTDIR=$$PWD/../bin # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as 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 DEFINES += _XKEYCHECK_H #pcie class error/warning disabled # 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 INCLUDEPATH += $$PWD/../../Common/ \ $$PWD/../../Common/include/ \ $$PWD/../../Common/include/ffmpeg4.0/ SOURCES += \ $$PWD/../../Common/GCycleQueue.cpp \ $$PWD/../../Common/OpenGLView.cpp \ $$PWD/../../Common/GdImageLib.cpp \ main.cpp \ mainwindow.cpp \ frameless_helper.cpp \ frmmessagebox.cpp \ CustomSlider.cpp \ HEADERS += \ $$PWD/../../Common/GCycleQueue.h \ $$PWD/../../Common/OpenGLView.h \ $$PWD/../../Common/GdImageLib.h \ $$PWD/../../Common/CommDef.h \ mainwindow.h \ commonhelper.h \ frameless_helper.h \ frmmessagebox.h \ CustomSlider.h \ FORMS += \ mainwindow.ui \ frmmessagebox.ui RESOURCES += \ images.qrc unix|win32: LIBS += -lcomsuppw unix|win32: LIBS += -lopengl32 win32{ contains(DEFINES,WIN64){ LIBS += -L$$PWD/../../Common/lib/x64/ffmpeg4.0/ -lavcodec \ -lswscale }else{ LIBS += -L$$PWD/../../Common/lib/x86/ffmpeg4.0/ -lavcodec \ -lswscale } } #文件采用utf-8编码 msvc { QMAKE_CFLAGS += /utf-8 QMAKE_CXXFLAGS += /utf-8 } # exe所带图标 RC_ICONS = skin/ico/Guide.ico