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
6da7c50f
Commit
6da7c50f
authored
Dec 19, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make dependency from CUDA explicit to prevent from fake dependedcies from CUDA runtime.
parent
442082eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
18 deletions
+8
-18
CMakeLists.txt
CMakeLists.txt
+0
-12
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+0
-3
CMakeLists.txt
modules/core/CMakeLists.txt
+5
-1
CMakeLists.txt
modules/gpu/CMakeLists.txt
+2
-1
CMakeLists.txt
modules/superres/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
6da7c50f
...
...
@@ -459,18 +459,6 @@ if(WITH_OPENCL)
include
(
cmake/OpenCVDetectOpenCL.cmake
)
endif
()
# ----------------------------------------------------------------------------
# Add CUDA libraries (needed for apps/tools, samples)
# ----------------------------------------------------------------------------
if
(
HAVE_CUDA
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
if
(
HAVE_CUBLAS
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
${
CUDA_cublas_LIBRARY
}
)
endif
()
if
(
HAVE_CUFFT
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
${
CUDA_cufft_LIBRARY
}
)
endif
()
endif
()
# ----------------------------------------------------------------------------
# Solution folders:
# ----------------------------------------------------------------------------
...
...
cmake/OpenCVModule.cmake
View file @
6da7c50f
...
...
@@ -537,9 +537,6 @@ macro(ocv_create_module)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
LINK_INTERFACE_LIBRARIES
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
${
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
()
add_dependencies
(
opencv_modules
${
the_module
}
)
...
...
modules/core/CMakeLists.txt
View file @
6da7c50f
...
...
@@ -33,7 +33,11 @@ macro(ocv_glob_module_sources_no_cuda)
SOURCES
${
lib_srcs
}
${
lib_int_hdrs
}
${
cuda_objs
}
${
lib_cuda_hdrs
}
)
endmacro
()
ocv_add_module
(
core PRIVATE_REQUIRED
${
ZLIB_LIBRARIES
}
)
if
(
DYNAMIC_CUDA_SUPPORT
)
ocv_add_module
(
core PRIVATE_REQUIRED
${
ZLIB_LIBRARIES
}
)
else
()
ocv_add_module
(
core PRIVATE_REQUIRED
${
ZLIB_LIBRARIES
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
ocv_module_include_directories
(
${
ZLIB_INCLUDE_DIR
}
)
if
(
HAVE_WINRT
)
...
...
modules/gpu/CMakeLists.txt
View file @
6da7c50f
...
...
@@ -3,7 +3,8 @@ if(IOS)
endif
()
set
(
the_description
"GPU-accelerated Computer Vision"
)
ocv_add_module
(
gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_photo opencv_legacy
)
ocv_add_module
(
gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_photo opencv_legacy
OPTIONAL
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
${
CUDA_cublas_LIBRARY
}
${
CUDA_cufft_LIBRARY
}
)
ocv_module_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/cuda"
)
...
...
modules/superres/CMakeLists.txt
View file @
6da7c50f
...
...
@@ -4,4 +4,4 @@ endif()
set
(
the_description
"Super Resolution"
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4127 -Wundef
)
ocv_define_module
(
superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui opencv_ocl
)
ocv_define_module
(
superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui opencv_ocl
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
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