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
9a91a12f
Commit
9a91a12f
authored
Sep 06, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VIZ disabled by default, VTK search is performed iff BUILD_opencv_viz is enabled
parent
477ca067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
CMakeLists.txt
modules/viz/CMakeLists.txt
+10
-9
No files found.
modules/viz/CMakeLists.txt
View file @
9a91a12f
...
...
@@ -22,30 +22,31 @@ macro(find_vtk)
set
(
HAVE_VTK ON
)
else
()
set
(
HAVE_VTK OFF
)
message
(
WARNING
"VTK disabled. You are to build OpenCV in STATIC but VTK is SHARED!"
)
message
(
FATAL_ERROR
"VTK disabled. You are to build OpenCV in STATIC but VTK is SHARED!"
)
endif
()
endif
()
endmacro
()
find_vtk
()
if
(
NOT OPENCV_INITIAL_PASS AND DEFINED BUILD_opencv_viz AND BUILD_opencv_viz
)
find_vtk
()
endif
()
if
(
HAVE_VTK
)
if
(
DEFINED HAVE_VTK AND
HAVE_VTK
)
set
(
VTK_USE_FILE
${
VTK_USE_FILE
}
CACHE INTERNAL
"VTK_USE_FILE"
)
include
(
${
VTK_USE_FILE
}
)
add_definitions
(
-DHAVE_VTK
)
else
()
return
()
endif
()
set
(
the_description
"Viz"
)
set
(
BUILD_opencv_viz_INIT OFF
)
include_directories
(
src
)
ocv_define_module
(
viz opencv_core
)
if
(
BUILD_opencv_viz
)
if
(
DEFINED BUILD_opencv_viz AND BUILD_opencv_viz AND DEFINED HAVE_VTK AND HAVE_VTK
)
target_link_libraries
(
opencv_viz vtkCommon vtkWidgets vtkFiltering vtkRendering
)
if
(
APPLE
)
target_link_libraries
(
opencv_viz
"-framework Cocoa"
)
target_link_libraries
(
opencv_viz
"-framework Cocoa"
)
endif
()
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