I am trying to include a .h file that is contained inside a directory in its parent. Looks like this:
.
├── fan_controller
├── ip_camera
├── motors
├── pose_and_distance
└── serial_communication
Edit: They are different "subprojects" each of them containing a independent CMakeList, I am workning in the subproject Fan_controller, with its main and its CmakeList inside it, and I want to use files in the motors directory.
They have different files, I am working in fan_controller's main and I am trying to include a file that is inside motors by doing this:
#include "../motors/src/resources/classes/Arduino.h"
If I put the global path it works fine:
#include "/home/kailegh/catkin_ws/src/project/motors/src/resources/classes/Arduino.h"
the thing is that the file is there, I have check it several times and QT autocompletes the path, so it founds it. However when I try to compile, it says:
no such file or directory
I don't know why this happens, should I add something to the CmakeList? The thing is the file is there!! Thanks a lot in advance!