title: How to build and install OpenCV 4.2.0 for x86?
body: <p>Im trying to build the newest OpenCV version (<a href="https://sourceforge.net/projects/opencvlibrary/files/4.2.0/" rel="nofollow noreferrer">4.2.0</a>) for x86/32bit on Windows for Visual Studio. However there is only 1 <code>OpenCVConfig.cmake</code> in the finished build (<code>opencv/build/win-install/x86/vc16/lib/OpenCVConfig.cmake</code> - there is no bin folder).</p>
  
  <p><strong>What i've tried:</strong></p>
  
  <ol>
  <li>I've downloaded and executed the latest version (opencv-4.2.0-vc14_vc15.exe)</li>
  <li>I've followed <a href="https://stackoverflow.com/questions/46790736/c-how-can-i-build-opencv-for-vs-2015-x86">this</a> SO thread and added the short snippet in my <code>opencv/build/OpenCVConfig.cmake</code></li>
  <li>Downloaded Cmake <a href="https://cmake.org/download/" rel="nofollow noreferrer">3.17</a> and installed via the installer</li>
  <li>Started the Cmake GUI - set source code to <code>opencv/sources</code> and binaries to <code>opencv/build</code></li>
  <li>Choose <code>Visual Studio 16-2019</code> as generator and options to <code>win32</code></li>
  <li>Configured Proxy for the downloads and clicked on Generate.</li>
  </ol>
  
  <p>I got no noticeable Errors in the build process. The last lines of the console are:</p>
  
  <pre><code>Install to:                    C:/Users/user/opencv/build/install
  
  Configuring done
  Generating done
  </code></pre>
  
  <p>There is also no <code>install</code> folder inside <code>opencv/install</code>. I think it installs to <code>opencv/build/win-install</code>.</p>
  
  <p>What am i doing wrong?</p>