~ubuntu-branches/ubuntu/hardy/vtk/hardy

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2007-06-30 22:39:48 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070630223948-6tn51upaurwfrcz8
Tags: 5.0.3-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add export SHELL=/bin/bash in debian/rules.
  - Update maintainer in field debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# VTK version number.  An even minor number corresponds to releases.
15
15
SET(VTK_MAJOR_VERSION 5)
16
16
SET(VTK_MINOR_VERSION 0)
17
 
SET(VTK_BUILD_VERSION 2)
 
17
SET(VTK_BUILD_VERSION 3)
18
18
SET(VTK_VERSION
19
19
    "${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${VTK_BUILD_VERSION}")
20
20
 
564
564
  ENDIF(VTK_TYPE_CHAR_IS_SIGNED_COMPILED)
565
565
ENDIF("VTK_TYPE_CHAR_IS_SIGNED" MATCHES "^VTK_TYPE_CHAR_IS_SIGNED$")
566
566
 
 
567
INCLUDE(Parallel/VTKParallelCMakeTests.cmake)
 
568
 
567
569
# Check for explicit template instantiation support by compiler.
568
570
INCLUDE(${VTK_SOURCE_DIR}/CMake/vtkTestExplicitInstantiation.cmake)
569
571
 
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
1290
 
  IF(UNIX)
1291
 
    IF (NOT CYGWIN)
1292
 
      IF (NOT APPLE)
1293
 
        SET(VTK_RENDERING_NEED_TK_INTERNAL 0)
1294
 
      ENDIF (NOT APPLE)
1295
 
    ENDIF (NOT CYGWIN)
1296
 
  ENDIF(UNIX)
1297
1292
ENDIF(VTK_INCLUDE_NEED_TK)
1298
1293
 
1299
1294
IF (VTK_RENDERING_NEED_TK_INTERNAL AND TK_LIBRARY)
1300
 
  SET (try_file "")
 
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)
1349
1344
 
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})
1356
1351
 
1357
1352
#-----------------------------------------------------------------------------
 
1353
# MPEG2
 
1354
#
 
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.
 
1361
#
 
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
 
1367
#
 
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"
 
1372
#
 
1373
# You are solely responsible for any legal issues associated with using
 
1374
# patented code in your software.
 
1375
#
 
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."
 
1378
  OFF)
 
1379
IF (VTK_USE_MPEG2_ENCODER)
 
1380
  INCLUDE(${VTK_SOURCE_DIR}/CMake/FindMPEG2.cmake OPTIONAL)
 
1381
ENDIF (VTK_USE_MPEG2_ENCODER)
 
1382
 
 
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)