math lib failure

This commit is contained in:
TuxMonkey
2025-11-16 17:42:34 +08:00
parent ab01747052
commit 053563e951
10 changed files with 7971 additions and 133 deletions

View File

@@ -69,6 +69,18 @@ add_subdirectory(cmake/stm32cubemx)
target_link_libraries(${CMAKE_PROJECT_NAME}
stm32cubemx # STM32CubeMX生成的库
# rpl::rpl # 第三方库(当前被注释掉)
${CMAKE_SOURCE_DIR}/Drivers/CMSIS/DSP/Lib/GCC/libarm_cortexM7lfdp_math.a
)
link_libraries("Drivers/CMSIS/DSP/Lib/GCC/libarm_cortexM7lfdp_math.a")
# 添加包含路径
include_directories(
./Drivers/CMSIS/Include
./Drivers/CMSIS/DSP/Include/
)
# 添加链接目录
link_directories(
./Drivers/CMSIS/DSP/Lib/GCC
)
# 递归查找User_Code目录下的所有C和C++源文件