Browse Source

1、添加识别子模块;

LiuZe 1 year ago
parent
commit
c94d7d0310
3 changed files with 5 additions and 3 deletions
  1. 3 1
      include/pahoc/CMakeLists.txt
  2. 1 1
      include/pahoc/mqtt_async.h
  3. 1 1
      include/rabbitmq/CMakeLists.txt

+ 3 - 1
include/pahoc/CMakeLists.txt

@@ -7,7 +7,9 @@ set(LIBRARY_SOURCE_LIST
         ${GLOB_RECURSE}
 )
 
-set(LIBRARY_DEPEND_LIST paho-mqtt3a)
+set(LIBRARY_DEPEND_LIST paho-mqtt3a
+        -lgflags
+        glog::glog)
 
 add_library(${LIBRARY_NAME} ${LIBRARY_SOURCE_LIST})
 target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_DEPEND_LIST})

+ 1 - 1
include/pahoc/mqtt_async.h

@@ -9,7 +9,7 @@
 
 class MqttAsyncClient;
 
-typedef int (*MessageArrived)(MqttAsyncClient *client, char *topicName, int topicLen, MQTTAsync_message *message);
+typedef int (*MessageArrived)(void *client, char *topicName, int topicLen, MQTTAsync_message *message);
 
 typedef void (*ConnectionLost)(MqttAsyncClient *client, char *cause);
 

+ 1 - 1
include/rabbitmq/CMakeLists.txt

@@ -21,7 +21,7 @@ endif()
 
 set(LIBRARY_DEPEND_LIST
     zxthread
-        zxmessage
+    zxmessage
     ${Rabbitmq}
     ${PROTOBUF_LIBRARIES}
 )