From 513fbe8d6a58b072fc3eaa9268fec76b7f206448 Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Mon, 22 Sep 2025 15:44:15 +0800 Subject: [PATCH] refactor(CMake): Update include directories for main target - Reintroduced the target include directory for the main target to use a hardcoded path. - Removed the previous target include directory declaration to streamline the configuration. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cba39de..1756380 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,8 +26,6 @@ include_directories( $<$>:${PAHO_MQTT_C_INCLUDE_DIR}> ) -target_include_directories(main PRIVATE /usr/local/include) - # Source files set(SOURCES src/main.cpp @@ -39,11 +37,13 @@ set(SOURCES src/navigation.cpp ) -# Create executable with simple name add_executable(main ${SOURCES}) +target_include_directories(main PRIVATE /usr/local/include) + # Link libraries target_link_libraries(main + PRIVATE unitree_sdk2 Threads::Threads $<$:PahoMqttC::PahoMqttC>