1 # This is an implementation detail for using VTK 4.0 with the
2 # FindVTK.cmake module. Do not include directly.
4 # Hard-code the version number since it isn't provided by VTK 4.0.
5 SET(VTK_MAJOR_VERSION 4)
6 SET(VTK_MINOR_VERSION 0)
7 SET(VTK_BUILD_VERSION 2)
9 # Provide a new UseVTK file that doesn't do a full LOAD_CACHE.
10 SET(VTK_USE_FILE ${CMAKE_ROOT}/Modules/UseVTK40.cmake)
12 # Provide a build settings file.
13 SET(VTK_BUILD_SETTINGS_FILE ${CMAKE_ROOT}/Modules/UseVTKBuildSettings40.cmake)
15 # There are no CMake extensions for VTK 4.0.
16 SET(VTK_CMAKE_EXTENSIONS_DIR "")
18 # grep "VTK40_" UseVTKConfig40.cmake |sed 's/.*VTK40_\([A-Za-z0-9_]*\).*/ \1/'
19 LOAD_CACHE(${VTK_DIR} READ_WITH_PREFIX VTK40_
23 CMAKE_CACHE_MAJOR_VERSION
24 CMAKE_CACHE_MINOR_VERSION
28 CMAKE_CXX_FLAGS_MINSIZEREL
29 CMAKE_CXX_FLAGS_RELEASE
30 CMAKE_CXX_FLAGS_RELWITHDEBINFO
34 CMAKE_C_FLAGS_MINSIZEREL
36 CMAKE_C_FLAGS_RELWITHDEBINFO
38 CMAKE_Xutil_INCLUDE_PATH
39 EXECUTABLE_OUTPUT_PATH
50 VLI_INCLUDE_PATH_FOR_VG500
51 VLI_INCLUDE_PATH_FOR_VP1000
63 VTK_USE_MATROX_IMAGING
68 VTK_USE_VIDEO_FOR_WINDOWS
77 vtkCommonJava_LIB_DEPENDS
78 vtkCommonPython_LIB_DEPENDS
79 vtkCommonTCL_LIB_DEPENDS
81 vtkFilteringJava_LIB_DEPENDS
82 vtkFilteringPython_LIB_DEPENDS
83 vtkFilteringTCL_LIB_DEPENDS
84 vtkFiltering_LIB_DEPENDS
85 vtkGraphicsJava_LIB_DEPENDS
86 vtkGraphicsPython_LIB_DEPENDS
87 vtkGraphicsTCL_LIB_DEPENDS
88 vtkGraphics_LIB_DEPENDS
89 vtkHybridJava_LIB_DEPENDS
90 vtkHybridPython_LIB_DEPENDS
91 vtkHybridTCL_LIB_DEPENDS
94 vtkIOPython_LIB_DEPENDS
97 vtkImagingJava_LIB_DEPENDS
98 vtkImagingPython_LIB_DEPENDS
99 vtkImagingTCL_LIB_DEPENDS
100 vtkImaging_LIB_DEPENDS
101 vtkParallelJava_LIB_DEPENDS
102 vtkParallelPython_LIB_DEPENDS
103 vtkParallelTCL_LIB_DEPENDS
104 vtkParallel_LIB_DEPENDS
105 vtkPatentedJava_LIB_DEPENDS
106 vtkPatentedPython_LIB_DEPENDS
107 vtkPatentedTCL_LIB_DEPENDS
108 vtkPatented_LIB_DEPENDS
109 vtkRenderingJava_LIB_DEPENDS
110 vtkRenderingPythonTkWidgets_LIB_DEPENDS
111 vtkRenderingPython_LIB_DEPENDS
112 vtkRenderingTCL_LIB_DEPENDS
113 vtkRendering_LIB_DEPENDS
119 # Copy needed settings from the VTK 4.0 cache.
120 SET(VTK_BUILD_SHARED ${VTK40_BUILD_SHARED_LIBS})
121 SET(VTK_DEBUG_LEAKS ${VTK40_VTK_DEBUG_LEAKS})
122 SET(VTK_HAVE_VG500 ${VTK40_VTK_HAVE_VG500})
123 SET(VTK_HAVE_VP1000 ${VTK40_VTK_HAVE_VP1000})
124 SET(VTK_USE_MANGLED_MESA ${VTK40_VTK_MANGLE_MESA})
125 SET(VTK_MPIRUN_EXE ${VTK40_MPIRUN})
126 SET(VTK_MPI_POSTFLAGS ${VTK40_MPI_POSTFLAGS})
127 SET(VTK_MPI_PREFLAGS ${VTK40_MPI_PREFLAGS})
128 SET(VTK_OPENGL_HAS_OSMESA ${VTK40_VTK_OPENGL_HAS_OSMESA})
129 SET(VTK_USE_64BIT_IDS ${VTK40_VTK_USE_64BIT_IDS})
130 SET(VTK_USE_ANSI_STDLIB ${VTK40_VTK_USE_ANSI_STDLIB})
131 SET(VTK_USE_HYBRID ${VTK40_VTK_USE_HYBRID})
132 SET(VTK_USE_MATROX_IMAGING ${VTK40_VTK_USE_MATROX_IMAGING})
133 SET(VTK_USE_MPI ${VTK40_VTK_USE_MPI})
134 SET(VTK_USE_PARALLEL ${VTK40_VTK_USE_PARALLEL})
135 SET(VTK_USE_PATENTED ${VTK40_VTK_USE_PATENTED})
136 SET(VTK_USE_RENDERING ${VTK40_VTK_USE_RENDERING})
137 SET(VTK_USE_VIDEO_FOR_WINDOWS ${VTK40_VTK_USE_VIDEO_FOR_WINDOWS})
138 SET(VTK_USE_VOLUMEPRO ${VTK40_VTK_USE_VOLUMEPRO})
139 SET(VTK_USE_X ${VTK40_VTK_USE_X})
140 SET(VTK_WRAP_JAVA ${VTK40_VTK_WRAP_JAVA})
141 SET(VTK_WRAP_PYTHON ${VTK40_VTK_WRAP_PYTHON})
142 SET(VTK_WRAP_TCL ${VTK40_VTK_WRAP_TCL})
144 # Create the list of available kits.
145 SET(VTK_KITS COMMON FILTERING GRAPHICS IMAGING IO)
146 IF(VTK_USE_RENDERING)
147 SET(VTK_KITS ${VTK_KITS} RENDERING)
148 ENDIF(VTK_USE_RENDERING)
150 SET(VTK_KITS ${VTK_KITS} HYBRID)
151 ENDIF(VTK_USE_HYBRID)
153 SET(VTK_KITS ${VTK_KITS} PARALLEL)
154 ENDIF(VTK_USE_PARALLEL)
156 SET(VTK_KITS ${VTK_KITS} PATENTED)
157 ENDIF(VTK_USE_PATENTED)
159 # Create the list of available languages.
160 SET(VTK_LANGUAGES "")
162 SET(VTK_LANGUAGES ${VTK_LANGUAGES} TCL)
165 SET(VTK_LANGUAGES ${VTK_LANGUAGES} PYTHON)
166 ENDIF(VTK_WRAP_PYTHON)
168 SET(VTK_LANGUAGES ${VTK_LANGUAGES} JAVA)
171 # Include directories for other projects installed on the system and
173 SET(VTK_INCLUDE_DIRS_SYS "")
174 IF(VTK_USE_RENDERING)
175 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
176 ${VTK40_OPENGL_INCLUDE_PATH} ${VTK40_OPENGL_INCLUDE_DIR})
178 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
179 ${VTK40_CMAKE_Xlib_INCLUDE_PATH} ${VTK40_CMAKE_Xutil_INCLUDE_PATH})
181 ENDIF(VTK_USE_RENDERING)
183 IF(VTK_OPENGL_HAS_OSMESA)
184 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
185 ${VTK40_OSMESA_INCLUDE_PATH})
186 ENDIF(VTK_OPENGL_HAS_OSMESA)
189 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_MPI_INCLUDE_PATH})
193 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_TCL_INCLUDE_PATH})
197 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS} ${VTK40_PYTHON_INCLUDE_PATH})
198 ENDIF(VTK_WRAP_PYTHON)
201 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
202 ${VTK40_JAVA_INCLUDE_PATH} ${VTK40_JAVA_INCLUDE_PATH2})
206 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
207 ${VTK40_VLI_INCLUDE_PATH_FOR_VG500})
208 ENDIF(VTK_HAVE_VG500)
211 SET(VTK_INCLUDE_DIRS_SYS ${VTK_INCLUDE_DIRS_SYS}
212 ${VTK40_VLI_INCLUDE_PATH_FOR_VP1000})
213 ENDIF(VTK_HAVE_VP1000)
215 # See if this is a build tree or install tree.
216 IF(EXISTS ${VTK_DIR}/Common)
217 # This is a VTK 4.0 build tree.
219 SET(VTK_LIBRARY_DIRS ${VTK40_LIBRARY_OUTPUT_PATH})
221 # Determine the include directories needed.
222 SET(VTK_INCLUDE_DIRS ${VTK40_VTK_BINARY_DIR})
224 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Parallel)
225 ENDIF(VTK_USE_PARALLEL)
227 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Hybrid)
228 ENDIF(VTK_USE_HYBRID)
230 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Patented)
231 ENDIF(VTK_USE_PATENTED)
232 IF(VTK_USE_RENDERING)
233 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK40_VTK_SOURCE_DIR}/Rendering)
234 ENDIF(VTK_USE_RENDERING)
236 # These directories are always needed.
237 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS}
238 ${VTK40_VTK_SOURCE_DIR}/IO
239 ${VTK40_VTK_SOURCE_DIR}/Imaging
240 ${VTK40_VTK_SOURCE_DIR}/Graphics
241 ${VTK40_VTK_SOURCE_DIR}/Filtering
242 ${VTK40_VTK_SOURCE_DIR}/Common)
244 # Give access to a few utilities.
245 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS}
246 ${VTK40_VTK_BINARY_DIR}/Utilities/png
247 ${VTK40_VTK_SOURCE_DIR}/Utilities/png
248 ${VTK40_VTK_BINARY_DIR}/Utilities/zlib
249 ${VTK40_VTK_SOURCE_DIR}/Utilities/zlib)
251 # Executable locations.
253 SET(VTK_TCL_EXE ${VTK40_EXECUTABLE_OUTPUT_PATH}/vtk)
254 SET(VTK_WRAP_TCL_EXE ${VTK40_VTK_WRAP_TCL_EXE})
255 SET(VTK_TCL_HOME ${VTK40_VTK_SOURCE_DIR}/Wrapping/Tcl)
258 SET(VTK_WRAP_PYTHON_EXE ${VTK40_VTK_WRAP_PYTHON_EXE})
259 ENDIF(VTK_WRAP_PYTHON)
261 SET(VTK_PARSE_JAVA_EXE ${VTK40_VTK_PARSE_JAVA_EXE})
262 SET(VTK_WRAP_JAVA_EXE ${VTK40_VTK_WRAP_JAVA_EXE})
265 ELSE(EXISTS ${VTK_DIR}/Common)
266 # This is a VTK 4.0 install tree.
268 SET(VTK_INCLUDE_DIRS ${VTK_DIR})
269 SET(VTK_LIBRARY_DIRS ${VTK40_CMAKE_INSTALL_PREFIX}/lib/vtk)
271 # Executable locations.
273 SET(VTK_TCL_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtk)
274 SET(VTK_WRAP_TCL_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapTcl)
275 SET(VTK_TCL_HOME ${VTK40_CMAKE_INSTALL_PREFIX}/lib/vtk/tcl)
278 SET(VTK_WRAP_PYTHON_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapPython)
279 ENDIF(VTK_WRAP_PYTHON)
281 SET(VTK_PARSE_JAVA_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkParseJava)
282 SET(VTK_WRAP_JAVA_EXE ${VTK40_CMAKE_INSTALL_PREFIX}/bin/vtkWrapJava)
284 ENDIF(EXISTS ${VTK_DIR}/Common)
286 # Add the system include directories last.
287 SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS_SYS})
289 # Find the required C and C++ compiler flags.
290 IF(CMAKE_COMPILER_IS_GNUCXX)
292 # The platform is gcc on cygwin.
293 SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -mwin32")
294 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} -mwin32")
296 ELSE(CMAKE_COMPILER_IS_GNUCXX)
297 IF(CMAKE_ANSI_CFLAGS)
298 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
299 ENDIF(CMAKE_ANSI_CFLAGS)
300 IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
301 SET(VTK_REQUIRED_CXX_FLAGS
302 "${VTK_REQUIRED_CXX_FLAGS} -timplicit_local -no_implicit_include")
303 ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
304 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
308 SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} ${CMAKE_X_CFLAGS}")
309 SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} ${CMAKE_X_CFLAGS}")
310 ENDIF(CMAKE_X_CFLAGS)
313 # Copy library dependencies.
314 SET(vtkCommonJava_LIB_DEPENDS "${VTK40_vtkCommonJava_LIB_DEPENDS}")
315 SET(vtkCommonPython_LIB_DEPENDS "${VTK40_vtkCommonPython_LIB_DEPENDS}")
316 SET(vtkCommonTCL_LIB_DEPENDS "${VTK40_vtkCommonTCL_LIB_DEPENDS}")
317 SET(vtkCommon_LIB_DEPENDS "${VTK40_vtkCommon_LIB_DEPENDS}")
318 SET(vtkFilteringJava_LIB_DEPENDS "${VTK40_vtkFilteringJava_LIB_DEPENDS}")
319 SET(vtkFilteringPython_LIB_DEPENDS "${VTK40_vtkFilteringPython_LIB_DEPENDS}")
320 SET(vtkFilteringTCL_LIB_DEPENDS "${VTK40_vtkFilteringTCL_LIB_DEPENDS}")
321 SET(vtkFiltering_LIB_DEPENDS "${VTK40_vtkFiltering_LIB_DEPENDS}")
322 SET(vtkGraphicsJava_LIB_DEPENDS "${VTK40_vtkGraphicsJava_LIB_DEPENDS}")
323 SET(vtkGraphicsPython_LIB_DEPENDS "${VTK40_vtkGraphicsPython_LIB_DEPENDS}")
324 SET(vtkGraphicsTCL_LIB_DEPENDS "${VTK40_vtkGraphicsTCL_LIB_DEPENDS}")
325 SET(vtkGraphics_LIB_DEPENDS "${VTK40_vtkGraphics_LIB_DEPENDS}")
326 SET(vtkHybridJava_LIB_DEPENDS "${VTK40_vtkHybridJava_LIB_DEPENDS}")
327 SET(vtkHybridPython_LIB_DEPENDS "${VTK40_vtkHybridPython_LIB_DEPENDS}")
328 SET(vtkHybridTCL_LIB_DEPENDS "${VTK40_vtkHybridTCL_LIB_DEPENDS}")
329 SET(vtkHybrid_LIB_DEPENDS "${VTK40_vtkHybrid_LIB_DEPENDS}")
330 SET(vtkIOJava_LIB_DEPENDS "${VTK40_vtkIOJava_LIB_DEPENDS}")
331 SET(vtkIOPython_LIB_DEPENDS "${VTK40_vtkIOPython_LIB_DEPENDS}")
332 SET(vtkIOTCL_LIB_DEPENDS "${VTK40_vtkIOTCL_LIB_DEPENDS}")
333 SET(vtkIO_LIB_DEPENDS "${VTK40_vtkIO_LIB_DEPENDS}")
334 SET(vtkImagingJava_LIB_DEPENDS "${VTK40_vtkImagingJava_LIB_DEPENDS}")
335 SET(vtkImagingPython_LIB_DEPENDS "${VTK40_vtkImagingPython_LIB_DEPENDS}")
336 SET(vtkImagingTCL_LIB_DEPENDS "${VTK40_vtkImagingTCL_LIB_DEPENDS}")
337 SET(vtkImaging_LIB_DEPENDS "${VTK40_vtkImaging_LIB_DEPENDS}")
338 SET(vtkParallelJava_LIB_DEPENDS "${VTK40_vtkParallelJava_LIB_DEPENDS}")
339 SET(vtkParallelPython_LIB_DEPENDS "${VTK40_vtkParallelPython_LIB_DEPENDS}")
340 SET(vtkParallelTCL_LIB_DEPENDS "${VTK40_vtkParallelTCL_LIB_DEPENDS}")
341 SET(vtkParallel_LIB_DEPENDS "${VTK40_vtkParallel_LIB_DEPENDS}")
342 SET(vtkPatentedJava_LIB_DEPENDS "${VTK40_vtkPatentedJava_LIB_DEPENDS}")
343 SET(vtkPatentedPython_LIB_DEPENDS "${VTK40_vtkPatentedPython_LIB_DEPENDS}")
344 SET(vtkPatentedTCL_LIB_DEPENDS "${VTK40_vtkPatentedTCL_LIB_DEPENDS}")
345 SET(vtkPatented_LIB_DEPENDS "${VTK40_vtkPatented_LIB_DEPENDS}")
346 SET(vtkRenderingJava_LIB_DEPENDS "${VTK40_vtkRenderingJava_LIB_DEPENDS}")
347 SET(vtkRenderingPythonTkWidgets_LIB_DEPENDS "${VTK40_vtkRenderingPythonTkWidgets_LIB_DEPENDS}")
348 SET(vtkRenderingPython_LIB_DEPENDS "${VTK40_vtkRenderingPython_LIB_DEPENDS}")
349 SET(vtkRenderingTCL_LIB_DEPENDS "${VTK40_vtkRenderingTCL_LIB_DEPENDS}")
350 SET(vtkRendering_LIB_DEPENDS "${VTK40_vtkRendering_LIB_DEPENDS}")
351 SET(vtkjpeg_LIB_DEPENDS "${VTK40_vtkjpeg_LIB_DEPENDS}")
352 SET(vtkpng_LIB_DEPENDS "${VTK40_vtkpng_LIB_DEPENDS}")
353 SET(vtkzlib_LIB_DEPENDS "${VTK40_vtkzlib_LIB_DEPENDS}")
355 # List of VTK configuration variables set above.
356 # grep "^[ ]*SET(VTK" UseVTKConfig40.cmake |sed 's/[ ]*SET(\([^ ]*\) .*/ \1/'
373 VTK_OPENGL_HAS_OSMESA
380 VTK_USE_MATROX_IMAGING
385 VTK_USE_VIDEO_FOR_WINDOWS