Include path from Project root

  • Thread starter Thread starter Madaal
  • Start date Start date
M

Madaal

Guest
Hi,

I'm trying to do includes from the root folder of the project.

Example:

//In Myproject/Core/Engine.cpp

#include "Definitions/Customer.h"
#include "Helpers/DatabaseConnector.h"


Assuming a project laid out like this

MyProject
./Core
--> Engine.cpp
./Definitions
--> Customer.h
./Helpers
--> DatabaseConnector.h
--> ...

Looking at some projects on github they seems to do it without a problem, and when I build them it works fine. But every time I try to do this in a project I create in visual studio it doesn't seems to work and I can't figure out why.
The file I try is not found when I compile my project. Is there a switch or a config option I missed to be able to do this ?

Example from github: MerryMage/dynarmic

Continue reading...
 
Back
Top