Include path for duchain with custom makefile projects.

David Nolden david.nolden.kdevelop at art-master.de
Tue May 19 09:14:16 UTC 2009


What version of KDevelop are you using? Since a few weeks, it is very easy to 
add custom include paths similar to your hack, but more flexibly.

Just put a ".kdev_include_paths" file with a newline separated list of 
include-paths into any place in or above your source directory, and KDevelop 
will always use the include-paths from the closest such file above the source 
file.

Actually this also has an assistant right within KDevelop, which allows you 
adding such paths if an include has not been found. Just move the cursor over 
a not found include directive, or right-click on it (Although this is only 
recently working really good).

For a better fix than this workaround, there is a something called "include 
path resolver" that uses the "make" utility to extract include paths from the 
command line. If this include path resolver can be adapted to your makefiles 
without too much hassle, it would make sense, but only if your Makefiles are 
not too crazy.

Greetings, David





More information about the KDevelop-devel mailing list