title: eclipse cdt: add include path from pkg-config
body: <p>i want to add a dynamic configuration path (generated from pkg-config) to my project. (this is basically for third-party dependencies like boost, so workspace includes is not appropiate, and filesystem include neither because that would be hardcoded and every developer would have to change that manually)</p>
  
  <p>i am on project properties->c++ general->paths and symbols->includes tab->add...->add directory path->variables but i can only select among existing variables, how do i create a new variable dynamically generated from a command line program? like <code>pkg-config --cflags boost-1.43</code>?</p>
  
  <p>this is easy to do in netbeans; you just add the pkg-config commandline with the backquotes in the build additional options and it resolves the build include and even in theory it should update the indexer (although truth be said, last time the indexer was correctly updating from pkg-config was on netbeans 6.8, it has been broken on 6.9 and 6.9.1)</p>
  
  <p>i read <a href="https://stackoverflow.com/questions/1089490/eclipse-cdt-how-to-reference-3rd-party-includes-via-a-relative-path">this StackOverflow post</a> but i still not sure how it helps this specific case</p>
  
  <p>i read <a href="http://cdtdoug.blogspot.com/2008/07/now-wheres-that-include-file.html" rel="nofollow noreferrer">somewhere</a> that you can use $(shell pkg-config...) to generate environment variables but not sure where to place the command</p>
  
  <p>if there is no easy out of the box solution i'll try the <a href="http://www.susnjar.de/node/16" rel="nofollow noreferrer">script in this blog post</a></p>
  
  <p>btw, i'm using eclipse helios -cdt 7</p>
  
  <p>thanks!</p>