modulecomm.pro 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. QT -= gui
  2. QT += dbus
  3. QT += xml
  4. TEMPLATE = lib
  5. DEFINES += MODULECOMM_LIBRARY
  6. #unix:DEFINES += USE_FASTRTPS
  7. DEFINES += USEDBUS
  8. CONFIG += c++11
  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. modulecomm.cpp \
  20. modulecomm_base.cpp
  21. HEADERS += \
  22. ivmodulemsg_type.h \
  23. modulecomm.h \
  24. modulecomm_base.h
  25. CONFIG += plugin
  26. # Default rules for deployment.
  27. unix {
  28. target.path = /usr/lib
  29. }
  30. !isEmpty(target.path): INSTALLS += target
  31. !include(./shm/modulecomm_shm.pri ) {
  32. error( "Couldn't find the modulecomm_shm.pri file!" )
  33. }
  34. !include(./inter/modulecomm_inter.pri ) {
  35. error( "Couldn't find the modulecomm_inter.pri file!" )
  36. }
  37. if(contains(DEFINES,USE_FASTRTPS)){
  38. !include(./fastrtps/modulecomm_fastrtps.pri ) {
  39. error( "Couldn't find the modulecomm_fastrtps.pri file!" )
  40. }
  41. }
  42. INCLUDEPATH += $$PWD/shm
  43. INCLUDEPATH += $$PWD/fastrtps
  44. INCLUDEPATH += $$PWD/inter
  45. if(contains(DEFINES,USE_FASTRTPS)){
  46. LIBS += -L$$PWD -lfastcdr -lfastrtps
  47. }