title: Linking OpenCV to tesseract for contrib module - windows cmake
body: <p>I am trying to build opencv with contrib modules (done) and link the text module with tesseract.</p>
  <p>I downloaded the tesseract pre-built binary for windows, and confirmed its in my path</p>
  <pre><code>Ben@Ben-Laptop MINGW64 ~
  $ tesseract -v
  tesseract 3.05.00dev
   leptonica-1.73
    libgif 4.1.6(?) : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.6.20 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.3 : libopenjp2 2.1.0
  </code></pre>
  <p>When I go to build in cmake, i see the following config option.</p>
  <p><a href="https://i.stack.imgur.com/jdzAv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jdzAv.png" alt="enter image description here" /></a></p>
  <p>But it does not link on build (&quot;tesseract:no&quot;). I think its likely because OpenCV is looking for the tesseract library built from source, but this has been a complete minefield (cppan errors, cmake errors). Is there anyway to point opencv to the binary?</p>
  <p>I found some help <a href="https://stackoverflow.com/questions/32038445/tesseract-opencv-3-0-windows-text-module-small-size-linking-errors">here</a>, but without being able to build tesseract from source, i don't I can do anything to the cmake file?</p>