Hi,
I'm just in the processes of starting to test out the Arduino VS2017 plugin.
In my solution, I currently have (for testing purposes) two projects:
- MyProject (an Arduino Project)
- MyLibrary (an Arduino Library Project)
For the folder structure for these, I'm wanting the following:
$(SolutionDir)\MyProject\ (the root of the main project)
$(SolutionDir)\MyProject\Source\MyProject.ino
$(SolutionDir)\MyLibrary\ (the root of the library project)
$(SolutionDir)\MyLibrary\Source\*.cpp *.h
I can set up the reference from MyProject to MyLibrary, but from within MyProject, I want to be able to do:
#include "MyLibrary.h"
However, it seems to want me to do:
#include "Source/MyLibrary.h"
Is there anything that I can do in MyLibrary to tell it that the files that should be referenced are within the Source folder?
If I open up the MyLibrary.vcxitems, there is a line that says:
irectory)</AdditionalIncludeDirectories>
I tried changing that by hand to read:
irectory)Source</AdditionalIncludeDirectories>
But that didn't seem to make a difference.
I also tried going into the project properties for MyProject and changing
$(ProjectDir)..\MyLibrary
to
$(ProjectDir)..\MyLibrary\Source
But that also did not seem to make a difference.
Is there any way of doing this?
Thanks