MQTTPacket library (clone of https://os.mbed.com/teams/mqtt/code/MQTTPacket/)

Dependents:   MQTT_ON_AWS MQTT

Files at this revision

API Documentation at this revision

Comitter:
ccli8
Date:
Thu Sep 02 17:42:47 2021 +0800
Parent:
25:aedcaf7984d5
Commit message:
Enable cmake

Changed in this revision

CMakeLists.txt Show annotated file Show diff for this revision Revisions of this file
diff -r aedcaf7984d5 -r 532a34f0bf56 CMakeLists.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CMakeLists.txt	Thu Sep 02 17:42:47 2021 +0800
@@ -0,0 +1,24 @@
+# Copyright (c) 2020 ARM Limited. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
+add_library(MQTTPacket INTERFACE)
+
+target_include_directories(MQTTPacket
+    INTERFACE
+        .
+)
+
+target_sources(MQTTPacket
+    INTERFACE
+        MQTTUnsubscribeServer.c
+        MQTTUnsubscribeClient.c
+        MQTTSubscribeServer.c
+        MQTTSubscribeClient.c
+        MQTTSerializePublish.c
+        MQTTPacket.c
+        MQTTFormat.c
+        MQTTDeserializePublish.c
+        MQTTConnectServer.c
+        MQTTConnectClient.c
+)
+