Include adc_context.h from out-of-tree adc driver

Hi,

I am using nrf5340 with v2.5.1 toolchain

I have an out-of-tree driver, where i want to include adc_context.h from and have added: 

target_include_directories(app PUBLIC
 ${ZEPHYR_BASE}/drivers/adc)) in the root CmakeLists.txt file, however the still i get the erorr that 
#include "adc_context.h" cannot be found.
I have printet the following from the cmakelist file:
-- CMAKE_CURRENT_SOURCE_DIR="/home/bka/workspace/nrf-xdata/nrf-xdata"
-- ZEPHYR_BASE="/home/bka/ncs/v2.5.1/zephyr"
Can you advise how to include the file from an out-of-tree driver and if this is even supposed to be used. 
The ADC is a spi adc, and the alternative is to write the complete code for sampling ourselves, instead of using adc from zephyr
br, brian
Related