加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 752 Bytes
一键复制 编辑 原始数据 按行查看 历史
sakumisu 提交于 2021-04-13 19:23 . first commit
cmake_minimum_required(VERSION 3.10)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/tools/cmake/riscv64-unknown-elf-gcc.cmake)
include(${CMAKE_SOURCE_DIR}/tools/cmake/compiler_flags.cmake)
include(${CMAKE_SOURCE_DIR}/tools/cmake/tools.cmake)
PROJECT(${BOARD} C CXX ASM)
include_directories(${CMAKE_SOURCE_DIR}/common/misc)
include_directories(${CMAKE_SOURCE_DIR}/bsp/bsp_common/platform)
include_directories(${CMAKE_SOURCE_DIR}/bsp/board/${BOARD})
add_subdirectory(common)
add_subdirectory(components/fatfs)
add_subdirectory(components/usb_stack)
add_subdirectory(drivers/${mcu}_driver)
if(${SUPPORT_SHELL} STREQUAL "ENABLE")
add_subdirectory(components/shell)
else()
endif()
search_application(${CMAKE_SOURCE_DIR}/examples)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化