Hello,
I am using VS Code 1.48.2 and building the C++ application code on nRF52840 dev board using "west" commands.
I have the following structure
project_directory/src/dummy.cpp
project_directory/src/dummy.hpp
project_directory/src/folder/temp.hpp
I want to include "temp.hpp" in "dummy.hpp" file. I can include by doing "#include "folder/temp.hpp" but I cannot just write "#include temp.hpp"
Since I am using "west" command to build my files, I do not see a point in including paths under "c_cpp_properties.json" in vs code.
Is there a way to include path which is being detected by "west" so that I don't have to write "#include "folder/temp.hpp" and I can build successfully just by "#include temp.hpp"?
My CMakeLists.txt file is something like this:
target_sources(app PRIVATE
src/dummy.cpp
src/dummy.hpp
src/folder/temp.hpp
)