Page 1 of 1

Include header from main into components with CMake

Posted: Mon Jan 27, 2020 12:02 am
by AloyseTech
Hi,

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
How can I tell CMake to include my_conf.h when building my_comp components ?