564
564
ENDIF(VTK_TYPE_CHAR_IS_SIGNED_COMPILED)
565
565
ENDIF("VTK_TYPE_CHAR_IS_SIGNED" MATCHES "^VTK_TYPE_CHAR_IS_SIGNED$")
567
INCLUDE(Parallel/VTKParallelCMakeTests.cmake)
567
569
# Check for explicit template instantiation support by compiler.
568
570
INCLUDE(${VTK_SOURCE_DIR}/CMake/vtkTestExplicitInstantiation.cmake)
828
830
SET(KWSYS_USE_RegularExpression 1)
829
831
SET(KWSYS_USE_CommandLineArguments 1)
830
832
SET(KWSYS_USE_Base64 1)
833
SET(KWSYS_USE_Glob 1)
831
834
SET(KWSYS_HEADER_ROOT ${VTK_BINARY_DIR}/Utilities)
832
835
SET(KWSYS_PROPERTIES_CXX ${VTK_LIBRARY_PROPERTIES})
833
836
IF(NOT VTK_USE_ANSI_STDLIB)
1286
1289
IF(VTK_USE_RENDERING AND VTK_USE_COCOA)
1287
1290
SET(VTK_RENDERING_NEED_TK_INTERNAL 1)
1288
1291
ENDIF(VTK_USE_RENDERING AND VTK_USE_COCOA)
1289
# Do not need Tk Internal on Unix
1293
SET(VTK_RENDERING_NEED_TK_INTERNAL 0)
1297
1292
ENDIF(VTK_INCLUDE_NEED_TK)
1299
1294
IF (VTK_RENDERING_NEED_TK_INTERNAL AND TK_LIBRARY)
1295
SET (try_file "tkInt.h")
1301
1296
IF (CYGWIN OR WIN32)
1302
1297
SET (try_file "tkWinPort.h")
1303
1298
ENDIF (CYGWIN OR WIN32)
1350
1345
#-----------------------------------------------------------------------------
1351
1346
# Configure the default VTK_DATA_ROOT for the location of VTKData.
1352
FIND_PATH(VTK_DATA_ROOT VTKData.readme
1347
FIND_PATH(VTK_DATA_ROOT VTKData.readme
1353
1348
${VTK_SOURCE_DIR}/../VTKData
1354
1349
${VTK_SOURCE_DIR}/../../VTKData
1355
1350
$ENV{VTK_DATA_ROOT})
1357
1352
#-----------------------------------------------------------------------------
1355
# Portions of the mpeg2 library are patented. VTK does not enable linking to
1356
# this library by default so VTK can remain "patent free". Users who wish to
1357
# link in mpeg2 functionality must build that library separately and then
1358
# turn on VTK_USE_MPEG2_ENCODER when configuring VTK. After turning on
1359
# VTK_USE_MPEG2_ENCODER, you must also set the CMake variables
1360
# vtkMPEG2Encode_INCLUDE_PATH and vtkMPEG2Encode_LIBRARIES.
1362
# To use the patented mpeg2 library, first build it, then set the following
1363
# CMake variables during the VTK configure step:
1364
# VTK_USE_MPEG2_ENCODER = ON
1365
# vtkMPEG2Encode_INCLUDE_PATH = /path/to/vtkmpeg2encode;/path/to/vtkmpeg2encode-bin
1366
# vtkMPEG2Encode_LIBRARIES = /path/to/vtkmpeg2encode-bin/vtkMPEG2Encode.lib
1368
# Or using -D args on the cmake/ccmake command line:
1369
# -DVTK_USE_MPEG2_ENCODER:BOOL=ON
1370
# "-DvtkMPEG2Encode_INCLUDE_PATH:PATH=/path/to/vtkmpeg2encode;/path/to/vtkmpeg2encode-bin"
1371
# "-DvtkMPEG2Encode_LIBRARIES:STRING=/path/to/vtkmpeg2encode-bin/vtkMPEG2Encode.lib"
1373
# You are solely responsible for any legal issues associated with using
1374
# patented code in your software.
1376
OPTION (VTK_USE_MPEG2_ENCODER
1377
"Enable use of the patented mpeg2 library. You are solely responsible for any legal issues associated with using patented code in your software."
1379
IF (VTK_USE_MPEG2_ENCODER)
1380
INCLUDE(${VTK_SOURCE_DIR}/CMake/FindMPEG2.cmake OPTIONAL)
1381
ENDIF (VTK_USE_MPEG2_ENCODER)
1383
#-----------------------------------------------------------------------------
1358
1384
# Configure files with settings for use by the build.
1359
1385
CONFIGURE_FILE(${VTK_SOURCE_DIR}/vtkConfigure.h.in
1360
1386
${VTK_BINARY_DIR}/vtkConfigure.h @ONLY IMMEDIATE)