From f9da89d77de0447ad8e5dde4e33c09c207f41aff Mon Sep 17 00:00:00 2001 From: Carlos Diaz Date: Mon, 26 Oct 2020 08:05:32 -0600 Subject: [PATCH] Add CMakeLists.txt (#1868) --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000000..97c08a4a5d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,14 @@ +if(ESP_PLATFORM) + +file(GLOB_RECURSE SOURCES src/*.c) + +idf_component_register(SRCS ${SOURCES} + INCLUDE_DIRS . src) + +target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE") +target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_SKIP") +target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_ATTRIBUTE_FAST_MEM=IRAM_ATTR") + +else() +message(FATAL_ERROR "Unknown platform.") +endif()