Home | History | Annotate | Download | only in python2
      1 if(NOT PYTHON2LIBS_FOUND OR NOT PYTHON2_NUMPY_INCLUDE_DIRS)
      2   ocv_module_disable(python2)
      3 endif()
      4 
      5 set(the_description "The python2 bindings")
      6 set(MODULE_NAME python2)
      7 # Buildbot requires Python 2 to be in root lib dir
      8 set(MODULE_INSTALL_SUBDIR "")
      9 
     10 set(PYTHON_INCLUDE_PATH ${PYTHON2_INCLUDE_PATH})
     11 set(PYTHON_NUMPY_INCLUDE_DIRS ${PYTHON2_NUMPY_INCLUDE_DIRS})
     12 set(PYTHON_EXECUTABLE ${PYTHON2_EXECUTABLE})
     13 set(PYTHON_DEBUG_LIBRARIES ${PYTHON2_DEBUG_LIBRARIES})
     14 set(PYTHON_LIBRARIES ${PYTHON2_LIBRARIES})
     15 set(PYTHON_PACKAGES_PATH ${PYTHON2_PACKAGES_PATH})
     16 set(PYTHON_VERSION_MAJOR ${PYTHON2_VERSION_MAJOR})
     17 set(PYTHON_VERSION_MINOR ${PYTHON2_VERSION_MINOR})
     18 
     19 include(../common.cmake)
     20 
     21 unset(MODULE_NAME)
     22 unset(MODULE_INSTALL_SUBDIR)
     23 unset(PYTHON_INCLUDE_PATH)
     24 unset(PYTHON_NUMPY_INCLUDE_DIRS)
     25 unset(PYTHON_EXECUTABLE)
     26 unset(PYTHON_DEBUG_LIBRARIES)
     27 unset(PYTHON_LIBRARIES)
     28 unset(PYTHON_PACKAGES_PATH)
     29 unset(PYTHON_VERSION_MAJOR)
     30 unset(PYTHON_VERSION_MINOR)
     31