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_PYTHONPATH`: Where VTK's Python modules live inside the install
31  prefix. Unset if Python is not available.
32  * `VTK_LIBRARIES`: The list of modules specified by `COMPONENTS` and
33  `OPTIONAL_COMPONENTS`. However, if no components are specified, all
34  available components are added to this variable. This may be used in
35  `MODULES` arguments in the API (e.g., `vtk_module_autoinit`). All modules
36  are also targets and may be linked to using `target_link_libraries`.
37  * `VTK_AUTOINIT_INCLUDE`: The header to include for access to VTK's autoinit
38  support.
39  * `VTK_QT_VERSION`: The major version of Qt used by VTK if Qt support enabled.
40  * `VTK_QML_DIR`: Where VTK's QML plugins live if QML support is enabled.
41  * `VTK_ENABLE_VR_COLLABORATION`: Is VR collaboration enabled when VR is enabled.
42  * `VTK_SMP_BACKENDS`: The list of available SMP backends.
43 
44 For more information about the Python in use by VTK, (note that the `Python`
45 component must be found to guarantee that this happens), see the
46 [FindPython3][] documentation for what is available. Of particular use are
47 likely to be:
48 
49  - the `Python3_VERSION` variable; and
50  - the `Python3::Python` target.
51 
52 [FindPython3]: https://cmake.org/cmake/help/v3.13/module/FindPython3.html
53 [VTK module API]: TODO: Link to hosted documentation.
54 #]==]
55 
56 if (CMAKE_VERSION VERSION_LESS "3.12")
57  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
58  set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE"
59  "VTK requires CMake 3.12 in order to reliably be used.")
60  return ()
61 endif ()
62 
63 cmake_policy(PUSH)
64 cmake_policy(VERSION 3.12)
65 
66 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;libproj;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;libharu;IOGeometry;RenderingSceneGraph;jsoncpp;IOAMR;hdf5;GeovisCore;sqlite;GUISupportQt;InteractionWidgets;RenderingVolume;RenderingAnnotation;InteractionStyle;ImagingHybrid;FiltersTensor;FiltersTemporal;FiltersPython;FiltersProgrammable;FiltersPoints;FiltersParallelVerdict;FiltersParallelStatistics;FiltersParallelGeometry;FiltersParallelFlowPaths;FiltersParallelDIY2;ParallelDIY;FiltersImaging;ImagingGeneral;FiltersGeometryPreview;FiltersGeneric;FiltersFlowPaths;eigen;FiltersCellGrid;FiltersAMR;FiltersParallelMPI;FiltersParallel;FiltersTexture;FiltersModeling;ParallelMPI;mpi;DomainsChemistryOpenGL2;RenderingOpenGL2;RenderingHyperTreeGrid;glew;opengl;FiltersHybrid;DomainsChemistry;WrappingPythonCore;Python;ChartsCore;FiltersExtraction;diy2;IOXML;expat;ParallelCore;IOLegacy;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;CommonExecutionModel;vtkvtkm;CommonDataModel;pugixml;CommonSystem;CommonMisc;exprtk;CommonTransforms;CommonMath;kissfft;CommonCore;token;doubleconversion;nlohmannjson;vtksys;WrapHierarchy;WrapPython;WrapPythonInit;ParseJava;WrapJava")
67 
68 set(_vtk_temp_variables)
69 set(_vtk_real_components)
70 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS")
71  # Handle component requests that are not VTK.
72  if (NOT _vtk_component IN_LIST "${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS")
73  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
74  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
75  "The ${_vtk_component} component is not recognized.")
76  endif ()
77  if (_vtk_component MATCHES "^vtk" AND
78  NOT _vtk_component STREQUAL "vtksys" AND
79  NOT _vtk_component STREQUAL "vtkjava")
80  string(SUBSTRING "${_vtk_component}" 3 -1 _vtk_actual_component)
81  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION)
82  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
83  message(DEPRECATION
84  "The new name for the '${_vtk_component}' component is "
85  "'${_vtk_actual_component}'")
86  endif ()
87  elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90")
88  # Ignore for compatibility.
89  else ()
90  message(FATAL_ERROR
91  "The new name for the '${_vtk_component}' component is "
92  "'${_vtk_actual_component}'. By requesting at least version 8.90, the "
93  "new component names are now required.")
94  endif ()
95  list(APPEND _vtk_real_components
96  "${_vtk_actual_component}")
97  list(APPEND _vtk_temp_variables
98  "${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}")
99  set("${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}"
100  "${${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component}}")
101  unset(_vtk_actual_component)
102  else ()
103  list(APPEND _vtk_real_components
104  "${_vtk_component}")
105  endif ()
106 endforeach ()
107 unset(_vtk_component)
108 set("${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS"
109  ${_vtk_real_components})
110 unset(_vtk_real_components)
111 
112 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save" "${CMAKE_MODULE_PATH}")
113 list(INSERT CMAKE_MODULE_PATH 0
114  "${CMAKE_CURRENT_LIST_DIR}")
115 
116 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save" "${CMAKE_PREFIX_PATH}")
117 include("${CMAKE_CURRENT_LIST_DIR}/vtk-prefix.cmake")
118 set("${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH"
119  "${_vtk_module_import_prefix}")
120 unset(_vtk_module_import_prefix)
121 list(INSERT CMAKE_PREFIX_PATH 0
122  "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}")
123 
124 set("${CMAKE_FIND_PACKAGE_NAME}_VERSION" "9.3.20240320")
125 set("${CMAKE_FIND_PACKAGE_NAME}_MAJOR_VERSION" "9")
126 set("${CMAKE_FIND_PACKAGE_NAME}_MINOR_VERSION" "3")
127 set("${CMAKE_FIND_PACKAGE_NAME}_BUILD_VERSION" "20240320")
128 set("${CMAKE_FIND_PACKAGE_NAME}_LEGACY_REMOVE" "OFF")
129 set("${CMAKE_FIND_PACKAGE_NAME}_AUTOINIT_INCLUDE" "\"vtkAutoInit.h\"")
130 set("${CMAKE_FIND_PACKAGE_NAME}_SMP_BACKENDS" "STDThread;Sequential")
131 
132 unset("${CMAKE_FIND_PACKAGE_NAME}_FOUND")
133 set("${CMAKE_FIND_PACKAGE_NAME}_HAS_VTKm" "ON")
134 if (${CMAKE_FIND_PACKAGE_NAME}_HAS_VTKm)
135  find_package(VTKm
136  PATHS "${CMAKE_CURRENT_LIST_DIR}/vtkm"
137  NO_DEFAULT_PATH)
138  if (NOT VTKm_FOUND)
139  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
140  endif ()
141 
142  # Prior to VTK-m 2.0, the main VTK module was called VTK::vtkm
143  if (TARGET VTK::vtkvtkm)
144  add_library(VTK::vtkm ALIAS VTK::vtkvtkm)
145  endif()
146 endif ()
147 
148 include("${CMAKE_CURRENT_LIST_DIR}/vtkCMakeBackports.cmake")
149 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-targets.cmake")
150 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-properties.cmake")
151 
152 include("${CMAKE_CURRENT_LIST_DIR}/vtk-find-package-helpers.cmake" OPTIONAL)
153 
154 # Ensure that the right OpenGL preference is in place when finding the OpenGL
155 # libraries.
156 if (1) # vtk_opengl_preference_set
157  if (DEFINED OpenGL_GL_PREFERENCE)
158  set("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save" "${OpenGL_GL_PREFERENCE}")
159  endif ()
160  set(OpenGL_GL_PREFERENCE "GLVND")
161 endif ()
162 
163 # Ensure that python is found based on location, not on version
164 # See https://cmake.org/cmake/help/latest/module/FindPython.html
165 if (DEFINED Python3_FIND_STRATEGY)
166  set("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save" "${Python3_FIND_STRATEGY}")
167 endif ()
168 set(Python3_FIND_STRATEGY LOCATION)
169 
170 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-find-packages.cmake")
171 
172 if (1) # vtk_opengl_preference_set
173  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save")
174  set(OpenGL_GL_PREFERENCE "${${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save}")
175  unset("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save")
176  else ()
177  unset(OpenGL_GL_PREFERENCE)
178  endif ()
179 endif ()
180 
181 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save")
182  set(Python3_FIND_STRATEGY "${${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save}")
183  unset("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save")
184 else ()
185  unset(Python3_FIND_STRATEGY)
186 endif ()
187 
188 if (TARGET VTK::opengl)
189  set(VTK_OPENGL_HAS_EGL "OFF")
190  set(VTK_OPENGL_HAS_OSMESA "OFF")
191  set(VTK_USE_X "ON")
192 endif ()
193 
194 if (TARGET VTK::RenderingVR)
195  set("${CMAKE_FIND_PACKAGE_NAME}_ENABLE_VR_COLLABORATION" "")
196 endif ()
197 
198 if (5) # VTK_QT_VERSION
199  set("${CMAKE_FIND_PACKAGE_NAME}_QT_VERSION" "5")
200 endif ()
201 
202 if (0) # vtk_has_qml
203  set("${CMAKE_FIND_PACKAGE_NAME}_QML_DIR" "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}/")
204 endif ()
205 
206 include("${CMAKE_CURRENT_LIST_DIR}/vtkModule.cmake")
207 include("${CMAKE_CURRENT_LIST_DIR}/vtkEncodeString.cmake")
208 include("${CMAKE_CURRENT_LIST_DIR}/vtkHashSource.cmake")
209 include("${CMAKE_CURRENT_LIST_DIR}/vtkObjectFactory.cmake")
210 
211 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleJson.cmake")
212 
213 set("${CMAKE_FIND_PACKAGE_NAME}_PYTHON_VERSION" "3")
214 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON" "ON")
215 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON)
216  include("${CMAKE_CURRENT_LIST_DIR}/VTKPython-targets.cmake")
217  include("${CMAKE_CURRENT_LIST_DIR}/vtkmodules-vtk-python-module-properties.cmake")
218  include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapPython.cmake")
219  set("${CMAKE_FIND_PACKAGE_NAME}_PYTHONPATH" "lib64/python3.10/site-packages")
220 endif ()
221 
222 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA" "")
223 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA)
224  include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapJava.cmake")
225 
226  if () # VTK_JAVA_JOGL_COMPONENT
227  set(_vtk_find_jogl_args)
228  if (${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
229  list(APPEND _vtk_find_jogl_args QUIET)
230  endif ()
231  find_package(JOGL ${_vtk_find_jogl_args})
232  unset(_vtk_find_jogl_args)
233 
234  if (JOGL_FOUND)
235  include("${CMAKE_CURRENT_LIST_DIR}/VTKJava-targets.cmake")
236  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 1)
237  else ()
238  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 0)
239  set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_NOT_FOUND_MESSAGE"
240  "JOGL was not found")
241  endif ()
242  endif ()
243 endif ()
244 
245 set(_vtk_search_components
246  ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
247 if (NOT _vtk_search_components)
248  set(_vtk_search_components
249  ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS})
250 endif ()
251 list(REMOVE_ITEM _vtk_search_components
252  # These components need to always be requested explicitly since they are
253  # not modules.
254  WrapHierarchy;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava)
255 set(_vtk_components_to_check)
256 foreach (_vtk_component IN LISTS _vtk_search_components)
257  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
258  # It was already not-found (likely due to `find-package` failures).
259  elseif (TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
260  list(APPEND _vtk_components_to_check
261  "${_vtk_component}")
262  else ()
263  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
264  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
265  "The ${_vtk_component} component is not available.")
266  endif ()
267 endforeach ()
268 unset(_vtk_component)
269 unset(_vtk_search_components)
270 
271 while (_vtk_components_to_check)
272  list(GET _vtk_components_to_check 0 _vtk_component)
273  list(REMOVE_AT _vtk_components_to_check 0)
274  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
275  # We've already made a determiniation.
276  continue ()
277  endif ()
278 
279  get_property(_vtk_public_dependencies
280  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
281  PROPERTY "INTERFACE_vtk_module_depends")
282  get_property(_vtk_private_dependencies
283  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
284  PROPERTY "INTERFACE_vtk_module_private_depends")
285  get_property(_vtk_optional_dependencies
286  TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}"
287  PROPERTY "INTERFACE_vtk_module_optional_depends")
288  set(_vtk_dependencies
289  ${_vtk_public_dependencies}
290  ${_vtk_private_dependencies})
291  foreach (_vtk_optional_dependency IN LISTS _vtk_optional_dependencies)
292  if (TARGET "${_vtk_optional_dependency}")
293  list(APPEND _vtk_dependencies
294  "${_vtk_optional_dependency}")
295  endif ()
296  endforeach ()
297  unset(_vtk_public_dependencies)
298  unset(_vtk_private_dependencies)
299  unset(_vtk_optional_dependency)
300  unset(_vtk_optional_dependencies)
301 
302  string(REPLACE "${CMAKE_FIND_PACKAGE_NAME}::" "" _vtk_dependencies "${_vtk_dependencies}")
303  set(_vtk_all_dependencies_checked TRUE)
304  foreach (_vtk_dependency IN LISTS _vtk_dependencies)
305  if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND")
306  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND)
307  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0)
308  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE"
309  "Failed to find the ${_vtk_dependency} component.")
310  endif ()
311  else ()
312  # Check its dependencies.
313  list(APPEND _vtk_components_to_check
314  "${_vtk_dependency}")
315  set(_vtk_all_found FALSE)
316  endif ()
317  endforeach ()
318  if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND")
319  if (_vtk_all_dependencies_checked)
320  set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 1)
321  else ()
322  list(APPEND _vtk_components_to_check
323  "${_vtk_component}")
324  endif ()
325  endif ()
326  unset(_vtk_all_dependencies_checked)
327  unset(_vtk_dependency)
328  unset(_vtk_dependencies)
329 endwhile ()
330 unset(_vtk_component)
331 unset(_vtk_components_to_check)
332 
333 set(_vtk_missing_components)
334 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS")
335  if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND AND ${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component})
336  list(APPEND _vtk_missing_components
337  "${_vtk_component}")
338  endif ()
339 endforeach ()
340 
341 if (_vtk_missing_components)
342  list(REMOVE_DUPLICATES _vtk_missing_components)
343  list(SORT _vtk_missing_components)
344  string(REPLACE ";" ", " _vtk_missing_components "${_vtk_missing_components}")
345  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
346  set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE"
347  "Could not find the ${CMAKE_FIND_PACKAGE_NAME} package with the following required components: ${_vtk_missing_components}.")
348 endif ()
349 unset(_vtk_missing_components)
350 
351 set("${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES")
352 if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_FOUND")
353  # If nothing went wrong, we've successfully found the package.
354  set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 1)
355  set(_vtk_found_components
356  ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
357  if (NOT _vtk_found_components)
358  set(_vtk_found_components
359  ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS})
360  endif ()
361  list(REMOVE_ITEM _vtk_found_components
362  # These components need to always be requested explicitly since they are
363  # not modules.
364  WrapHierarchy;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava)
365  # Build the `_LIBRARIES` variable.
366  foreach (_vtk_component IN LISTS _vtk_found_components)
367  if (TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
368  list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES"
369  "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
370  endif ()
371  endforeach ()
372  unset(_vtk_component)
373  unset(_vtk_found_components)
374 endif ()
375 
376 set(CMAKE_PREFIX_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save}")
377 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save")
378 
379 set(CMAKE_MODULE_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save}")
380 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save")
381 
382 foreach (_vtk_temp_variable IN LISTS _vtk_temp_variables)
383  unset("${_vtk_temp_variable}")
384 endforeach ()
385 unset(_vtk_temp_variable)
386 unset(_vtk_temp_variables)
387 
388 # Compatibility with old code.
389 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION)
390  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-deprecated.cmake")
391 elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90")
392  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-compat.cmake")
393 else ()
394  set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/vtk-use-file-error.cmake")
395 endif ()
396 
397 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