# Communications Library TEMPLATE = lib TARGET = Comms CONFIG += shared c++20 moc QT += core network serialbus QMAKE_CXXFLAGS += -Wall -Werror -Wextra DESTDIR = $$PWD/lib HEADERS = \ include/CanInterface.h \ include/CanMessage.h \ include/CloudConnectClient.h \ include/CloudConnectFrame.h \ include/CloudConnectServer.h \ include/crc.h \ include/format.h \ include/FrameInterface.h \ include/main.h \ include/MessageBuilder.h \ include/MessageDispatcher.h \ include/MessageSpool.h \ include/types.h SOURCES = \ src/CanInterface.cpp \ src/CloudConnectClient.cpp \ src/CloudConnectFrame.cpp \ src/CloudConnectServer.cpp \ src/crc.cpp \ src/format.cpp \ src/FrameInterface.cpp \ src/MessageBuilder.cpp \ src/MessageDispatcher.cpp \ src/MessageSpool.cpp \ src/types.cpp INCLUDEPATH += $$PWD/include # MessageSpool uses the SQLite C API directly (see docs/SDD/AgentMigrationPlan.md # section 5.5). Requires libsqlite3-dev at build time. LIBS += -lsqlite3 isEmpty(PREFIX): PREFIX = $$PWD/../../install target.path = $$PREFIX/lib INSTALLS += target export_headers.path = $$PREFIX/include export_headers.files = $$HEADERS INSTALLS += export_headers export_pri.path = $$PREFIX/lib/Comms export_pri.files = $$PWD/Comms.pri INSTALLS += export_pri