title: How to set path to opencv on Mac OS?
body: <p>I'm using mac os 10.10 and I need to build some code via make, but it give me an error </p>
  
  <pre><code>make
  gcc `pkg-config --cflags opencv` -O3 `pkg-config --libs opencv` -o congealReal congealReal.cpp
  /bin/sh: pkg-config: command not found
  /bin/sh: pkg-config: command not found
  congealReal.cpp:87:10: fatal error: 'cv.h' file not found
  #include &lt;cv.h&gt;
  </code></pre>
  
  <p>but I have already installed opencv via brew</p>
  
  <pre><code>brew install opencv
  Warning: homebrew/science/opencv-2.4.11_2 already installed
  </code></pre>
  
  <p>so how can I set up environment to opencv in mac os?</p>