From 0eb3e8d2720510d23b5af1362258a1c7b1fddfd6 Mon Sep 17 00:00:00 2001 From: Greg Pye Date: Mon, 10 Apr 2023 16:12:49 +0100 Subject: [PATCH] Added CMakeLists.txt for use as ESP-IDF component --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..5286640 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +# CMakeLists.txt for the Sparkfun ICM 20948 Arduino library to allow build within ESP-IDF framework + +file(GLOB_RECURSE SOURCES ./src/*.c ./src/*.cpp ./src/util/*.c ./src/util/*.cpp) + +set(INCLUDE_DIRS ./src ./src/util) + +idf_component_register(SRCS ${SOURCES} + INCLUDE_DIRS ${INCLUDE_DIRS} + REQUIRES arduino) \ No newline at end of file