modulecomm.pro 1.5 KB

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