How to use CMake with components in custom directory
Posted: Wed Nov 09, 2022 10:34 pm
Problem Statement:
How does one, using the IDF SDk, create custom components that both require the use of the SDK components and cannot be in the a projects components directory.
Personal context:
-> I am extremely new to CMake and build systems
-> I have a very basic understanding of build systems
-> I have read the build system documentation at: [url][https://docs.espressif.com/projects/esp ... elists/url]
-> I have also read up on some general CMake documentation
What I have tried:
-> I have tried using the EXTRA_COMPONENT_DIRS variable but with no success
-> I tried to use pure CMake but then during the build stage, the component/library is unable to use the idf SDK
Common issues I have come across
-> XXX is not build by this project
-> No such file or directory for both custom components and IDF components
I am aware most of the information is vague/general but I would really appreciate if someone were able to give something like a minimum example that is able to address the problem in the problem statement.
Please don't refer me back the to build system documentation because I am pretty sure I am misunderstanding/missing something and I am not sure trying to parse it for a 15th time is going to help much
How does one, using the IDF SDk, create custom components that both require the use of the SDK components and cannot be in the a projects components directory.
Personal context:
-> I am extremely new to CMake and build systems
-> I have a very basic understanding of build systems
-> I have read the build system documentation at: [url][https://docs.espressif.com/projects/esp ... elists/url]
-> I have also read up on some general CMake documentation
What I have tried:
-> I have tried using the EXTRA_COMPONENT_DIRS variable but with no success
-> I tried to use pure CMake but then during the build stage, the component/library is unable to use the idf SDK
Common issues I have come across
-> XXX is not build by this project
-> No such file or directory for both custom components and IDF components
I am aware most of the information is vague/general but I would really appreciate if someone were able to give something like a minimum example that is able to address the problem in the problem statement.
Please don't refer me back the to build system documentation because I am pretty sure I am misunderstanding/missing something and I am not sure trying to parse it for a 15th time is going to help much