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