Ai
1 Star 0 Fork 1

谷动谷力/MQTT-Client-Examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
alvin1221 提交于 2023-05-06 14:45 +08:00 . Rename C projects
#
# 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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lojam/MQTT-Client-Examples.git
git@gitee.com:lojam/MQTT-Client-Examples.git
lojam
MQTT-Client-Examples
MQTT-Client-Examples
master

搜索帮助