2014-06-29 22:45:24 +02:00
|
|
|
if(NOT PYTHON2LIBS_FOUND OR NOT PYTHON2_NUMPY_INCLUDE_DIRS)
|
|
|
|
ocv_module_disable(python2)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "The python2 bindings")
|
2014-07-31 07:11:30 +02:00
|
|
|
set(MODULE_NAME python2)
|
2014-08-07 06:21:42 +02:00
|
|
|
# Buildbot requires Python 2 to be in root lib dir
|
|
|
|
set(MODULE_INSTALL_SUBDIR "")
|
2014-06-29 22:45:24 +02:00
|
|
|
|
|
|
|
set(PYTHON_INCLUDE_PATH ${PYTHON2_INCLUDE_PATH})
|
2014-07-31 09:27:06 +02:00
|
|
|
set(PYTHON_NUMPY_INCLUDE_DIRS ${PYTHON2_NUMPY_INCLUDE_DIRS})
|
2014-06-29 22:45:24 +02:00
|
|
|
set(PYTHON_EXECUTABLE ${PYTHON2_EXECUTABLE})
|
|
|
|
set(PYTHON_DEBUG_LIBRARIES ${PYTHON2_DEBUG_LIBRARIES})
|
|
|
|
set(PYTHON_LIBRARIES ${PYTHON2_LIBRARIES})
|
|
|
|
set(PYTHON_PACKAGES_PATH ${PYTHON2_PACKAGES_PATH})
|
|
|
|
set(PYTHON_VERSION_MAJOR ${PYTHON2_VERSION_MAJOR})
|
|
|
|
set(PYTHON_VERSION_MINOR ${PYTHON2_VERSION_MINOR})
|
|
|
|
|
|
|
|
include(../common.cmake)
|
|
|
|
|
2014-07-31 07:11:30 +02:00
|
|
|
unset(MODULE_NAME)
|
2014-08-07 06:21:42 +02:00
|
|
|
unset(MODULE_INSTALL_SUBDIR)
|
2014-06-29 22:45:24 +02:00
|
|
|
unset(PYTHON_INCLUDE_PATH)
|
2014-08-06 08:30:35 +02:00
|
|
|
unset(PYTHON_NUMPY_INCLUDE_DIRS)
|
2014-06-29 22:45:24 +02:00
|
|
|
unset(PYTHON_EXECUTABLE)
|
|
|
|
unset(PYTHON_DEBUG_LIBRARIES)
|
|
|
|
unset(PYTHON_LIBRARIES)
|
|
|
|
unset(PYTHON_PACKAGES_PATH)
|
|
|
|
unset(PYTHON_VERSION_MAJOR)
|
|
|
|
unset(PYTHON_VERSION_MINOR)
|