detection_lidar_cnn_segmentation.pro 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. QT -= gui
  2. CONFIG += c++11 console
  3. CONFIG -= app_bundle
  4. # The following define makes your compiler emit warnings if you use
  5. # any feature of Qt which as been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9. QMAKE_LFLAGS += -no-pie
  10. #DEFINES += CPU_ONLY
  11. #system("echo $PWD")
  12. #system("protoc *.proto -I=./ --cpp_out=./")
  13. system("cd ./caffe/proto ; protoc *.proto -I=./ --cpp_out=./ ; cd ../../ ; echo $PWD")
  14. #QMAKE_PRE_LINK +=
  15. #QMAKE_PRE_LINK += cd ./caffe/proto | protoc *.proto -I=./ --cpp_out=./ | cd ../../ | echo $PWD
  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 += main.cpp \
  21. cluster2d.cpp \
  22. cnn_segmentation.cpp \
  23. feature_generator.cpp \
  24. ../../include/msgtype/object.pb.cc \
  25. ../../include/msgtype/objectarray.pb.cc
  26. INCLUDEPATH += /usr/include/pcl-1.7
  27. INCLUDEPATH += /usr/include/pcl-1.8
  28. INCLUDEPATH += /usr/include/eigen3
  29. INCLUDEPATH += /usr/include/opencv4
  30. #INCLUDEPATH += /opt/ros/kinetic/include/opencv-3.3.1-dev
  31. INCLUDEPATH += /usr/local/cuda-10.2/targets/aarch64-linux/include
  32. LIBS += -lpcl_io -lpcl_common
  33. LIBS += -lboost_system -lavutil -lprotobuf -lcudnn
  34. LIBS += -lcudnn
  35. unix:!macx: LIBS += -L$$PWD/../../../thirdpartylib/caffe/arm64 -lcaffe -lcudnn
  36. HEADERS += \
  37. cluster2d.h \
  38. cnn_segmentation.h \
  39. disjoint_set.h \
  40. feature_generator.h \
  41. ../../include/msgtype/object.pb.h \
  42. ../../include/msgtype/objectarray.pb.h
  43. INCLUDEPATH += $$PWD/caffe/proto/
  44. !include(../../../include/common.pri ) {
  45. error( "Couldn't find the common.pri file!" )
  46. }
  47. !include(../../../include/ivprotobuf.pri ) {
  48. error( "Couldn't find the ivprotobuf.pri file!" )
  49. }
  50. INCLUDEPATH += $$PWD/../../include/msgtype
  51. LIBS += -L/usr/lib/aarch64-linux-gnu/ -lglog