-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (21 loc) · 1 KB
/
CMakeLists.txt
File metadata and controls
24 lines (21 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.13)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(azure_iot_freertos_esp32)
if(${CONFIG_ESP_TLS_USE_SECURE_ELEMENT})
if(${CONFIG_MBEDTLS_ATCA_HW_ECDSA_SIGN} AND ${CONFIG_MBEDTLS_ATCA_HW_ECDSA_VERIFY})
include(FetchContent)
if(NOT esp-cryptoauthlib_POPULATED)
FetchContent_Populate(esp-cryptoauthlib
GIT_REPOSITORY https://github.com/espressif/esp-cryptoauthlib
GIT_TAG 985ea960f83f67f66881e2dae57097e2a07b92a0
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/components/esp-cryptoauthlib"
)
endif()
else()
message(FATAL_ERROR "To use the Microchip ATECC608 secure element, refer to the README_ATECC608_Support.md !!")
endif()
endif()