driver_group_grpc_client.pro 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 Qt feature that has 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. system(protoc -I=./../../include/proto3 --cpp_out=./../../include/msgtype ./../../include/proto3/grpcgroup.proto)
  10. # You can also make your code fail to compile if it uses deprecated APIs.
  11. # In order to do so, uncomment the following line.
  12. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  13. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  14. SOURCES += \
  15. ../../include/msgtype/brainstate.pb.cc \
  16. ../../include/msgtype/decition.pb.cc \
  17. ../../include/msgtype/gps.pb.cc \
  18. ../../include/msgtype/gpsimu.pb.cc \
  19. ../../include/msgtype/groupmsg.pb.cc \
  20. ../../include/msgtype/grpcgroup.pb.cc \
  21. ../../include/msgtype/imu.pb.cc \
  22. groupclient.cpp \
  23. grpcgroup.grpc.pb.cc \
  24. main.cpp
  25. # Default rules for deployment.
  26. qnx: target.path = /tmp/$${TARGET}/bin
  27. else: unix:!android: target.path = /opt/$${TARGET}/bin
  28. !isEmpty(target.path): INSTALLS += target
  29. HEADERS += \
  30. ../../include/msgtype/brainstate.pb.h \
  31. ../../include/msgtype/decition.pb.h \
  32. ../../include/msgtype/gps.pb.h \
  33. ../../include/msgtype/gpsimu.pb.h \
  34. ../../include/msgtype/groupmsg.pb.h \
  35. ../../include/msgtype/grpcgroup.pb.h \
  36. ../../include/msgtype/imu.pb.h \
  37. groupclient.h \
  38. grpcgroup.grpc.pb.h
  39. !include(../../../include/common.pri ) {
  40. error( "Couldn't find the common.pri file!" )
  41. }
  42. !include(../../../include/ivprotobuf.pri ) {
  43. error( "Couldn't find the ivprotobuf.pri file!" )
  44. }
  45. !include(../../../include/ivgrpc.pri ) {
  46. error( "Couldn't find the ivgrpc.pri file!" )
  47. }