Browse Source

适配老代码的cmake文件

master
Lizongdi 1 day ago
parent
commit
35274be076
  1. 15
      project_old/paint_robot_old/CMakeLists.txt

15
project_old/paint_robot_old/CMakeLists.txt

@ -14,4 +14,17 @@ if(TARGET stm32cubemx)
target_link_libraries(${TARGET_NAME} PUBLIC stm32cubemx) target_link_libraries(${TARGET_NAME} PUBLIC stm32cubemx)
else() else()
message(WARNING "[${TARGET_NAME}] Dependency 'stm32cubemx' not found.") message(WARNING "[${TARGET_NAME}] Dependency 'stm32cubemx' not found.")
endif() 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
)
Loading…
Cancel
Save