Cmake环境配置问题
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ set(CMAKE_PROJECT_NAME Infantry_chassis)
|
|||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|
||||||
|
|
||||||
# Core project settings
|
# Core project settings
|
||||||
project(${CMAKE_PROJECT_NAME})
|
project(${CMAKE_PROJECT_NAME} C ASM)
|
||||||
message("Build type: " ${CMAKE_BUILD_TYPE})
|
message("Build type: " ${CMAKE_BUILD_TYPE})
|
||||||
|
|
||||||
# Enable CMake support for ASM and C languages
|
# Enable CMake support for ASM and C languages
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"generator": "Ninja",
|
"generator": "MinGW Makefiles",
|
||||||
"binaryDir": "${sourceDir}/build/${presetName}",
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
||||||
"toolchainFile": "${sourceDir}/cmake/gcc-arm-none-eabi.cmake",
|
"toolchainFile": "${sourceDir}/cmake/gcc-arm-none-eabi.cmake",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ set(MX_LINK_LIBS
|
|||||||
STM32_Drivers
|
STM32_Drivers
|
||||||
${TOOLCHAIN_LINK_LIBRARIES}
|
${TOOLCHAIN_LINK_LIBRARIES}
|
||||||
FreeRTOS
|
FreeRTOS
|
||||||
|
|
||||||
)
|
)
|
||||||
# Interface library for includes and symbols
|
# Interface library for includes and symbols
|
||||||
add_library(stm32cubemx INTERFACE)
|
add_library(stm32cubemx INTERFACE)
|
||||||
|
|||||||
Reference in New Issue
Block a user