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
3afe8832
Commit
3afe8832
authored
Aug 20, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5195 from mshabunin:warn-missing-contrib
parents
4a067dca
973abf0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
23 deletions
+32
-23
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+32
-23
No files found.
cmake/OpenCVModule.cmake
View file @
3afe8832
...
...
@@ -248,31 +248,40 @@ macro(ocv_glob_modules)
foreach
(
__path
${
ARGN
}
)
if
(
"
${
__path
}
"
STREQUAL
"EXTRA"
)
set
(
OPENCV_PROCESSING_EXTRA_MODULES 1
)
e
ndif
()
get_filename_component
(
__path
"
${
__path
}
"
ABSOLUTE
)
e
lse
()
get_filename_component
(
__path
"
${
__path
}
"
ABSOLUTE
)
list
(
FIND __directories_observed
"
${
__path
}
"
__pathIdx
)
if
(
__pathIdx GREATER -1
)
message
(
FATAL_ERROR
"The directory
${
__path
}
is observed for OpenCV modules second time."
)
endif
()
list
(
APPEND __directories_observed
"
${
__path
}
"
)
file
(
GLOB __ocvmodules RELATIVE
"
${
__path
}
"
"
${
__path
}
/*"
)
if
(
__ocvmodules
)
list
(
SORT __ocvmodules
)
foreach
(
mod
${
__ocvmodules
}
)
get_filename_component
(
__modpath
"
${
__path
}
/
${
mod
}
"
ABSOLUTE
)
if
(
EXISTS
"
${
__modpath
}
/CMakeLists.txt"
)
list
(
FIND __directories_observed
"
${
__modpath
}
"
__pathIdx
)
if
(
__pathIdx GREATER -1
)
message
(
FATAL_ERROR
"The module from
${
__modpath
}
is already loaded."
)
endif
()
list
(
APPEND __directories_observed
"
${
__modpath
}
"
)
list
(
FIND __directories_observed
"
${
__path
}
"
__pathIdx
)
if
(
__pathIdx GREATER -1
)
message
(
FATAL_ERROR
"The directory
${
__path
}
is observed for OpenCV modules second time."
)
endif
()
list
(
APPEND __directories_observed
"
${
__path
}
"
)
set
(
__count 0
)
file
(
GLOB __ocvmodules RELATIVE
"
${
__path
}
"
"
${
__path
}
/*"
)
if
(
__ocvmodules
)
list
(
SORT __ocvmodules
)
foreach
(
mod
${
__ocvmodules
}
)
get_filename_component
(
__modpath
"
${
__path
}
/
${
mod
}
"
ABSOLUTE
)
if
(
EXISTS
"
${
__modpath
}
/CMakeLists.txt"
)
list
(
FIND __directories_observed
"
${
__modpath
}
"
__pathIdx
)
if
(
__pathIdx GREATER -1
)
message
(
FATAL_ERROR
"The module from
${
__modpath
}
is already loaded."
)
endif
()
list
(
APPEND __directories_observed
"
${
__modpath
}
"
)
add_subdirectory
(
"
${
__modpath
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
mod
}
/.
${
mod
}
"
)
endif
()
endforeach
()
add_subdirectory
(
"
${
__modpath
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
mod
}
/.
${
mod
}
"
)
if
(
DEFINED OPENCV_MODULE_opencv_
${
mod
}
_LOCATION
)
math
(
EXPR __count
"
${
__count
}
+ 1"
)
endif
()
endif
()
endforeach
()
endif
()
if
(
OPENCV_PROCESSING_EXTRA_MODULES AND
${
__count
}
LESS 1
)
message
(
SEND_ERROR
"No extra modules found in folder:
${
__path
}
\n
Please provide path to 'opencv_contrib/modules' folder."
)
endif
()
endif
()
endforeach
()
ocv_clear_vars
(
__ocvmodules __directories_observed __path __modpath __pathIdx
)
...
...
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