File tree Expand file tree Collapse file tree
tests/packages/find_package Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,4 +5,30 @@ project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION})
55find_package (Python COMPONENTS Interpreter Development.Module )
66
77set (expected_version "9.5.0" )
8- find_package (VTK ${expected_version} REQUIRED )
8+ find_package (VTK ${expected_version} )
9+
10+ set (skipped_components
11+ # Not VTK modules, from
12+ # https://gitlab.kitware.com/vtk/vtk/-/blob/master/CMake/vtkInstallCMakePackage.cmake#L19
13+ WrapHierarchy
14+ vtkbuild
15+ vtkplatform
16+ vtkpython
17+ pvtkpython
18+ WrapPython
19+ WrapPythonInit
20+ vtkjava
21+ ParseJava
22+ WrapJava
23+ vtkWebAssemblyTestLinkOptions
24+ # Public dependency to OpenXR loader
25+ RenderingOpenXR
26+ RenderingOpenXRRemoting)
27+ foreach (comp IN LISTS VTK_AVAILABLE_COMPONENTS)
28+ if ("${skipped_components} " MATCHES "${comp} " )
29+ continue ()
30+ endif ()
31+ if (NOT VTK_${comp} _FOUND)
32+ message (SEND_ERROR "Expected VTK component \" ${comp} \" could not be found!" )
33+ endif ()
34+ endforeach ()
You can’t perform that action at this time.
0 commit comments