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
e7e29cb6
Commit
e7e29cb6
authored
May 18, 2017
by
Vladislav Sovrasov
Committed by
Alexander Alekhin
Apr 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: add compilation test for VTK
parent
ca922443
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
OpenCVDetectVTK.cmake
cmake/OpenCVDetectVTK.cmake
+13
-0
vtk_test.cpp
cmake/checks/vtk_test.cpp
+9
-0
No files found.
cmake/OpenCVDetectVTK.cmake
View file @
e7e29cb6
...
...
@@ -52,5 +52,18 @@ if(HAVE_QT AND ${VTK_VERSION} VERSION_GREATER "6.0.0" AND NOT ${VTK_QT_VERSION}
endif
()
endif
()
try_compile
(
VTK_COMPILE_STATUS
"
${
OpenCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/vtk_test.cpp"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=
${
VTK_INCLUDE_DIRS
}
"
LINK_LIBRARIES
${
VTK_LIBRARIES
}
OUTPUT_VARIABLE OUTPUT
)
if
(
NOT
${
VTK_COMPILE_STATUS
}
)
message
(
STATUS
"VTK support is disabled. Compilation of the sample code has failed."
)
return
()
endif
()
set
(
HAVE_VTK ON
)
message
(
STATUS
"Found VTK
${
VTK_VERSION
}
(
${
VTK_USE_FILE
}
)"
)
cmake/checks/vtk_test.cpp
0 → 100644
View file @
e7e29cb6
#include <vtkSmartPointer.h>
#include <vtkTransform.h>
#include <vtkMath.h>
int
main
()
{
vtkSmartPointer
<
vtkTransform
>
transform
=
vtkSmartPointer
<
vtkTransform
>::
New
();
return
0
;
}
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