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
39ecd940
Commit
39ecd940
authored
Mar 04, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forbid recursive globbing for OpenCV modules sources
parent
19f863ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+10
-15
No files found.
cmake/OpenCVModule.cmake
View file @
39ecd940
...
@@ -427,24 +427,21 @@ endmacro()
...
@@ -427,24 +427,21 @@ endmacro()
# Usage:
# Usage:
# ocv_glob_module_sources(<extra sources&headers in the same format as used in ocv_set_module_sources>)
# ocv_glob_module_sources(<extra sources&headers in the same format as used in ocv_set_module_sources>)
macro
(
ocv_glob_module_sources
)
macro
(
ocv_glob_module_sources
)
file
(
GLOB
_RECURSE lib_srcs
"src/*.cpp"
)
file
(
GLOB
lib_srcs
"src/*.cpp"
)
file
(
GLOB
_RECURSE
lib_int_hdrs
"src/*.hpp"
"src/*.h"
)
file
(
GLOB lib_int_hdrs
"src/*.hpp"
"src/*.h"
)
file
(
GLOB lib_hdrs
"include/opencv2/
${
name
}
/*.hpp"
"include/opencv2/
${
name
}
/*.h"
)
file
(
GLOB lib_hdrs
"include/opencv2/
${
name
}
/*.hpp"
"include/opencv2/
${
name
}
/*.h"
)
file
(
GLOB lib_hdrs_detail
"include/opencv2/
${
name
}
/detail/*.hpp"
"include/opencv2/
${
name
}
/detail/*.h"
)
file
(
GLOB lib_hdrs_detail
"include/opencv2/
${
name
}
/detail/*.hpp"
"include/opencv2/
${
name
}
/detail/*.h"
)
file
(
GLOB
_RECURSE lib_device_srcs
"src
/*.cu"
)
file
(
GLOB
lib_device_srcs
"src/cuda
/*.cu"
)
set
(
device_objs
""
)
set
(
device_objs
""
)
set
(
lib_device_hdrs
""
)
set
(
lib_device_hdrs
""
)
if
(
HAVE_CUDA AND lib_device_srcs
)
if
(
HAVE_CUDA AND lib_device_srcs
)
ocv_include_directories
(
${
CUDA_INCLUDE_DIRS
}
)
ocv_include_directories
(
${
CUDA_INCLUDE_DIRS
}
)
file
(
GLOB
_RECURSE
lib_device_hdrs
"src/cuda/*.hpp"
)
file
(
GLOB lib_device_hdrs
"src/cuda/*.hpp"
)
ocv_cuda_compile
(
device_objs
${
lib_device_srcs
}
)
ocv_cuda_compile
(
device_objs
${
lib_device_srcs
}
${
lib_device_hdrs
}
)
source_group
(
"Src
\\
Cuda"
FILES
${
lib_device_srcs
}
${
lib_device_hdrs
}
)
source_group
(
"Src
\\
Cuda"
FILES
${
lib_device_srcs
}
${
lib_device_hdrs
}
)
if
(
lib_device_hdrs
)
list
(
REMOVE_ITEM lib_int_hdrs
${
lib_device_hdrs
}
)
endif
()
endif
()
endif
()
ocv_set_module_sources
(
${
ARGN
}
HEADERS
${
lib_hdrs
}
${
lib_hdrs_detail
}
ocv_set_module_sources
(
${
ARGN
}
HEADERS
${
lib_hdrs
}
${
lib_hdrs_detail
}
...
@@ -462,14 +459,12 @@ endmacro()
...
@@ -462,14 +459,12 @@ endmacro()
# ocv_create_module(SKIP_LINK)
# ocv_create_module(SKIP_LINK)
macro
(
ocv_create_module
)
macro
(
ocv_create_module
)
add_library
(
${
the_module
}
${
OPENCV_MODULE_TYPE
}
${
OPENCV_MODULE_
${
the_module
}
_HEADERS
}
${
OPENCV_MODULE_
${
the_module
}
_SOURCES
}
)
add_library
(
${
the_module
}
${
OPENCV_MODULE_TYPE
}
${
OPENCV_MODULE_
${
the_module
}
_HEADERS
}
${
OPENCV_MODULE_
${
the_module
}
_SOURCES
}
)
set
(
cuda_libs
""
)
if
(
HAVE_CUDA
)
set
(
cuda_libs
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
cuda_libs
}
${
ARGN
}
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
if
(
HAVE_CUDA
)
target_link_libraries
(
${
the_module
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
endif
()
endif
()
add_dependencies
(
opencv_modules
${
the_module
}
)
add_dependencies
(
opencv_modules
${
the_module
}
)
...
...
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