Updated CMakeLists.txt to support esp-idf

This commit is contained in:
2021-06-28 21:19:07 +02:00
parent 5682338891
commit b7dbc2c905

View File

@@ -1,3 +1,4 @@
if(NOT IDF_TARGET STREQUAL "esp32")
cmake_minimum_required(VERSION 3.1...3.18)
# Fallback for using newer policies on CMake <3.12.
@@ -391,3 +392,9 @@ if (FMT_MASTER_PROJECT AND EXISTS ${gitignore})
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.rst)
include(CPack)
endif ()
else()
idf_component_register(
INCLUDE_DIRS
include
)
endif()