Posted by voraciousKobald 13 hours ago
printf ' ;;; Directory Local Variables -- no-byte-compile: t -- ;;; For more information see (info "(emacs) Directory Variables")
(setq flycheck-gcc-include-path "'$indir'") ' > .dir-locals.el
It generates a .dir-locals.el file that forces flycheck (an emacs package) to look inside the include directory inside the project folder.
I'm a little worried about whether setq is the right approach.