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
28ecd54f
Commit
28ecd54f
authored
Oct 17, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Oct 17, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1634 from alalek:cmake_fix_cuda_linker_deps
parents
bfdbc9ce
09f0e177
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
CMakeLists.txt
+12
-0
CMakeLists.txt
apps/CMakeLists.txt
+2
-0
No files found.
CMakeLists.txt
View file @
28ecd54f
...
@@ -456,6 +456,18 @@ if(WITH_OPENCL)
...
@@ -456,6 +456,18 @@ if(WITH_OPENCL)
include
(
cmake/OpenCVDetectOpenCL.cmake
)
include
(
cmake/OpenCVDetectOpenCL.cmake
)
endif
()
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:
# Solution folders:
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
...
...
apps/CMakeLists.txt
View file @
28ecd54f
link_libraries
(
${
OPENCV_LINKER_LIBS
}
)
add_subdirectory
(
haartraining
)
add_subdirectory
(
haartraining
)
add_subdirectory
(
traincascade
)
add_subdirectory
(
traincascade
)
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