代码拉取完成,页面将自动刷新
同步操作将从 zjzdy/tmsg 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.1)
project("tmsg" LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES tmsg.cpp tmsg.hpp)
if(MSVC)
add_compile_options("/source-charset:utf-8")
endif()
include_directories(".")
include_directories("./3rdparty")
include_directories("../paho.mqtt.cpp/install/include" "../paho.mqtt.c/install/include")
find_library(MQTTC NAMES paho-mqtt3a PATHS "../paho.mqtt.c/install/lib")
find_library(MQTTCPP NAMES paho-mqttpp3 PATHS "../paho.mqtt.cpp/install/lib" "../paho.mqtt.cpp/install/bin")
message(STATUS "paho-mqtt3a lib path: " ${MQTTC})
message(STATUS "paho-mqttpp3 lib path: " ${MQTTCPP})
set(MQTTLIB ${MQTTCPP} ${MQTTC})
add_executable(Get example/get.cpp ${SOURCE_FILES})
target_link_libraries(Get ${MQTTLIB})
add_executable(Get2 example/get2.cpp ${SOURCE_FILES})
target_link_libraries(Get2 ${MQTTLIB})
add_executable(GetAll example/getAll.cpp ${SOURCE_FILES})
target_link_libraries(GetAll ${MQTTLIB})
add_executable(Pub example/pub.cpp ${SOURCE_FILES})
target_link_libraries(Pub ${MQTTLIB})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
include_directories("./example/arduino2tmsg/3rdparty")
add_executable(Arduino2tmsg example/arduino2tmsg/arduino2tmsg.cpp ${SOURCE_FILES})
target_link_libraries(Arduino2tmsg ${MQTTLIB} Threads::Threads)
add_executable(Arduino2tmsg_auto example/arduino2tmsg/arduino2tmsg_auto.cpp ${SOURCE_FILES})
target_link_libraries(Arduino2tmsg_auto ${MQTTLIB} Threads::Threads)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。