Include header from main into components with CMake

AloyseTech
Posts: 22
Joined: Mon Jul 22, 2019 2:29 pm

Include header from main into components with CMake

Postby AloyseTech » Mon Jan 27, 2020 12:02 am

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 ?

Who is online

Users browsing this forum: Google [Bot] and 146 guests