vtk-config.cmake
Go to the documentation of this file.
1 #[==[.md
2 # vtk-config.cmake
3 
4 This file is used by CMake when finding VTK. It provides the [VTK module
5 API][] as well as some VTK-specific APIs.
6 
7 The following variables are provided by this module:
8 
9  * `VTK_VERSION`: The version of VTK found.
10  * `VTK_MAJOR_VERSION`: The major version of VTK found.
11  * `VTK_MINOR_VERSION`: The minor version of VTK found.
12  * `VTK_BUILD_VERSION`: The build version of VTK found.
13  * `VTK_AVAILABLE_COMPONENTS`: Components available with VTK.
14  * `VTK_PREFIX_PATH`: Install prefix for VTK.
15  * `VTK_LEGACY_REMOVE`: Whether VTK's deprecated APIs are
16  compiled out or not.
17  * `VTK_HAS_VTKm`: If VTK provides VTK-m.
18  * `VTK_OPENGL_HAS_EGL`: If VTK::opengl uses EGL. Only provided if the
19  `VTK::opengl` target exists.
20  * `VTK_OPENGL_HAS_OSMESA`: If VTK::opengl uses OSMESA. Only provided if the
21  `VTK::opengl` target exists.
22  * `VTK_USE_X`: If VTK uses X windows. Only provided if the
23  `VTK::opengl` target exists.
24  * `VTK_PYTHON_VERSION`: The major version of Python used by VTK. Empty if
25  Python support is not available.
26  * `VTK_WRAP_PYTHON`: If VTK itself provides Python wrapping. If so, the
27  Python parts of the module API are available.
28  * `VTK_WRAP_JAVA`: If VTK itself provides Java wrapping. If so, the
29  Java parts of the module API are available.
30  * `VTK_WRAP_SERIALIZATION`: If VTK itself provides serialization wrappings
31  for marshallable classes in modules with `INCLUDE_MARSHAL`.
32  * `VTK_PYTHONPATH`: Where VTK's Python modules live inside the install
33  prefix. Unset if Python is not available.
34  * `VTK_LIBRARIES`: The list of modules specified by `COMPONENTS` and
35  `OPTIONAL_COMPONENTS`. However, if no components are specified, all
36  available components are added to this variable. This may be used in
37  `MODULES` arguments in the API (e.g., `vtk_module_autoinit`). All modules
38  are also targets and may be linked to using `target_link_libraries`.
39  * `VTK_AUTOINIT_INCLUDE`: The header to include for access to VTK's autoinit
40  support.
41  * `VTK_QT_VERSION`: The major version of Qt used by VTK if Qt support enabled.
42  * `VTK_QML_DIR`: Where VTK's QML plugins live if QML support is enabled.
43  * `VTK_ENABLE_VR_COLLABORATION`: Is VR collaboration enabled when VR is enabled.
44  * `VTK_SMP_BACKENDS`: The list of available SMP backends.
45 
46 For more information about the Python in use by VTK, (note that the `Python`
47 component must be found to guarantee that this happens), see the
48 [FindPython3][] documentation for what is available. Of particular use are
49 likely to be:
50 
51  - the `Python3_VERSION` variable; and
52  - the `Python3::Python` target.
53 
54 [FindPython3]: https://cmake.org/cmake/help/v3.13/module/FindPython3.html
55 [VTK module API]: TODO: Link to hosted documentation.
56 #]==]
57 
58 if (CMAKE_VERSION VERSION_LESS "3.12")
59  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
60  set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE"
61  "VTK requires CMake 3.12 in order to reliably be used.")
62  return ()
63 endif ()
64 
65 cmake_policy(PUSH)
66 cmake_policy(VERSION 3.12)
67 
68 set("${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS" "WrappingTools;WebPython;WebCore;WebGLExporter;PythonInterpreter;ViewsContext2D;ViewsCore;RenderingUI;loguru;cli11;TestingRendering;ImagingColor;TestingCore;RenderingVolumeAMR;RenderingVolumeOpenGL2;RenderingParallelLIC;RenderingParallel;RenderingMatplotlib;RenderingLabel;octree;RenderingLICOpenGL2;RenderingContextOpenGL2;RenderingCellGrid;ImagingMath;ParallelMPI4Py;mpi4py;ImagingFourier;IOXdmf2;IOXMLParser;libxml2;xdmf2;IOVeraOut;IOVPIC;vpic;IOTecplotTable;utf8;IOTRUCHAS;IOSegY;IOParallelXML;IOParallelNetCDF;IOParallelLSDyna;IOLSDyna;IOParallelExodus;IOExodus;exodusII;IOPLY;IOPIO;IOOggTheora;theora;ogg;IOOMF;IONetCDF;IOParallel;IOMPIImage;IOImport;IOIOSS;ioss;IOH5part;h5part;IOH5Rage;IOFLUENTCFF;IOMovie;IOFDS;IOInfovis;InfovisCore;IOExportGL2PS;RenderingGL2PSOpenGL2;gl2ps;png;netcdf;IOEnSight;IOERF;IOCityGML;IOChemistry;IOCONVERGECFD;IOHDF;IOCGNSReader;cgns;IOAsynchronous;IOExport;RenderingVtkJS;IOGeometry;RenderingSceneGraph;jsoncpp;IOAMR;hdf5;GeovisCore;libproj;sqlite;GUISupportQt;InteractionWidgets;RenderingVolume;RenderingAnnotation;InteractionStyle;ImagingHybrid;FiltersTensor;FiltersTemporal;FiltersPython;FiltersProgrammable;FiltersPoints;FiltersParallelVerdict;FiltersParallelStatistics;FiltersParallelGeometry;FiltersParallelFlowPaths;FiltersParallelDIY2;ParallelDIY;FiltersImaging;ImagingGeneral;FiltersGeometryPreview;FiltersGeneric;FiltersFlowPaths;eigen;FiltersAMR;FiltersParallelMPI;FiltersParallel;FiltersTexture;FiltersModeling;ParallelMPI;mpi;DomainsChemistryOpenGL2;RenderingOpenGL2;RenderingHyperTreeGrid;glew;opengl;FiltersHybrid;DomainsChemistry;WrappingPythonCore;Python;ChartsCore;FiltersExtraction;diy2;IOXML;expat;ParallelCore;IOLegacy;IOCellGrid;FiltersCellGrid;token;IOCore;lzma;fast_float;lz4;FiltersStatistics;FiltersHyperTree;ImagingSources;IOImage;DICOMParser;jpeg;metaio;tiff;RenderingContext2D;RenderingFreeType;freetype;kwiml;zlib;RenderingCore;FiltersSources;CommonColor;AcceleratorsVTKmFilters;AcceleratorsVTKmCore;AcceleratorsVTKmDataModel;ImagingCore;FiltersGeneral;fmt;FiltersVerdict;verdict;FiltersGeometry;CommonComputationalGeometry;FiltersCore;FiltersReduction;CommonExecutionModel;vtkvtkm;CommonDataModel;pegtl;pugixml;CommonSystem;CommonMisc;exprtk;CommonTransforms;CommonMath;kissfft;CommonCore;doubleconversion;nlohmannjson;vtksys;WrapHierarchy;WrapPython;WrapPythonInit;ParseJava;WrapJava")
69 
70 set(_vtk_temp_variables)
71 set(_vtk_real_components)
72 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS")
73  # Handle component requests that are not VTK.
74  if (NOT _vtk_component IN_LIST "${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS")
75  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
76  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
77  "The ${_vtk_component} component is not recognized.")
78  endif ()
79  if (_vtk_component MATCHES "^vtk" AND
80  NOT _vtk_component STREQUAL "vtksys" AND
81  NOT _vtk_component STREQUAL "vtkjava")
82  string(SUBSTRING "${_vtk_component}" 3 -1 _vtk_actual_component)
83  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION)
84  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
85  message(DEPRECATION
86  "The new name for the '${_vtk_component}' component is "
87  "'${_vtk_actual_component}'")
88  endif ()
89  elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90")
90  # Ignore for compatibility.
91  else ()
92  message(FATAL_ERROR
93  "The new name for the '${_vtk_component}' component is "
94  "'${_vtk_actual_component}'. By requesting at least version 8.90, the "
95  "new component names are now required.")
96  endif ()
97  list(APPEND _vtk_real_components
98  "${_vtk_actual_component}")
99  list(APPEND _vtk_temp_variables
100  "${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}")
101  set("${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}"
102  "${${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component}}")
103  unset(_vtk_actual_component)
104  else ()
105  list(APPEND _vtk_real_components
106  "${_vtk_component}")
107  endif ()
108 endforeach ()
109 unset(_vtk_component)
110 set("${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS"
111  ${_vtk_real_components})
112 unset(_vtk_real_components)
113 
114 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save" "${CMAKE_MODULE_PATH}")
115 list(INSERT CMAKE_MODULE_PATH 0
116  "${CMAKE_CURRENT_LIST_DIR}")
117 
118 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save" "${CMAKE_PREFIX_PATH}")
119 include("${CMAKE_CURRENT_LIST_DIR}/vtk-prefix.cmake")
120 set("${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH"
121  "${_vtk_module_import_prefix}")
122 unset(_vtk_module_import_prefix)
123 list(INSERT CMAKE_PREFIX_PATH 0
124  "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}")
125 
126 set("${CMAKE_FIND_PACKAGE_NAME}_VERSION" "9.4.20240617")
127 set("${CMAKE_FIND_PACKAGE_NAME}_MAJOR_VERSION" "9")
128 set("${CMAKE_FIND_PACKAGE_NAME}_MINOR_VERSION" "4")
129 set("${CMAKE_FIND_PACKAGE_NAME}_BUILD_VERSION" "20240617")
130 set("${CMAKE_FIND_PACKAGE_NAME}_LEGACY_REMOVE" "OFF")
131 set("${CMAKE_FIND_PACKAGE_NAME}_AUTOINIT_INCLUDE" "\"vtkAutoInit.h\"")
132 set("${CMAKE_FIND_PACKAGE_NAME}_SMP_BACKENDS" "STDThread;Sequential")
133 
134 unset("${CMAKE_FIND_PACKAGE_NAME}_FOUND")
135 set("${CMAKE_FIND_PACKAGE_NAME}_HAS_VTKm" "ON")
136 if (${CMAKE_FIND_PACKAGE_NAME}_HAS_VTKm)
137  find_package(VTKm
138  PATHS "${CMAKE_CURRENT_LIST_DIR}/vtkm"
139  NO_DEFAULT_PATH)
140  if (NOT VTKm_FOUND)
141  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
142  endif ()
143 
144  # Prior to VTK-m 2.0, the main VTK module was called VTK::vtkm
145  if (TARGET VTK::vtkvtkm)
146  add_library(VTK::vtkm ALIAS VTK::vtkvtkm)
147  endif()
148 endif ()
149 
150 include("${CMAKE_CURRENT_LIST_DIR}/vtkCMakeBackports.cmake")
151 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-targets.cmake")
152 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-properties.cmake")
153 
154 include("${CMAKE_CURRENT_LIST_DIR}/vtk-find-package-helpers.cmake" OPTIONAL)
155 
156 # Ensure that the right OpenGL preference is in place when finding the OpenGL
157 # libraries.
158 if (1) # vtk_opengl_preference_set
159  if (DEFINED OpenGL_GL_PREFERENCE)
160  set("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save" "${OpenGL_GL_PREFERENCE}")
161  endif ()
162  set(OpenGL_GL_PREFERENCE "GLVND")
163 endif ()
164 
165 # Ensure that python is found based on location, not on version
166 # See https://cmake.org/cmake/help/latest/module/FindPython.html
167 if (DEFINED Python3_FIND_STRATEGY)
168  set("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save" "${Python3_FIND_STRATEGY}")
169 endif ()
170 set(Python3_FIND_STRATEGY LOCATION)
171 
172 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-find-packages.cmake")
173 
174 if (1) # vtk_opengl_preference_set
175  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save")
176  set(OpenGL_GL_PREFERENCE "${${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save}")
177  unset("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save")
178  else ()
179  unset(OpenGL_GL_PREFERENCE)
180  endif ()
181 endif ()
182 
183 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save")
184  set(Python3_FIND_STRATEGY "${${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save}")
185  unset("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save")
186 else ()
187  unset(Python3_FIND_STRATEGY)
188 endif ()
189 
190 if (TARGET VTK::opengl)
191  set(VTK_OPENGL_HAS_EGL "OFF")
192  set(VTK_OPENGL_HAS_OSMESA "OFF")
193  set(VTK_USE_X "ON")
194 endif ()
195 
196 if (TARGET VTK::RenderingVR)
197  set("${CMAKE_FIND_PACKAGE_NAME}_ENABLE_VR_COLLABORATION" "")
198 endif ()
199 
200 if (5) # VTK_QT_VERSION
201  set("${CMAKE_FIND_PACKAGE_NAME}_QT_VERSION" "5")
202 endif ()
203 
204 if (0) # vtk_has_qml
205  set("${CMAKE_FIND_PACKAGE_NAME}_QML_DIR" "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}/")
206 endif ()
207 
208 include("${CMAKE_CURRENT_LIST_DIR}/vtkModule.cmake")
209 include("${CMAKE_CURRENT_LIST_DIR}/vtkEncodeString.cmake")
210 include("${CMAKE_CURRENT_LIST_DIR}/vtkHashSource.cmake")
211 include("${CMAKE_CURRENT_LIST_DIR}/vtkObjectFactory.cmake")
212 
213 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleJson.cmake")
214 
215 set("${CMAKE_FIND_PACKAGE_NAME}_PYTHON_VERSION" "3")
216 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON" "ON")
217 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON)
218  include("${CMAKE_CURRENT_LIST_DIR}/VTKPython-targets.cmake")
219  include("${CMAKE_CURRENT_LIST_DIR}/vtkmodules-vtk-python-module-properties.cmake")
220  include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapPython.cmake")
221  set("${CMAKE_FIND_PACKAGE_NAME}_PYTHONPATH" "lib64/python3.10/site-packages")
222 endif ()
223 
224 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA" "")
225 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA)
226  include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapJava.cmake")
227 
228  if () # VTK_JAVA_JOGL_COMPONENT
229  set(_vtk_find_jogl_args)
230  if (${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
231  list(APPEND _vtk_find_jogl_args QUIET)
232  endif ()
233  find_package(JOGL ${_vtk_find_jogl_args})
234  unset(_vtk_find_jogl_args)
235 
236  if (JOGL_FOUND)
237  include("${CMAKE_CURRENT_LIST_DIR}/VTKJava-targets.cmake")
238  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 1)
239  else ()
240  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 0)
241  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_NOT_FOUND_MESSAGE"
242  "JOGL was not found")
243  endif ()
244  endif ()
245 endif ()
246 
247 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_SERIALIZATION" "OFF")
248 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleSerialization.cmake")
249 
250 set(_vtk_search_components
251  ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
252 if (NOT _vtk_search_components)
253  set(_vtk_search_components
254  ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS})
255 endif ()
256 list(REMOVE_ITEM _vtk_search_components
257  # These components need to always be requested explicitly since they are
258  # not modules.
259  WrapHierarchy;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava)
260 set(_vtk_components_to_check)
261 foreach (_vtk_component IN LISTS _vtk_search_components)
262  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
263  # It was already not-found (likely due to `find-package` failures).
264  elseif (TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
265  list(APPEND _vtk_components_to_check
266  "${_vtk_component}")
267  else ()
268  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
269  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
270  "The ${_vtk_component} component is not available.")
271  endif ()
272 endforeach ()
273 unset(_vtk_component)
274 unset(_vtk_search_components)
275 
276 while (_vtk_components_to_check)
277  list(GET _vtk_components_to_check 0 _vtk_component)
278  list(REMOVE_AT _vtk_components_to_check 0)
279  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
280  # We've already made a determiniation.
281  continue ()
282  endif ()
283 
284  get_property(_vtk_public_dependencies
285  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
286  PROPERTY "INTERFACE_vtk_module_depends")
287  get_property(_vtk_private_dependencies
288  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
289  PROPERTY "INTERFACE_vtk_module_private_depends")
290  get_property(_vtk_optional_dependencies
291  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
292  PROPERTY "INTERFACE_vtk_module_optional_depends")
293  set(_vtk_dependencies
294  ${_vtk_public_dependencies}
295  ${_vtk_private_dependencies})
296  foreach (_vtk_optional_dependency IN LISTS _vtk_optional_dependencies)
297  if (TARGET "${_vtk_optional_dependency}")
298  list(APPEND _vtk_dependencies
299  "${_vtk_optional_dependency}")
300  endif ()
301  endforeach ()
302  unset(_vtk_public_dependencies)
303  unset(_vtk_private_dependencies)
304  unset(_vtk_optional_dependency)
305  unset(_vtk_optional_dependencies)
306 
307  string(REPLACE "${CMAKE_FIND_PACKAGE_NAME}::" "" _vtk_dependencies "${_vtk_dependencies}")
308  set(_vtk_all_dependencies_checked TRUE)
309  foreach (_vtk_dependency IN LISTS _vtk_dependencies)
310  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND")
311  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND)
312  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
313  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
314  "Failed to find the ${_vtk_dependency} component.")
315  endif ()
316  else ()
317  # Check its dependencies.
318  list(APPEND _vtk_components_to_check
319  "${_vtk_dependency}")
320  set(_vtk_all_found FALSE)
321  endif ()
322  endforeach ()
323  if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
324  if (_vtk_all_dependencies_checked)
325  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 1)
326  else ()
327  list(APPEND _vtk_components_to_check
328  "${_vtk_component}")
329  endif ()
330  endif ()
331  unset(_vtk_all_dependencies_checked)
332  unset(_vtk_dependency)
333  unset(_vtk_dependencies)
334 endwhile ()
335 unset(_vtk_component)
336 unset(_vtk_components_to_check)
337 
338 set(_vtk_missing_components)
339 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS")
340  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND AND ${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component})
341  list(APPEND _vtk_missing_components
342  "${_vtk_component}")
343  endif ()
344 endforeach ()
345 
346 if (_vtk_missing_components)
347  list(REMOVE_DUPLICATES _vtk_missing_components)
348  list(SORT _vtk_missing_components)
349  string(REPLACE ";" ", " _vtk_missing_components "${_vtk_missing_components}")
350  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
351  set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE"
352  "Could not find the ${CMAKE_FIND_PACKAGE_NAME} package with the following required components: ${_vtk_missing_components}.")
353 endif ()
354 unset(_vtk_missing_components)
355 
356 set("${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES")
357 if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_FOUND")
358  # If nothing went wrong, we've successfully found the package.
359  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 1)
360  set(_vtk_found_components
361  ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
362  if (NOT _vtk_found_components)
363  set(_vtk_found_components
364  ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS})
365  endif ()
366  list(REMOVE_ITEM _vtk_found_components
367  # These components need to always be requested explicitly since they are
368  # not modules.
369  WrapHierarchy;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava)
370  # Build the `_LIBRARIES` variable.
371  foreach (_vtk_component IN LISTS _vtk_found_components)
372  if (TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
373  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES"
374  "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
375  endif ()
376  endforeach ()
377  unset(_vtk_component)
378  unset(_vtk_found_components)
379 endif ()
380 
381 set(CMAKE_PREFIX_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save}")
382 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save")
383 
384 set(CMAKE_MODULE_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save}")
385 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save")
386 
387 foreach (_vtk_temp_variable IN LISTS _vtk_temp_variables)
388  unset("${_vtk_temp_variable}")
389 endforeach ()
390 unset(_vtk_temp_variable)
391 unset(_vtk_temp_variables)
392 
393 # Compatibility with old code.
394 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION)
395  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-deprecated.cmake")
396 elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90")
397  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-compat.cmake")
398 else ()
399  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-error.cmake")
400 endif ()
401 
402 cmake_policy(POP)
component
boost::graph_traits< vtkGraph *>::vertex_descriptor target(boost::graph_traits< vtkGraph *>::edge_descriptor e, vtkGraph *)
#define VTK_BUILD_VERSION
version
name
#define VERSION
Definition: jconfigint.h:17
enabled
documentation
#define VTK_MINOR_VERSION
#define VTK_MAJOR_VERSION
#define VTK_VERSION