What’s the preferred way to reference header files from cpp files that are in different sub-directories in a project? For example, bear.cpp in the forest directory needs to include lion.h in jungle. Is there a better way than using `#include “../jungle/lion.h”?
I would prefer to set an include path and simply use #include <lion>, but have two questions regarding this:
Is this approach only recommended for headers that are part of a public API (
Lionis an internal, project-specific class)Where do I specify an include path in Qt Creator?