From 35274be076ac624c61342f01ac755b5ddd324578 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Thu, 18 Jun 2026 10:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E8=80=81=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=9A=84cmake=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project_old/paint_robot_old/CMakeLists.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/project_old/paint_robot_old/CMakeLists.txt b/project_old/paint_robot_old/CMakeLists.txt index 8e60a3f..0256c09 100644 --- a/project_old/paint_robot_old/CMakeLists.txt +++ b/project_old/paint_robot_old/CMakeLists.txt @@ -14,4 +14,17 @@ if(TARGET stm32cubemx) target_link_libraries(${TARGET_NAME} PUBLIC stm32cubemx) else() message(WARNING "[${TARGET_NAME}] Dependency 'stm32cubemx' not found.") -endif() \ No newline at end of file +endif() + +target_include_directories(${TARGET_NAME} PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/BASE/Inc + ${CMAKE_CURRENT_SOURCE_DIR}/BASE/Protobuf/PSource + ${CMAKE_CURRENT_SOURCE_DIR}/BASE/Inc/BSP/DLT + ${CMAKE_CURRENT_SOURCE_DIR}/BASE/Inc/MSP + ${CMAKE_CURRENT_SOURCE_DIR}/BASE/Inc/BSP + ${CMAKE_CURRENT_SOURCE_DIR}/FSM/Inc + ) + +target_compile_options(${TARGET_NAME} PRIVATE + -Wno-error +) \ No newline at end of file