Cmake环境配置问题

This commit is contained in:
asd
2026-08-31 13:04:17 +08:00
parent 523062d89d
commit e2af244eab
3 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ set(CMAKE_PROJECT_NAME Infantry_chassis)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
# Core project settings
project(${CMAKE_PROJECT_NAME})
project(${CMAKE_PROJECT_NAME} C ASM)
message("Build type: " ${CMAKE_BUILD_TYPE})
# Enable CMake support for ASM and C languages
+1 -1
View File
@@ -4,7 +4,7 @@
{
"name": "default",
"hidden": true,
"generator": "Ninja",
"generator": "MinGW Makefiles",
"binaryDir": "${sourceDir}/build/${presetName}",
"toolchainFile": "${sourceDir}/cmake/gcc-arm-none-eabi.cmake",
"cacheVariables": {
+1
View File
@@ -83,6 +83,7 @@ set(MX_LINK_LIBS
STM32_Drivers
${TOOLCHAIN_LINK_LIBRARIES}
FreeRTOS
)
# Interface library for includes and symbols
add_library(stm32cubemx INTERFACE)