2014-06-30 04:45:24 +08:00
|
|
|
if(NOT PYTHON3LIBS_FOUND OR NOT PYTHON3_NUMPY_INCLUDE_DIRS)
|
|
|
|
ocv_module_disable(python3)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "The python3 bindings")
|
2014-07-31 13:11:30 +08:00
|
|
|
set(MODULE_NAME python3)
|
2014-06-30 04:45:24 +08:00
|
|
|
|
|
|
|
set(PYTHON_INCLUDE_PATH ${PYTHON3_INCLUDE_PATH})
|
|
|
|
set(PYTHON_NUMPY_INCLUDE_PATH ${PYTHON3_NUMPY_INCLUDE_PATH})
|
|
|
|
set(PYTHON_EXECUTABLE ${PYTHON3_EXECUTABLE})
|
|
|
|
set(PYTHON_DEBUG_LIBRARIES ${PYTHON3_DEBUG_LIBRARIES})
|
|
|
|
set(PYTHON_LIBRARIES ${PYTHON3_LIBRARIES})
|
|
|
|
set(PYTHON_PACKAGES_PATH ${PYTHON3_PACKAGES_PATH})
|
|
|
|
set(PYTHON_VERSION_MAJOR ${PYTHON3_VERSION_MAJOR})
|
|
|
|
set(PYTHON_VERSION_MINOR ${PYTHON3_VERSION_MINOR})
|
|
|
|
|
|
|
|
include(../common.cmake)
|
|
|
|
|
2014-07-31 13:11:30 +08:00
|
|
|
unset(MODULE_NAME)
|
2014-06-30 04:45:24 +08:00
|
|
|
unset(PYTHON_INCLUDE_PATH)
|
|
|
|
unset(PYTHON_NUMPY_INCLUDE_PATH)
|
|
|
|
unset(PYTHON_EXECUTABLE)
|
|
|
|
unset(PYTHON_DEBUG_LIBRARIES)
|
|
|
|
unset(PYTHON_LIBRARIES)
|
|
|
|
unset(PYTHON_PACKAGES_PATH)
|
|
|
|
unset(PYTHON_VERSION_MAJOR)
|
|
|
|
unset(PYTHON_VERSION_MINOR)
|