加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 945 Bytes
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
SET(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
include(kconfig.cmake)
include(setting.cmake)
enable_language(ASM C CXX)
project(mkrtos)
execute_process(
COMMAND date +%Y-%m-%d
OUTPUT_VARIABLE DATE
)
execute_process(
COMMAND date +%H:%M:%S
OUTPUT_VARIABLE TIME
)
execute_process(
COMMAND git rev-parse --short HEAD
OUTPUT_VARIABLE COMMIT
)
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
OUTPUT_VARIABLE BRANCH
)
string(STRIP ${DATE} DATE)
string(STRIP ${TIME} TIME)
# string(STRIP ${COMMIT} COMMIT)
# string(STRIP ${BRANCH} BRANCH)
set(code_version ${BRANCH}-${COMMIT} CACHE STRING " " FORCE)
set(compile_time "${DATE}\" \"${TIME}" CACHE STRING " " FORCE)
add_subdirectory(mkrtos_bootstrap)
add_subdirectory(mkrtos_knl)
add_subdirectory(mkrtos_img)
add_subdirectory(mkrtos_user)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化