view_pcdmap.pro 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. QT -= gui
  2. CONFIG += c++14 console
  3. CONFIG -= app_bundle
  4. QMAKE_LFLAGS += -no-pie
  5. # The following define makes your compiler emit warnings if you use
  6. # any feature of Qt which as been marked deprecated (the exact warnings
  7. # depend on your compiler). Please consult the documentation of the
  8. # deprecated API in order to know how to port your code away from it.
  9. DEFINES += QT_DEPRECATED_WARNINGS
  10. QMAKE_LFLAGS += -no-pie
  11. # You can also make your code fail to compile if you use deprecated APIs.
  12. # In order to do so, uncomment the following line.
  13. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  14. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  15. SOURCES += main.cpp
  16. INCLUDEPATH += /opt/ros/kinetic/include
  17. INCLUDEPATH += /usr/include/pcl-1.8
  18. INCLUDEPATH += /usr/include/pcl-1.10
  19. INCLUDEPATH += /usr/include/pcl-1.12
  20. INCLUDEPATH += /usr/include/pcl-1.7
  21. INCLUDEPATH += /usr/include/eigen3
  22. INCLUDEPATH += /usr/include/vtk-6.2
  23. unix:LIBS += -lpcl_common\
  24. -lpcl_features\
  25. -lpcl_filters\
  26. -lpcl_io\
  27. -lpcl_io_ply\
  28. -lpcl_kdtree\
  29. -lpcl_keypoints\
  30. -lpcl_octree\
  31. -lpcl_outofcore\
  32. -lpcl_people\
  33. -lpcl_recognition\
  34. -lpcl_registration\
  35. -lpcl_sample_consensus\
  36. -lpcl_search\
  37. -lpcl_segmentation\
  38. -lpcl_surface\
  39. -lpcl_tracking\
  40. -lpcl_visualization
  41. #INCLUDEPATH += $$PWD/../../../include/
  42. #LIBS += -L$$PWD/../../../bin/ -lxmlparam -lmodulecomm -livlog -livfault
  43. # 获取Ubuntu的版本信息
  44. UBUNTU_VERSION = $$system(lsb_release -rs)
  45. # 移除可能存在的空白字符
  46. UBUNTU_VERSION = $$replace(UBUNTU_VERSION, \\s+, )
  47. # 打印版本信息(可选)
  48. message(Ubuntu version: $$UBUNTU_VERSION)
  49. # 判断版本并定义宏
  50. contains(UBUNTU_VERSION, 20\\.04$) {
  51. INCLUDEPATH += /usr/include/vtk-6.3
  52. LIBS += -lvtkCommonExecutionModel-6.3 -lvtkCommonCore-6.3 -lvtkRenderingLOD-6.3 -lvtkRenderingCore-6.3 \
  53. -lvtkFiltersSources-6.3
  54. }
  55. contains(UBUNTU_VERSION, 20\\.04$) {
  56. INCLUDEPATH += /usr/include/vtk-7.1
  57. LIBS += -lvtkCommonExecutionModel-7.1 -lvtkCommonCore-7.1 -lvtkRenderingLOD-7.1 -lvtkRenderingCore-7.1 \
  58. -lvtkFiltersSources-7.1
  59. }
  60. else:contains(UBUNTU_VERSION, 22\\.04$) {
  61. INCLUDEPATH += /usr/include/vtk-9.1
  62. LIBS += -lvtkCommonExecutionModel-9.1 -lvtkCommonCore-9.1 -lvtkRenderingLOD-9.1 -lvtkRenderingCore-9.1 \
  63. -lvtkFiltersSources-9.1
  64. }
  65. else:contains(UBUNTU_VERSION, 24\\.04$) {
  66. DEFINES += UBUNTU_24_04
  67. message(Defining UBUNTU_24_04)
  68. }
  69. else {
  70. message(Unknown Ubuntu version: $$UBUNTU_VERSION)
  71. }
  72. LIBS += -lboost_system