testmodulecomm.pro 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. QT -= gui
  2. QT += dbus
  3. CONFIG += c++11 console
  4. CONFIG -= app_bundle
  5. DEFINES += USE_FASTRTPS
  6. DEFINES += USEDBUS
  7. # The following define makes your compiler emit warnings if you use
  8. # any Qt feature that has been marked deprecated (the exact warnings
  9. # depend on your compiler). Please consult the documentation of the
  10. # deprecated API in order to know how to port your code away from it.
  11. DEFINES += QT_DEPRECATED_WARNINGS
  12. # You can also make your code fail to compile if it uses deprecated APIs.
  13. # In order to do so, uncomment the following line.
  14. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  15. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  16. SOURCES += \
  17. main.cpp \
  18. modulecomm.cpp \
  19. modulecomm_base.cpp
  20. # Default rules for deployment.
  21. qnx: target.path = /tmp/$${TARGET}/bin
  22. else: unix:!android: target.path = /opt/$${TARGET}/bin
  23. !isEmpty(target.path): INSTALLS += target
  24. !include(./shm/modulecomm_shm.pri ) {
  25. error( "Couldn't find the modulecomm_shm.pri file!" )
  26. }
  27. !include(./inter/modulecomm_inter.pri ) {
  28. error( "Couldn't find the modulecomm_inter.pri file!" )
  29. }
  30. if(contains(DEFINES,USE_FASTRTPS)){
  31. !include(./fastrtps/modulecomm_fastrtps.pri ) {
  32. error( "Couldn't find the modulecomm_fastrtps.pri file!" )
  33. }
  34. }
  35. INCLUDEPATH += $$PWD/shm
  36. INCLUDEPATH += $$PWD/fastrtps
  37. INCLUDEPATH += $$PWD/inter
  38. if(contains(DEFINES,USE_FASTRTPS)){
  39. LIBS += -L$$PWD -lfastcdr -lfastrtps
  40. }
  41. HEADERS += \
  42. modulecomm.h \
  43. modulecomm_base.h