mmurdoch / arduinounit

ArduinoUnit is a unit testing framework for Arduino libraries
MIT License
394 stars 51 forks source link

Use relative paths in #includes of internal dependencies #74

Closed per1234 closed 6 years ago

per1234 commented 6 years ago

Since https://github.com/mmurdoch/arduinounit/pull/69 was closed, here is another PR with the same goal, but applied to the updated code.

This change allows the library to be used when installed outside of the normal Arduino libraries folders. This allows the library to be bundled with a sketch so that it can be distributed as a self-contained package. Prior to this change, when the library was not installed to a standard Arduino libraries folder compilation of any sketch which included the library would fail:

C:\Users\per\AppData\Local\Temp\arduino_build_811257\sketch\src/ArduinoUnit/src/ArduinoUnitUtility/ArduinoUnitString.h:6:38: fatal error: ArduinoUnitUtility/Flash.h: No such file or directory

include "ArduinoUnitUtility/Flash.h"