Files
sweekar-esp32-gyroscope/CMakeLists.txt
T

30 lines
1.2 KiB
CMake
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
cmake_minimum_required(VERSION 3.16)
# OTA 升级版本号配置
# 每次发布新版本固件时,请更新此版本号(格式: major.minor.patch)
set(PROJECT_VER "1.0.0")
# 屏蔽警告
add_compile_options(-w)
# ADF_PATH已经通过export.sh设置,直接使用即可
# 添加ESP-IDF中的esp-qcloud组件路径,使用绝对路径确保正确性
# set(EXTRA_COMPONENT_DIRS "$ENV{ADF_PATH}/components" "components" "c:/Users/YQ/Desktop/esp32/esp-adf/esp-idf/components/esp-qcloud")
set(EXTRA_COMPONENT_DIRS "$ENV{ADF_PATH}/components" "components")
# 添加AW触摸传感器组件到构建系统
# list(APPEND EXTRA_COMPONENT_DIRS "components/aw_touch_sensor")
# Agora IoT SDK:
# Prefer local component under this project; only fallback to esp32-korvo-v3 copy when local one is missing.
set(LOCAL_AGORA_IOT_SDK_DIR "${CMAKE_CURRENT_LIST_DIR}/components/agora_iot_sdk")
if(NOT EXISTS "${LOCAL_AGORA_IOT_SDK_DIR}/CMakeLists.txt")
set(AGORA_IOT_SDK_DIR "${CMAKE_CURRENT_LIST_DIR}/../esp32-korvo-v3/components/agora_iot_sdk")
if(EXISTS "${AGORA_IOT_SDK_DIR}/CMakeLists.txt")
list(APPEND EXTRA_COMPONENT_DIRS "${AGORA_IOT_SDK_DIR}")
endif()
endif()
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sweekar-esp32)