We use Eclipse Helios CDT for development. We use cmake as build system, build dirs are typically called build-* inside the project directory.
How do I get the index
Exclude these build dirs from project tree by adding Resource filters. Add Exclude All resource filter type to root folder of your project. You can also use regular expressions if needed.