#------------------------------------------------- # # Project created by QtCreator 2018-01-20T23:28:35 # #------------------------------------------------- QT += widgets QT += concurrent TARGET = ShowUnit TEMPLATE = lib DEFINES += SHOWUNIT_LIBRARY # The following define makes your compiler emit warnings if you use # any feature of Qt which as 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 # 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 SOURCES += \ GraphicsContext.cpp \ HObjectEntry.cpp \ HWndMessage.cpp \ HWndUnit.cpp \ MyStream.cpp \ QHalconWindow.cpp \ ROI.cpp \ ROICircle.cpp \ ROICircularArc.cpp \ ROIController.cpp \ ROILine.cpp \ ROIPoint.cpp \ ROIRect1.cpp \ ROIRect2.cpp \ Util.cpp HEADERS += \ MyStream.h \ Util.h \ showunit_global.h \ GraphicsContext.h \ HObjectEntry.h \ HWndMessage.h \ HWndUnit.h \ ROI.h \ ROICircle.h \ ROICircularArc.h \ ROIController.h \ ROILine.h \ ROIPoint.h \ ROIRect1.h \ ROIRect2.h \ QHalconWindow.h unix { target.path = /usr/lib INSTALLS += target } INCLUDEPATH += $$PWD/../Include/halcon INCLUDEPATH += $$PWD/../Include/halcon/halconcpp win32: { LIBS += -L$$PWD/../lib/halcon/x64-win64/ -lhalconc LIBS += -L$$PWD/../lib/halcon/x64-win64/ -lhalconcpp } unix:{ LIBS += -L$$PWD/../lib/halcon/x64-linux/ -lhalcon LIBS += -L$$PWD/../lib/halcon/x64-linux/ -lhalconcpp } CONFIG(debug, debug|release){ #设置debug配置下编译生成文件的路径 win32: DESTDIR = ../DebugBin #将应用程序放在bin目录下 unix: DESTDIR = ../LinuxDebugBin #将应用程序放在bin目录下 OBJECTS_DIR = ../Output/debug/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下 MOC_DIR = ../Output/debug/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下 UI_DIR = ../Output/debug/$$TARGET/ui } else { #设置release配置下编译生成文件的路径 win32: DESTDIR = ../ReleaseBin #将应用程序放在bin目录下 unix: DESTDIR = ../LinuxReleaseBin #将应用程序放在bin目录下 OBJECTS_DIR = ../Output/release/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下 MOC_DIR = ../Output/release/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下 UI_DIR = ../Output/release/$$TARGET/ui #设置UI文件目录 }