From af56fc6a12247aaf44fb06c8e63f9a947c4ebc9a Mon Sep 17 00:00:00 2001 From: Lurkars Date: Tue, 29 Sep 2020 20:53:39 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 066e5c0..27dfeee 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,19 @@ For base functionality just an ESP32 is required. ### Include into project +To include these components into an esp-idf project, include the following into the CMakeLists.txt + +``` +include(FetchContent) +FetchContent_Declare( + esp-ena + GIT_REPOSITORY https://github.com/Lurkars/esp-ena.git + GIT_TAG origin/component +) +FetchContent_MakeAvailable(esp-ena) +set(EXTRA_COMPONENT_DIRS ${esp-ena_SOURCE_DIR}/components) +``` + ## Structure The project is divided in different components. The main.c just wrap up all components. The Exposure Notification API is in **ena** module