Adding folder s to ESP-IDF template project
Posted: Thu Aug 30, 2018 7:27 am
I am able to write and compile C++ code for the ESP32 using Eclipse on Linux with the ESP-IDF template. However, I would like to store my classes in seperate directories. For some reason I cannot get this to work. Eclipse keeps complaining about not being able to find "myclass.h"
My folder structure looks like this:
The structure shown above works but I would like to move my class to a different directory. Someting like this:
How do I configure this? Do I need to edit the cmake files? Do I add this to Eclipse? (I tried to do the latter already)
T.i.a!
My folder structure looks like this:
Code: Select all
- MyProject
+ Build Targets
+ Binaries
+ Archives
+ Includes
+ build
- main
- main.cpp
- myclass.cpp
- myclass.h
- component.mk
- CMakeList.txt
- Makefile
- README.rst
- sdkconfig
Code: Select all
- MyProject
+ Build Targets
+ Binaries
+ Archives
+ Includes
+ build
- classes
- myclass
- myclass.h
- myclass.cpp
- main
- main.cpp
- myclass.cpp
- myclass.h
- component.mk
- CMakeList.txt
- Makefile
- README.rst
- sdkconfig
T.i.a!