I have been using the particle CLI to compile and flash programs to my photon. This is all working fine.
I want to create a slightly more complex program now that uses libraries and so I want to organise them into separate directories. Is it possible to add the files in these sub folders while maintaining the folder structure?
I can add them to the compilation step using a particle.include file but this results in the files all being in the root directory and not in their original sub folders.
Ideally I want a setup like:
… |-- lib1.h
… |-- lib1.cpp
Where I can include into main.cpp ‘#include “lib/lib1.h”’ and lib1.h can refer to subLib.h with ‘#include subLib/subLib.h’
Is this possible with the CLI?