# The following lines of boilerplate have to be in your project's CMakeLists # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.20) set(ENV{IDF_COMPONENT_MANAGER} "0") include($ENV{IDF_PATH}/tools/cmake/project.cmake) # add the component directories that we want to use set(EXTRA_COMPONENT_DIRS "components/" ) set( COMPONENTS "main esptool_py i2c lsm6dso filters" CACHE STRING "List of components to include" ) project(lsm6dso_example) set(CMAKE_CXX_STANDARD 20)