@@ -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})
@@ -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);
@@ -21,7 +21,7 @@ endif()
set(LIBRARY_DEPEND_LIST
zxthread
- zxmessage
+ zxmessage
${Rabbitmq}
${PROTOBUF_LIBRARIES}