From f2dac3265c9df566a127c1fbf08fa29ae557a1e0 Mon Sep 17 00:00:00 2001 From: Viet Dzung Date: Tue, 19 Dec 2023 09:10:06 +0700 Subject: [PATCH] Support use as ESP IDF component --- CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c2d34f7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +set(COMPONENT_SRCDIRS +"src" +) + +set(COMPONENT_ADD_INCLUDEDIRS +"src" +) + +set(COMPONENT_REQUIRES +"arduino-esp32" +"libsodium" +"app_update" +) + +register_component() + +target_compile_definitions(${COMPONENT_TARGET} PUBLIC -DESP32) +target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti) \ No newline at end of file