Build both Python 2 and Python 3 bindings
[profile/ivi/opencv.git] / modules / python / CMakeLists.txt
1 # ----------------------------------------------------------------------------
2 #  CMake file for python support
3 # ----------------------------------------------------------------------------
4
5 if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL "Debug")
6   ocv_module_disable(python2)
7   ocv_module_disable(python3)
8 endif()
9
10 if(ANDROID OR IOS)
11   ocv_module_disable(python2)
12   ocv_module_disable(python3)
13 endif()
14
15 add_subdirectory(python2)
16 add_subdirectory(python3)