I have a little project where I want to use the ESP32's ADC, and I want to use zephyr as my RTOS. I am using one of the examples provided by the ESP-IDF to set the register and read input from the ADC pins. This example works if I use the idf.py tool and within the same folder. Now I try to use west to build and flash this project into the esp32 with zephyr running on it, however when I try to build the project west cannot find the header files/source files specified inside the program. I have tried using absolute paths in every header file, moving the project+include folder to the zephyr workspace, initializing west inside the esp-idf workspace, etc... None of this has worked for me.
I suspect something along the cmake files is messing up with my project, but I really cannot pinpoint exactly what that is. My question is, how can I deal with header/source files that are outside the zephyr workspace? My folders look something like this:
Zephyr workspace
|-------ADC target project (copied originally from espressif folder)
|-------include files from zephyr
Espressif workspace
|-------ADC original project
|-------include files from espressif (I want to link this files to zephyr)