From 03a42a390a41f61ababfb31ad33819bafee16411 Mon Sep 17 00:00:00 2001 From: De-Backer Date: Sun, 6 Aug 2023 10:19:32 +0200 Subject: [PATCH] Add CMake for esp-idf --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a67ba11 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +set(COMPONENT_SRCDIRS + "src" +) + +set(COMPONENT_ADD_INCLUDEDIRS + "src" +) + +set(COMPONENT_REQUIRES + "arduino-esp32" +) + +register_component() + +target_compile_definitions(${COMPONENT_TARGET} PUBLIC -DESP32) +target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)