title: OpenCV compliation on linux: how to feed to it specific zlib lib?
body: <p>I want to compile OpenCV with same zlib as I use for compilation of Boost Iostreams (not system default one). I want to compile OpenCV as static lib, having zlib compiled as static lib.  Currently I use something like :</p>
  
  <pre><code> ../$CMAKE_PATH -DCMAKE_INSTALL_PREFIX=./$OPENCV_INSTALL_SUBDIR -DBUILD_WITH_STATIC_CRT=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_PYTHON_SUPPORT=OFF -DOPENCV_EXTRA_C_FLAGS=-fPIC -DOPENCV_BUILD_3RDPARTY_LIBS=TRUE
  make
  make install
  echo Done! 
  </code></pre>
  
  <p>I wonder: having some <code>$ZLIB_HEADERS</code> and <code>$ZLIB_LIB_FILES_FOLDER</code> path strings how to feed them into cmake to get OpenCV compiled with built by me zlib?</p>