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
c6309278
Commit
c6309278
authored
Feb 12, 2018
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Samples: fixed viz tutorials building with enabled opencv_world
parent
2d1350a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
samples/cpp/CMakeLists.txt
+4
-4
No files found.
samples/cpp/CMakeLists.txt
View file @
c6309278
...
...
@@ -33,7 +33,7 @@ endif()
if
(
NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters
)
ocv_list_filterout
(
cpp_samples
"/gpu/"
)
endif
()
if
(
NOT
TARGET opencv_viz
)
if
(
NOT
VTK_USE_FILE
)
ocv_list_filterout
(
cpp_samples
"/viz/"
)
endif
()
if
(
NOT HAVE_IPP_A
)
...
...
@@ -41,7 +41,7 @@ if(NOT HAVE_IPP_A)
endif
()
ocv_list_filterout
(
cpp_samples
"real_time_pose_estimation/"
)
foreach
(
sample_filename
${
cpp_samples
}
)
if
(
sample_filename MATCHES
"
viz/"
AND VTK_USE_FILE
)
if
(
sample_filename MATCHES
"
/viz/"
)
include
(
${
VTK_USE_FILE
}
)
endif
()
set
(
package
"cpp"
)
...
...
@@ -50,10 +50,10 @@ foreach(sample_filename ${cpp_samples})
endif
()
ocv_define_sample
(
tgt
${
sample_filename
}
${
package
}
)
ocv_target_link_libraries
(
${
tgt
}
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
if
(
sample_filename MATCHES
"gpu/"
AND HAVE_opencv_cudaarithm AND HAVE_opencv_cuda_filters
)
if
(
sample_filename MATCHES
"
/
gpu/"
AND HAVE_opencv_cudaarithm AND HAVE_opencv_cuda_filters
)
ocv_target_link_libraries
(
${
tgt
}
opencv_cudaarithm opencv_cudafilters
)
endif
()
if
(
sample_filename MATCHES
"
viz/"
AND VTK_USE_FILE
)
if
(
sample_filename MATCHES
"
/viz/"
)
ocv_target_link_libraries
(
${
tgt
}
${
VTK_LIBRARIES
}
)
target_compile_definitions
(
${
tgt
}
PRIVATE -DUSE_VTK
)
endif
()
...
...
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