代码拉取完成,页面将自动刷新
#
# This software is supplied under the terms of the MIT License, a
# copy of which should be located in the distribution where this
# file was obtained (LICENSE.txt). A copy of the license may also be
# found online at https://opensource.org/licenses/MIT.
cmake_minimum_required (VERSION 2.8.12)
project(mqtt_async)
find_package(nng CONFIG REQUIRED)
find_package(Threads)
add_executable(mqtt_async mqtt_async.c)
target_link_libraries(mqtt_async nng::nng)
target_link_libraries(mqtt_async ${CMAKE_THREAD_LIBS_INIT})
if(NNG_ENABLE_TLS)
add_definitions(-DNNG_SUPP_TLS)
endif()
if (NNG_ENABLE_SQLITE)
add_definitions(-DNNG_SUPP_SQLITE)
target_link_libraries(mqtt_async dl)
endif (NNG_ENABLE_SQLITE)
target_compile_definitions(mqtt_async PRIVATE NNG_ELIDE_DEPRECATED)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。