I'm writing an Arduino program that contains various .h and .cpp files. Due to organizational needs, I have configured the directory that contains my Arduino sketch (.ino) to possess a subdirectory. This subdirectory contains related source code.
An example layout of my project directory is located below:
mysketch mysketch.ino mycode.h mycode.cpp mylibs mylib1.h mylib1.cpp mylib2.h mylib2.cpp mylib3.h mylib3.cpp
With this, I'm able to successfully #include the header files. However, the compiler then complains that mylib1.cpp, mylib2.cpp, and mylib3.cpp are not defined (however they are). I'm guessing that the Arduino only looks for source files within the same directory that the sketch lives in. Thus subdirectories contains source code are ignored.
I can then modify my directory layout such that all of the 'mylib.h/.cpp's' are in the same directory and the project compiles fine.
So my question: how do I configure the Arduino IDE to reference source code within a subdirectory? Also, I would prefer that the mylibs exist within the same directory, and not within the Arduino 'library' directory. This will allow me to then easily distribute the code as a single zipped folder.