3 # This is an implementation detail for using VTK 4.0 with the
4 # FindVTK.cmake module. Do not include directly.
6 # Hard-code the version number since it isn't provided by VTK 4.0.
7 SET(VTK_MAJOR_VERSION 4)
8 SET(VTK_MINOR_VERSION 0)
9 SET(VTK_BUILD_VERSION 2)
11 # Provide a new UseVTK file that doesn't do a full LOAD_CACHE.
12 SET(VTK_USE_FILE ${CMAKE_ROOT}/Modules/UseVTK40.cmake)
14 # Provide a build settings file.
15 SET(VTK_BUILD_SETTINGS_FILE ${CMAKE_ROOT}/Modules/UseVTKBuildSettings40.cmake)
17 # There are no CMake extensions for VTK 4.0.
18 SET(VTK_CMAKE_EXTENSIONS_DIR "")
20 # grep "VTK40_" UseVTKConfig40.cmake |sed 's/.*VTK40_\([A-Za-z0-9_]*\).*/ \1/'
21 LOAD_CACHE(${VTK_DIR} READ_WITH_PREFIX VTK40_
25 CMAKE_CACHE_MAJOR_VERSION
26 CMAKE_CACHE_MINOR_VERSION
30 CMAKE_CXX_FLAGS_MINSIZEREL
31 CMAKE_CXX_FLAGS_RELEASE
32 CMAKE_CXX_FLAGS_RELWITHDEBINFO
36 CMAKE_C_FLAGS_MINSIZEREL
38 CMAKE_C_FLAGS_RELWITHDEBINFO
40 CMAKE_Xutil_INCLUDE_PATH
41 EXECUTABLE_OUTPUT_PATH
52 VLI_INCLUDE_PATH_FOR_VG500
53 VLI_INCLUDE_PATH_FOR_VP1000
65 VTK_USE_MATROX_IMAGING
70 VTK_USE_VIDEO_FOR_WINDOWS
79 vtkCommonJava_LIB_DEPENDS
80 vtkCommonPython_LIB_DEPENDS
81 vtkCommonTCL_LIB_DEPENDS
83 vtkFilteringJava_LIB_DEPENDS
84 vtkFilteringPython_LIB_DEPENDS
85 vtkFilteringTCL_LIB_DEPENDS
86 vtkFiltering_LIB_DEPENDS
87 vtkGraphicsJava_LIB_DEPENDS
88 vtkGraphicsPython_LIB_DEPENDS
89 vtkGraphicsTCL_LIB_DEPENDS
90 vtkGraphics_LIB_DEPENDS
91 vtkHybridJava_LIB_DEPENDS
92 vtkHybridPython_LIB_DEPENDS
93 vtkHybridTCL_LIB_DEPENDS
96 vtkIOPython_LIB_DEPENDS
99 vtkImagingJava_LIB_DEPENDS
100 vtkImagingPython_LIB_DEPENDS
101 vtkImagingTCL_LIB_DEPENDS
102 vtkImaging_LIB_DEPENDS
103 vtkParallelJava_LIB_DEPENDS
104 vtkParallelPython_LIB_DEPENDS
105 vtkParallelTCL_LIB_DEPENDS
106 vtkParallel_LIB_DEPENDS
107 vtkPatentedJava_LIB_DEPENDS
108 vtkPatentedPython_LIB_DEPENDS
109 vtkPatentedTCL_LIB_DEPENDS
110 vtkPatented_LIB_DEPENDS
111 vtkRenderingJava_LIB_DEPENDS
112 vtkRenderingPythonTkWidgets_LIB_DEPENDS
113 vtkRenderingPython_LIB_DEPENDS
114 vtkRenderingTCL_LIB_DEPENDS
115 vtkRendering_LIB_DEPENDS
121 # Copy needed settings from the VTK 4.0 cache.
122 SET(VTK_BUILD_SHARED ${VTK40_BUILD_SHARED_LIBS})
123 SET(VTK_DEBUG_LEAKS ${VTK40_VTK_DEBUG_LEAKS})
124 SET(VTK_HAVE_VG500 ${VTK40_VTK_HAVE_VG500})
125 SET(VTK_HAVE_VP1000 ${VTK40_VTK_HAVE_VP1000})
126 SET(VTK_USE_MANGLED_MESA ${VTK40_VTK_MANGLE_MESA})
127 SET(VTK_MPIRUN_EXE ${VTK40_MPIRUN})
128 SET(VTK_MPI_POSTFLAGS ${VTK40_MPI_POSTFLAGS})
129 SET(VTK_MPI_PREFLAGS ${VTK40_MPI_PREFLAGS})
130 SET(VTK_OPENGL_HAS_OSMESA ${VTK40_VTK_OPENGL_HAS_OSMESA})
131 SET(VTK_USE_64BIT_IDS ${VTK40_VTK_USE_64BIT_IDS})
132 SET(VTK_USE_ANSI_STDLIB ${VTK40_VTK_USE_ANSI_STDLIB})
133 SET(VTK_USE_HYBRID ${VTK40_VTK_USE_HYBRID})
134 SET(VTK_USE_MATROX_IMAGING ${VTK40_VTK_USE_MATROX_IMAGING})
135 SET(VTK_USE_MPI ${VTK40_VTK_USE_MPI})
136 SET(VTK_USE_PARALLEL ${VTK40_VTK_USE_PARALLEL})
137 SET(VTK_USE_PATENTED ${VTK40_VTK_USE_PATENTED})
138 SET(VTK_USE_RENDERING ${VTK40_VTK_USE_RENDERING})
139 SET(VTK_USE_VIDEO_FOR_WINDOWS ${VTK40_VTK_USE_VIDEO_FOR_WINDOWS})
140 SET(VTK_USE_VOLUMEPRO ${VTK40_VTK_USE_VOLUMEPRO})
141 SET(VTK_USE_X ${VTK40_VTK_USE_X})
142 SET(VTK_WRAP_JAVA ${VTK40_VTK_WRAP_JAVA})
143 SET(VTK_WRAP_PYTHON ${VTK40_VTK_WRAP_PYTHON})
144 SET(VTK_WRAP_TCL ${VTK40_VTK_WRAP_TCL})
146 # Create the list of available kits.
147 SET(VTK_KITS COMMON FILTERING GRAPHICS IMAGING IO)
148 IF(VTK_USE_RENDERING)
149 SET(VTK_KITS ${VTK_KITS} RENDERING)
150 ENDIF(VTK_USE_RENDERING)
152 SET(VTK_KITS ${VTK_KITS} HYBRID)
153 ENDIF(VTK_USE_HYBRID)
155 SET(VTK_KITS ${VTK_KITS} PARALLEL)
156 ENDIF(VTK_USE_PARALLEL)
158 SET(VTK_KITS ${VTK_KITS} PATENTED)
159 ENDIF(VTK_USE_PATENTED)
161 # Create the list of available languages.
162 SET(VTK_LANGUAGES "")
164 SET(VTK_LANGUAGES ${VTK_LANGUAGES} TCL)
167 SET(VTK_LANGUAGES ${VTK_LANGUAGES} PYTHON)
168 ENDIF(VTK_WRAP_PYTHON)
170 SET(VTK_LANGUAGES ${VTK_LANGUAGES} JAVA)
173 # Include directories for other projects installed on the system and
175 SET(VTK_INCLUDE_DIRS_SYS "")
176 IF(VTK_USE_RENDERING)
177 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
178 ${VTK40_OPENGL_INCLUDE_PATH} ${VTK40_OPENGL_INCLUDE_DIR})
180 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
181 ${VTK40_CMAKE_Xlib_INCLUDE_PATH} ${VTK40_CMAKE_Xutil_INCLUDE_PATH})
183 ENDIF(VTK_USE_RENDERING)
185 IF(VTK_OPENGL_HAS_OSMESA)
186 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
187 ${VTK40_OSMESA_INCLUDE_PATH})
188 ENDIF(VTK_OPENGL_HAS_OSMESA)
191 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_MPI_INCLUDE_PATH})
195 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_TCL_INCLUDE_PATH})
199 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_PYTHON_INCLUDE_PATH})
200 ENDIF(VTK_WRAP_PYTHON)
203 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
204 ${VTK40_JAVA_INCLUDE_PATH} ${VTK40_JAVA_INCLUDE_PATH2})
208 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
209 ${VTK40_VLI_INCLUDE_PATH_FOR_VG500})
210 ENDIF(VTK_HAVE_VG500)
213 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
214 ${VTK40_VLI_INCLUDE_PATH_FOR_VP1000})
215 ENDIF(VTK_HAVE_VP1000)
217 # See if this is a build tree or install tree.
218 IF(EXISTS ${VTK_DIR}/Common)
219 # This is a VTK 4.0 build tree.
221 SET(VTK_LIBRARY_DIRS ${VTK40_LIBRARY_OUTPUT_PATH})
223 # Determine the include directories needed.
224 SET(VTK_INCLUDE_DIRS ${VTK40_VTK_BINARY_DIR})
226 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Parallel)
227 ENDIF(VTK_USE_PARALLEL)
229 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Hybrid)
230 ENDIF(VTK_USE_HYBRID)
232 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Patented)
233 ENDIF(VTK_USE_PATENTED)
234 IF(VTK_USE_RENDERING)
235 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Rendering)
236 ENDIF(VTK_USE_RENDERING)
238 # These directories are always needed.
239 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS}
240 ${VTK40_VTK_SOURCE_DIR}/IO
241 ${VTK40_VTK_SOURCE_DIR}/Imaging
242 ${VTK40_VTK_SOURCE_DIR}/Graphics
243 ${VTK40_VTK_SOURCE_DIR}/Filtering
244 ${VTK40_VTK_SOURCE_DIR}/Common)
246 # Give access to a few utilities.
247 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS}
248 ${VTK40_VTK_BINARY_DIR}/Utilities/png
249 ${VTK40_VTK_SOURCE_DIR}/Utilities/png
250 ${VTK40_VTK_BINARY_DIR}/Utilities/zlib
251 ${VTK40_VTK_SOURCE_DIR}/Utilities/zlib)
253 # Executable locations.
255 SET(VTK_TCL_EXE ${VTK40_EXECUTABLE_OUTPUT_PATH}/vtk)
256 SET(VTK_WRAP_TCL_EXE ${VTK40_VTK_WRAP_TCL_EXE})
257 SET(VTK_TCL_HOME ${VTK40_VTK_SOURCE_DIR}/Wrapping/Tcl)
260 SET(VTK_WRAP_PYTHON_EXE ${VTK40_VTK_WRAP_PYTHON_EXE})
261 ENDIF(VTK_WRAP_PYTHON)
263 SET(VTK_PARSE_JAVA_EXE ${VTK40_VTK_PARSE_JAVA_EXE})
264 SET(VTK_WRAP_JAVA_EXE ${VTK40_VTK_WRAP_JAVA_EXE})
267 ELSE(EXISTS ${VTK_DIR}/Common)
268 # This is a VTK 4.0 install tree.
270 SET(VTK_INCLUDE_DIRS ${VTK_DIR})
271 SET(VTK_LIBRARY_DIRS ${VTK40_CMAKE_INSTALL_PREFIX}/lib/vtk)
273 # Executable locations.
275 SET(VTK_TCL_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtk)
276 SET(VTK_WRAP_TCL_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapTcl)
277 SET(VTK_TCL_HOME ${VTK40_CMAKE_INSTALL_PREFIX}/lib/vtk/tcl)
280 SET(VTK_WRAP_PYTHON_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapPython)
281 ENDIF(VTK_WRAP_PYTHON)
283 SET(VTK_PARSE_JAVA_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkParseJava)
284 SET(VTK_WRAP_JAVA_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapJava)
286 ENDIF(EXISTS ${VTK_DIR}/Common)
288 # Add the system include directories last.
289 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS_SYS})
291 # Find the required C and C++ compiler flags.
292 IF(CMAKE_COMPILER_IS_GNUCXX)
294 # The platform is gcc on cygwin.
295 SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -mwin32")
296 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} -mwin32")
298 ELSE(CMAKE_COMPILER_IS_GNUCXX)
299 IF(CMAKE_ANSI_CFLAGS)
300 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
301 ENDIF(CMAKE_ANSI_CFLAGS)
302 IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
303 SET(VTK_REQUIRED_CXX_FLAGS
304 "${VTK_REQUIRED_CXX_FLAGS} -timplicit_local -no_implicit_include")
305 ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
306 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
310 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} ${CMAKE_X_CFLAGS}")
311 SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} ${CMAKE_X_CFLAGS}")
312 ENDIF(CMAKE_X_CFLAGS)
315 # Copy library dependencies.
316 SET(vtkCommonJava_LIB_DEPENDS "${VTK40_vtkCommonJava_LIB_DEPENDS}")
317 SET(vtkCommonPython_LIB_DEPENDS "${VTK40_vtkCommonPython_LIB_DEPENDS}")
318 SET(vtkCommonTCL_LIB_DEPENDS "${VTK40_vtkCommonTCL_LIB_DEPENDS}")
319 SET(vtkCommon_LIB_DEPENDS "${VTK40_vtkCommon_LIB_DEPENDS}")
320 SET(vtkFilteringJava_LIB_DEPENDS "${VTK40_vtkFilteringJava_LIB_DEPENDS}")
321 SET(vtkFilteringPython_LIB_DEPENDS "${VTK40_vtkFilteringPython_LIB_DEPENDS}")
322 SET(vtkFilteringTCL_LIB_DEPENDS "${VTK40_vtkFilteringTCL_LIB_DEPENDS}")
323 SET(vtkFiltering_LIB_DEPENDS "${VTK40_vtkFiltering_LIB_DEPENDS}")
324 SET(vtkGraphicsJava_LIB_DEPENDS "${VTK40_vtkGraphicsJava_LIB_DEPENDS}")
325 SET(vtkGraphicsPython_LIB_DEPENDS "${VTK40_vtkGraphicsPython_LIB_DEPENDS}")
326 SET(vtkGraphicsTCL_LIB_DEPENDS "${VTK40_vtkGraphicsTCL_LIB_DEPENDS}")
327 SET(vtkGraphics_LIB_DEPENDS "${VTK40_vtkGraphics_LIB_DEPENDS}")
328 SET(vtkHybridJava_LIB_DEPENDS "${VTK40_vtkHybridJava_LIB_DEPENDS}")
329 SET(vtkHybridPython_LIB_DEPENDS "${VTK40_vtkHybridPython_LIB_DEPENDS}")
330 SET(vtkHybridTCL_LIB_DEPENDS "${VTK40_vtkHybridTCL_LIB_DEPENDS}")
331 SET(vtkHybrid_LIB_DEPENDS "${VTK40_vtkHybrid_LIB_DEPENDS}")
332 SET(vtkIOJava_LIB_DEPENDS "${VTK40_vtkIOJava_LIB_DEPENDS}")
333 SET(vtkIOPython_LIB_DEPENDS "${VTK40_vtkIOPython_LIB_DEPENDS}")
334 SET(vtkIOTCL_LIB_DEPENDS "${VTK40_vtkIOTCL_LIB_DEPENDS}")
335 SET(vtkIO_LIB_DEPENDS "${VTK40_vtkIO_LIB_DEPENDS}")
336 SET(vtkImagingJava_LIB_DEPENDS "${VTK40_vtkImagingJava_LIB_DEPENDS}")
337 SET(vtkImagingPython_LIB_DEPENDS "${VTK40_vtkImagingPython_LIB_DEPENDS}")
338 SET(vtkImagingTCL_LIB_DEPENDS "${VTK40_vtkImagingTCL_LIB_DEPENDS}")
339 SET(vtkImaging_LIB_DEPENDS "${VTK40_vtkImaging_LIB_DEPENDS}")
340 SET(vtkParallelJava_LIB_DEPENDS "${VTK40_vtkParallelJava_LIB_DEPENDS}")
341 SET(vtkParallelPython_LIB_DEPENDS "${VTK40_vtkParallelPython_LIB_DEPENDS}")
342 SET(vtkParallelTCL_LIB_DEPENDS "${VTK40_vtkParallelTCL_LIB_DEPENDS}")
343 SET(vtkParallel_LIB_DEPENDS "${VTK40_vtkParallel_LIB_DEPENDS}")
344 SET(vtkPatentedJava_LIB_DEPENDS "${VTK40_vtkPatentedJava_LIB_DEPENDS}")
345 SET(vtkPatentedPython_LIB_DEPENDS "${VTK40_vtkPatentedPython_LIB_DEPENDS}")
346 SET(vtkPatentedTCL_LIB_DEPENDS "${VTK40_vtkPatentedTCL_LIB_DEPENDS}")
347 SET(vtkPatented_LIB_DEPENDS "${VTK40_vtkPatented_LIB_DEPENDS}")
348 SET(vtkRenderingJava_LIB_DEPENDS "${VTK40_vtkRenderingJava_LIB_DEPENDS}")
349 SET(vtkRenderingPythonTkWidgets_LIB_DEPENDS "${VTK40_vtkRenderingPythonTkWidgets_LIB_DEPENDS}")
350 SET(vtkRenderingPython_LIB_DEPENDS "${VTK40_vtkRenderingPython_LIB_DEPENDS}")
351 SET(vtkRenderingTCL_LIB_DEPENDS "${VTK40_vtkRenderingTCL_LIB_DEPENDS}")
352 SET(vtkRendering_LIB_DEPENDS "${VTK40_vtkRendering_LIB_DEPENDS}")
353 SET(vtkjpeg_LIB_DEPENDS "${VTK40_vtkjpeg_LIB_DEPENDS}")
354 SET(vtkpng_LIB_DEPENDS "${VTK40_vtkpng_LIB_DEPENDS}")
355 SET(vtkzlib_LIB_DEPENDS "${VTK40_vtkzlib_LIB_DEPENDS}")
357 # List of VTK configuration variables set above.
358 # grep "^[ ]*SET(VTK" UseVTKConfig40.cmake |sed 's/[ ]*SET(\([^ ]*\) .*/ \1/'
375 VTK_OPENGL_HAS_OSMESA
382 VTK_USE_MATROX_IMAGING
387 VTK_USE_VIDEO_FOR_WINDOWS