For a component I want to include a config header that's located under the main folder. How would I do that?
I know that you can specify the REQUIRES and PRIV_REQUIRES fields in CMakeLists.txt to refer to the required components. But main isn't exactly a component or is it? Can I REQUIRE it still?
Component: Include header inside main folder
Re: Component: Include header inside main folder
I think you want to add "main" to INCLUDE_DIRS in CMakeLists.txt. This should add the main folder to the global include search path.
For example
For example
Code: Select all
idf_component_register(SRCS ...
INCLUDE_DIRS "main" ...
REQUIRES ...)
Who is online
Users browsing this forum: No registered users and 95 guests