mirror of
https://github.com/opencv/opencv.git
synced 2024-12-27 03:14:05 +08:00
cac1218eef
If both Python 2 and Python 3 are found, then build bindings for both of them during the build process. Currently, one version of Python is detected automatically, and building for the other requires changes the CMake config. The largest chunk of this change generalizes OpenCVDetectPython.cmake to find both a Python 2 and Python 3 version of Python. Secondly, the opencv_python module is split into two modules, opencv_python2 and opencv_python3. Both are built from the same source. but for different versions of Python.
7 lines
145 B
CMake
7 lines
145 B
CMake
set(MIN_VER_CMAKE 2.8.7)
|
|
set(MIN_VER_CUDA 4.2)
|
|
set(MIN_VER_PYTHON2 2.6)
|
|
set(MIN_VER_PYTHON3 3.2)
|
|
set(MIN_VER_ZLIB 1.2.3)
|
|
set(MIN_VER_GTK 2.18.0)
|