ShowUnit.pro 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-01-20T23:28:35
  4. #
  5. #-------------------------------------------------
  6. QT += widgets
  7. QT += concurrent
  8. TARGET = ShowUnit
  9. TEMPLATE = lib
  10. DEFINES += SHOWUNIT_LIBRARY
  11. # The following define makes your compiler emit warnings if you use
  12. # any feature of Qt which as been marked as deprecated (the exact warnings
  13. # depend on your compiler). Please consult the documentation of the
  14. # deprecated API in order to know how to port your code away from it.
  15. DEFINES += QT_DEPRECATED_WARNINGS
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. SOURCES += \
  21. GraphicsContext.cpp \
  22. HObjectEntry.cpp \
  23. HWndMessage.cpp \
  24. HWndUnit.cpp \
  25. MyStream.cpp \
  26. QHalconWindow.cpp \
  27. ROI.cpp \
  28. ROICircle.cpp \
  29. ROICircularArc.cpp \
  30. ROIController.cpp \
  31. ROILine.cpp \
  32. ROIPoint.cpp \
  33. ROIRect1.cpp \
  34. ROIRect2.cpp \
  35. Util.cpp
  36. HEADERS += \
  37. MyStream.h \
  38. Util.h \
  39. showunit_global.h \
  40. GraphicsContext.h \
  41. HObjectEntry.h \
  42. HWndMessage.h \
  43. HWndUnit.h \
  44. ROI.h \
  45. ROICircle.h \
  46. ROICircularArc.h \
  47. ROIController.h \
  48. ROILine.h \
  49. ROIPoint.h \
  50. ROIRect1.h \
  51. ROIRect2.h \
  52. QHalconWindow.h
  53. unix {
  54. target.path = /usr/lib
  55. INSTALLS += target
  56. }
  57. INCLUDEPATH += $$PWD/../Include/halcon
  58. INCLUDEPATH += $$PWD/../Include/halcon/halconcpp
  59. win32: {
  60. LIBS += -L$$PWD/../lib/halcon/x64-win64/ -lhalconc
  61. LIBS += -L$$PWD/../lib/halcon/x64-win64/ -lhalconcpp
  62. }
  63. unix:{
  64. LIBS += -L$$PWD/../lib/halcon/x64-linux/ -lhalcon
  65. LIBS += -L$$PWD/../lib/halcon/x64-linux/ -lhalconcpp
  66. }
  67. CONFIG(debug, debug|release){
  68. #设置debug配置下编译生成文件的路径
  69. win32: DESTDIR = ../DebugBin #将应用程序放在bin目录下
  70. unix: DESTDIR = ../LinuxDebugBin #将应用程序放在bin目录下
  71. OBJECTS_DIR = ../Output/debug/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  72. MOC_DIR = ../Output/debug/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  73. UI_DIR = ../Output/debug/$$TARGET/ui
  74. } else {
  75. #设置release配置下编译生成文件的路径
  76. win32: DESTDIR = ../ReleaseBin #将应用程序放在bin目录下
  77. unix: DESTDIR = ../LinuxReleaseBin #将应用程序放在bin目录下
  78. OBJECTS_DIR = ../Output/release/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  79. MOC_DIR = ../Output/release/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  80. UI_DIR = ../Output/release/$$TARGET/ui #设置UI文件目录
  81. }