1
0
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:
Alexander Alekhin
2018-06-07 12:32:48 +03:00
parent 7c3090ddcf
commit dd7f88bd68
7 changed files with 133 additions and 23 deletions
+8
View File
@@ -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()