title: Adding /usr/local/bin (homebrew) to QtCreator search path for pkg-config on Mac OSX
body: <h2>Setup</h2>
  
  <ul>
  <li>Using Qt Creator on Mac OSX mountain lion.</li>
  <li>Installed packages in /usr/local using homebrew.</li>
  <li>/usr/local/bin/pkg-config exists.</li>
  <li>Want to use pkgconfig through the project file</li>
  </ul>
  
  <p>-</p>
  
  <pre><code>QT_CONFIG -= no-pkg-config
  CONFIG += link_pkgconfig
  PKGCONFIG += protobuf #Or whatever package you want to try.
  </code></pre>
  
  <ul>
  <li>/usr/local/bin being in the path, when I run <code>/Applications/Other/Qt5.0.2/5.0.2/clang_64/bin/qmake myproject.pro</code> It runs fine.</li>
  <li>When I try to build the project through Qt Creator I see the error <code>sh: pkg-config: command not found</code> and the build fails.</li>
  <li>I already tried <code>launchctl setenv PATH $PATH</code> as suggested in <a href="https://stackoverflow.com/questions/603785/environment-variables-in-mac-os-x">Environment variables in Mac OS X</a></li>
  </ul>
  
  <p>Does anyone have any idea how to make this work?</p>