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# MQTTClient Library - C 18 19 20file(GLOB SOURCES "*.c" "linux/*.c") 21 22add_library( 23 paho-embed-mqtt3cc SHARED 24 ${SOURCES} 25) 26install(TARGETS paho-embed-mqtt3cc DESTINATION /usr/lib) 27target_include_directories(paho-embed-mqtt3cc PRIVATE "linux") 28target_link_libraries(paho-embed-mqtt3cc paho-embed-mqtt3c) 29target_compile_definitions(paho-embed-mqtt3cc PRIVATE 30 MQTTCLIENT_PLATFORM_HEADER=MQTTLinux.h MQTTCLIENT_QOS2=1) 31