title: Building OpenCV 3.0.0-beta contrib text sample application
body: <p>I am trying to build the sample applications from opencv-3.0.0-beta with opencv_contrib-3.0.0-beta.</p>
  
  <p>Here is what I have done</p>
  
  <ol>
  <li>Downloaded and unzipped: <a href="https://github.com/Itseez/opencv/tree/3.0.0-beta" rel="nofollow">https://github.com/Itseez/opencv/tree/3.0.0-beta</a> to /home/me/opencv</li>
  <li>Downloaded and unzipped <a href="https://github.com/Itseez/opencv_contrib/tree/3.0.0-beta" rel="nofollow">https://github.com/Itseez/opencv_contrib/tree/3.0.0-beta</a> to /home/me/opencv</li>
  <li>mkdir /home/me/opencv/opencv-3.0.0-beta/build</li>
  <li>cd /home/me/opencv/opencv-3.0.0-beta/build</li>
  <li>cmake -DOPENCV_EXTRA_MODULES_PATH=/home/me/opencv/opencv_contrib-3.0.0-beta/modules /home/me/opencv/opencv-3.0.0-beta</li>
  <li>make -j5</li>
  </ol>
  
  <p>The above works perfectly, no errors.</p>
  
  <p>However I was expecting the sample applications to build, the only one I really care about is: /home/me/opencv/opencv_contrib-3.0.0-beta/modules/text/</p>
  
  <p>I have tried building it with the following steps</p>
  
  <ol>
  <li>cd /home/me/opencv/opencv_contrib-3.0.0-beta/modules/text/</li>
  <li>sudo cmake .</li>
  </ol>
  
  <p>However I get an error, here is the output I get!</p>
  
  <blockquote>
    <p>-- Tesseract:   NO CMake Error at CMakeLists.txt:21 (ocv_define_module):   Unknown CMake command "ocv_define_module".</p>
    
    <p>CMake Warning (dev) in CMakeLists.txt:   No cmake_minimum_required
    command is present.  A line of code such as</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  </code></pre>
    
    <p>should be added at the top of the file.  The version specified may
    be lower   if you wish to support older CMake versions for this
    project.  For more   information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.</p>
    
    <p>-- Configuring incomplete, errors occurred!</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>