testmodulecomm.pro 1.6 KB

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