I am using Flycheck for my syntax highlighting which have been working out great when working with all header and source files in one directory.
I recently decided to add some unit tests to test my code which I added another directory for. The projects compiles and runs without problems. My problem is that in the
test/Formula-test.cpp file when i
#include "Formula.h" a header from the
src/Formula.h folder flycheck can't seem to find it. I get the "error"
'Formula.h' file not found (c/c++-clang).
My project structure looks like this:
. ├── build │ └── compile_commands.json ├── CMakeLists.txt ├── lib │ └── googletest ├── src │ ├── CMakeLists.txt │ ├── Formula.cpp │ ├── Formula.h │ ├── main.cpp └── test ├── CMakeLists.txt ├── Formula-test.cpp └── main.cpp
Is there any configuration or package that can fix this?
Here is my full config file: https://github.com/Zeppan/configs/blob/master/.emacs