Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
964657a1
Commit
964657a1
authored
Jul 22, 2014
by
Alexander Mordvintsev
Committed by
Alexander Mordvintsev
Jul 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glob for python module dependences
parent
1d1bfd3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
CMakeLists.txt
modules/python/CMakeLists.txt
+23
-4
No files found.
modules/python/CMakeLists.txt
View file @
964657a1
...
@@ -11,7 +11,26 @@ if(ANDROID OR IOS OR NOT PYTHONLIBS_FOUND OR NOT PYTHON_NUMPY_INCLUDE_DIRS)
...
@@ -11,7 +11,26 @@ if(ANDROID OR IOS OR NOT PYTHONLIBS_FOUND OR NOT PYTHON_NUMPY_INCLUDE_DIRS)
endif
()
endif
()
set
(
the_description
"The python bindings"
)
set
(
the_description
"The python bindings"
)
ocv_add_module
(
python BINDINGS opencv_core opencv_flann opencv_imgproc opencv_video opencv_ml opencv_features2d opencv_imgcodecs opencv_videoio opencv_highgui opencv_calib3d opencv_photo opencv_objdetect OPTIONAL opencv_nonfree
)
set
(
candidate_deps_raw
)
foreach
(
mp
${
OPENCV_MODULES_PATH
}
${
OPENCV_EXTRA_MODULES_PATH
}
)
file
(
GLOB names
"
${
mp
}
/*"
)
list
(
APPEND candidate_deps_raw
${
names
}
)
endforeach
(
mp
)
set
(
candidate_deps
)
foreach
(
m IN LISTS candidate_deps_raw
)
if
(
IS_DIRECTORY
${
m
}
)
get_filename_component
(
m
${
m
}
NAME
)
if
(
NOT
${
m
}
MATCHES
"^cud(a|ev)"
)
if
(
NOT
${
m
}
MATCHES
"optim"
)
# unless we handle namespaces
list
(
APPEND candidate_deps
"opencv_
${
m
}
"
)
endif
()
endif
()
endif
()
endforeach
(
m
)
ocv_add_module
(
python BINDINGS OPTIONAL
${
candidate_deps
}
)
ocv_module_include_directories
(
ocv_module_include_directories
(
"
${
PYTHON_INCLUDE_PATH
}
"
"
${
PYTHON_INCLUDE_PATH
}
"
...
@@ -21,9 +40,9 @@ ocv_module_include_directories(
...
@@ -21,9 +40,9 @@ ocv_module_include_directories(
set
(
opencv_hdrs_raw
)
set
(
opencv_hdrs_raw
)
foreach
(
m
od_name
IN LISTS OPENCV_MODULE_opencv_python_DEPS
)
foreach
(
m IN LISTS OPENCV_MODULE_opencv_python_DEPS
)
list
(
APPEND opencv_hdrs_raw
"
${
OPENCV_MODULE_
${
m
od_name
}
_HEADERS
}
"
)
list
(
APPEND opencv_hdrs_raw
"
${
OPENCV_MODULE_
${
m
}
_HEADERS
}
"
)
endforeach
(
m
od_name
)
endforeach
(
m
)
# remove problematic headers
# remove problematic headers
set
(
opencv_hdrs
)
set
(
opencv_hdrs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment