Skip to content

Instantly share code, notes, and snippets.

@meresmclr
Created July 8, 2016 04:35
Show Gist options
  • Save meresmclr/34fbd0bc2824c7b8ade31f51e6539645 to your computer and use it in GitHub Desktop.
Save meresmclr/34fbd0bc2824c7b8ade31f51e6539645 to your computer and use it in GitHub Desktop.
OpenCV 3 simple CMake for Linux and Cygwin
cmake -DBUILD_TIFF=ON -DBUILD_opencv_java=OFF -DWITH_CUDA=OFF -DENABLE_AVX=OFF -DWITH_OPENGL=OFF \
-DWITH_OPENCL=OFF -DWITH_IPP=OFF -DWITH_TBB=OFF -DWITH_EIGEN=OFF -DWITH_V4L=OFF -DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
-DPYTHON3_EXECUTABLE=$(which python3) \
-DPYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment