mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
python: support standalone Python bindings build
- requires OpenCV source directory - requires OpenCV binary directory with built modules and 'python_bindings_generator' target
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# CMake file for python support
|
||||
# ----------------------------------------------------------------------------
|
||||
if(DEFINED OPENCV_INITIAL_PASS) # OpenCV build
|
||||
|
||||
add_subdirectory(bindings)
|
||||
|
||||
@@ -28,3 +29,10 @@ endif()
|
||||
|
||||
add_subdirectory(python2)
|
||||
add_subdirectory(python3)
|
||||
|
||||
else() # standalone build
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
include("./standalone.cmake")
|
||||
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user