Include header from main into components with CMake
Posted: Mon Jan 27, 2020 12:02 am
Hi,
I have a project with the following structure :
How can I tell CMake to include my_conf.h when building my_comp components ?
I have a project with the following structure :
Code: Select all
esp_project
├── CMakeLists.txt
├── components
│ └── my_comp
│ ├── CMakeLists.txt
│ ├── my_comp.c
│ └── my_comp.h
└── main
├── CMakeLists.txt
├── main.c
└── my_conf.h