From b045eca49e2f699d1f0f52f027c86a3cce5eabb6 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 16 Dec 2020 18:36:58 +0100 Subject: [PATCH] esp-idf fixes --- CMakeLists.txt | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64292ec..7fd116f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1 @@ -set(COMPONENT_SRCDIRS - "src" -) - -set(COMPONENT_ADD_INCLUDEDIRS - "src" -) - -set(COMPONENT_REQUIRES - "arduino-esp32" - "AsyncTCP" -) - -register_component() - -target_compile_definitions(${COMPONENT_TARGET} PUBLIC -DESP32) -target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti) +idf_component_register(SRCS src/AsyncEventSource.cpp src/AsyncWebSocket.cpp src/SPIFFSEditor.cpp src/WebAuthentication.cpp src/WebHandlers.cpp src/WebRequest.cpp src/WebResponses.cpp src/WebServer.cpp INCLUDE_DIRS src REQUIRES arduino-esp32 AsyncTCP wifi_provisioning)