Build both Python 2 and Python 3 bindings
authorMichael Pratt <michael@pratt.im>
Sun, 29 Jun 2014 20:45:24 +0000 (16:45 -0400)
committerarc <arc@cthulhu>
Mon, 30 Jun 2014 00:08:13 +0000 (20:08 -0400)
commitcac1218eef7ebbd07951e961d547234d5c910bd2
treed27bbc5d1428ec083cc7e9b4838f3bc4eed2bab4
parent2d81595ed4ac44dd02779485bdd76ec15edb4ee7
Build both Python 2 and Python 3 bindings

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.
CMakeLists.txt
cmake/OpenCVDetectPython.cmake
cmake/OpenCVMinDepVersions.cmake
doc/CMakeLists.txt
modules/java/CMakeLists.txt
modules/java/android_test/CMakeLists.txt
modules/matlab/CMakeLists.txt
modules/python/CMakeLists.txt
modules/python/common.cmake [new file with mode: 0644]
modules/python/python2/CMakeLists.txt [new file with mode: 0644]
modules/python/python3/CMakeLists.txt [new file with mode: 0644]