title: CMake for Tesseract and OpenCV
body: <p>I am new to Linux programming, I am trying create an OCR application on <code>Ubuntu 12.10</code> using <a href="http://code.google.com/p/tesseract-ocr/%E2%80%8E" rel="nofollow">Tesseract</a> and <a href="http://www.opencv.org" rel="nofollow">OpenCV</a>. So far I have setup <code>tesseract</code> and <code>OpenCV</code> on linux also I have followed this <a href="http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html" rel="nofollow">tutorial</a>, in this tutorial I found it very easy that we create one file <code>CMakeList.txt</code> and link OpenCV in it.</p>
  
  <p>Now I am trying to compile <code>tesseract-ocr</code> library with <a href="http://code.google.com/p/tesseract-ocr/wiki/APIExample#Basic_example" rel="nofollow">this code</a>. As I know I did not make a link between <code>tesseract-ocr</code> and my code and thats why I am having errors. </p>
  
  <p>All I want and searching for is if I can link <code>Tesseract</code> and <code>OpenCV</code> using <code>CMake</code> in one file, if it is possible. A tutorial would be good as I am totally new to Linux. Thanks in advance</p>