1#******************************************************************************* 2# Copyright (c) 2017 IBM Corp. 3# 4# All rights reserved. This program and the accompanying materials 5# are made available under the terms of the Eclipse Public License v1.0 6# and Eclipse Distribution License v1.0 which accompany this distribution. 7# 8# The Eclipse Public License is available at 9# http://www.eclipse.org/legal/epl-v10.html 10# and the Eclipse Distribution License is available at 11# http://www.eclipse.org/org/documents/edl-v10.php. 12# 13# Contributors: 14# Ian Craggs - initial version 15#*******************************************************************************/ 16 17# MQTTPacket Library 18file(GLOB SOURCES "*.c") 19add_library(paho-embed-mqtt3c SHARED ${SOURCES}) 20install(TARGETS paho-embed-mqtt3c DESTINATION /usr/lib) 21target_compile_definitions(paho-embed-mqtt3c PRIVATE MQTT_SERVER MQTT_CLIENT) 22 23add_library(MQTTPacketClient SHARED MQTTFormat MQTTPacket 24 MQTTSerializePublish MQTTDeserializePublish 25 MQTTConnectClient MQTTSubscribeClient MQTTUnsubscribeClient) 26target_compile_definitions(MQTTPacketClient PRIVATE MQTT_CLIENT) 27 28add_library(MQTTPacketServer SHARED MQTTFormat MQTTPacket 29 MQTTSerializePublish MQTTDeserializePublish 30 MQTTConnectServer MQTTSubscribeServer MQTTUnsubscribeServer) 31target_compile_definitions(MQTTPacketServer PRIVATE MQTT_SERVER) 32