From 4e62bf4e6684acdd1fc4ddc88c9012a775ac26d7 Mon Sep 17 00:00:00 2001 From: lyq Date: Tue, 30 Dec 2025 11:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=89=E6=96=B9=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/remote_ctrl/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/remote_ctrl/CMakeLists.txt b/src/remote_ctrl/CMakeLists.txt index 331443a..834f801 100644 --- a/src/remote_ctrl/CMakeLists.txt +++ b/src/remote_ctrl/CMakeLists.txt @@ -11,6 +11,8 @@ find_package(rclcpp REQUIRED) find_package(sweeper_interfaces REQUIRED) find_package(ament_index_cpp REQUIRED) + + # ======== MQTT libs ======== if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") message(STATUS "[MQTT] using x86 static Paho") @@ -42,6 +44,14 @@ target_include_directories(remote_ctrl_node ${CMAKE_CURRENT_SOURCE_DIR}/include/paho_mqtt_3c ) +target_link_libraries(remote_ctrl_node + ${PAHO_LIB} + pthread + dl + ssl + crypto +) + ament_target_dependencies(remote_ctrl_node rclcpp sweeper_interfaces