1 Star 0 Fork 16

feemelu/esp-mdf

forked from 乐鑫开源/esp-mdf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
project.cmake 930 Bytes
一键复制 编辑 原始数据 按行查看 历史
it_zzc 提交于 2021-10-14 18:32 . feat: Remove submoudle
# Designed to be included from an IDF app's CMakeLists.txt file
#
cmake_minimum_required(VERSION 3.5)
# Set MDF_PATH, as nothing else will work without this
set(MDF_PATH "$ENV{MDF_PATH}")
if(NOT MDF_PATH)
# Documentation says you should set MDF_PATH in your environment, but we
# can infer it relative to current directory if it's not set.
get_filename_component(MDF_PATH "${CMAKE_CURRENT_LIST_DIR}" ABSOLUTE)
endif()
file(TO_CMAKE_PATH "${MDF_PATH}" MDF_PATH)
set(ENV{MDF_PATH} ${MDF_PATH})
# set(ENV{IDF_PATH} "$ENV{MDF_PATH}/esp-idf/")
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} $ENV{MDF_PATH}/components/")
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} $ENV{MDF_PATH}/components/third_party")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
include($ENV{MDF_PATH}/mdf_functions.cmake)
# Check git revision (may trigger reruns of cmake)
## sets MDF_VER to MDF git revision
mdf_get_git_revision()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/feemelu/esp-mdf.git
git@gitee.com:feemelu/esp-mdf.git
feemelu
esp-mdf
esp-mdf
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385