after creating a new component as follows:
Code: Select all
$ idf.py -C components create-component new_component
Code: Select all
.
├── CMakeLists.txt
├── components
│ └── new_component
│ ├── CMakeLists.txt
│ ├── include
│ │ └── new_component.h
│ └── new_component.c
├── main
│ ├── CMakeLists.txt
│ └── main.cpp
└── sdkconfig
Components CMakeLists.txt:
Code: Select all
idf_component_register(SRCS "new_component.c"
INCLUDE_DIRS "include")
So far tried:
- adding empty REQUIRES in new_component's CMakeLists.txt
- creating component.mk file with the content:
Code: Select all
COMPONENT_SRCDIRS := .
COMPONENT_ADD_INCLUDEDIRS := include