CMakeLists.txt 15.1 KB
Newer Older
Andy Cedilnik's avatar
Andy Cedilnik committed
1
SET(KIT Common)
2
SET(UKIT COMMON)
3
SET(KIT_TCL_LIBS ${VTK_TCL_LIBRARIES})
4
5
SET(KIT_PYTHON_LIBS)
SET(KIT_JAVA_LIBS)
6
SET(KIT_INTERFACE_LIBRARIES ${KWSYS_NAMESPACE})
7

8
9
IF(WIN32)
  IF (NOT VTK_USE_X)
10
11
    SET(VTK_OWP_ENCODED_C vtkWin32OutputWindowProcessEncoded.c)
    SET_SOURCE_FILES_PROPERTIES(${VTK_OWP_ENCODED_C} PROPERTIES WRAP_EXCLUDE 1)
12
13
14
  ENDIF (NOT VTK_USE_X)
ENDIF(WIN32)

15
IF (UNIX)
16
17
  SET(KIT_LIBS ${KIT_LIBS} ${CMAKE_THREAD_LIBS} ${CMAKE_DL_LIBS})
  SET(KIT_INTERFACE_LIBRARIES ${KWSYS_NAMESPACE} -lm)
18
19
ENDIF (UNIX)

Andy Cedilnik's avatar
Andy Cedilnik committed
20
SET( Kit_SRCS
21
vtkAbstractArray.cxx
22
vtkAbstractTransform.cxx
23
vtkAmoebaMinimizer.cxx
24
25
vtkAnimationCue.cxx
vtkAnimationScene.cxx
Utkarsh Ayachit's avatar
ENH:    
Utkarsh Ayachit committed
26
vtkArrayIterator.cxx
27
28
29
30
vtkAssemblyNode.cxx
vtkAssemblyPath.cxx
vtkAssemblyPaths.cxx
vtkBitArray.cxx
Utkarsh Ayachit's avatar
ENH:    
Utkarsh Ayachit committed
31
vtkBitArrayIterator.cxx
32
vtkBoundingBox.cxx
33
vtkBox.cxx
34
vtkBoxMuellerRandomSequence.cxx
35
36
37
vtkByteSwap.cxx
vtkCallbackCommand.cxx
vtkCharArray.cxx
38
vtkClientSocket.cxx
39
vtkCollection.cxx
40
vtkCollectionIterator.cxx
41
vtkCommand.cxx
42
vtkCommonInformationKeyManager.cxx
43
vtkConditionVariable.cxx
44
45
46
47
vtkContourValues.cxx
vtkCriticalSection.cxx
vtkCylindricalTransform.cxx
vtkDataArray.cxx
Berk Geveci's avatar
Doh...    
Berk Geveci committed
48
vtkDataArrayCollection.cxx
49
vtkDataArrayCollectionIterator.cxx
50
vtkDataArraySelection.cxx
51
vtkDebugLeaks.cxx
52
vtkDebugLeaksManager.cxx
53
54
vtkDirectory.cxx
vtkDoubleArray.cxx
Alexander Neundorf's avatar
   
Alexander Neundorf committed
55
vtkDynamicLoader.cxx
56
57
vtkEdgeTable.cxx
vtkErrorCode.cxx
58
vtkEventForwarderCommand.cxx
59
vtkExtentSplitter.cxx
60
vtkExtentTranslator.cxx
61
vtkFastNumericConversion.cxx
62
63
vtkFileOutputWindow.cxx
vtkFloatArray.cxx
64
vtkFloatingPointExceptions.cxx
65
66
vtkFunctionParser.cxx
vtkFunctionSet.cxx
67
vtkGarbageCollector.cxx
68
vtkGarbageCollectorManager.cxx
69
vtkGaussianRandomSequence.cxx
70
71
72
vtkGeneralTransform.cxx
vtkHeap.cxx
vtkHomogeneousTransform.cxx
73
vtkIOStream.cxx
74
vtkIdList.cxx
Berk Geveci's avatar
Doh...    
Berk Geveci committed
75
vtkIdListCollection.cxx
76
77
78
79
80
vtkIdTypeArray.cxx
vtkIdentityTransform.cxx
vtkImplicitFunction.cxx
vtkImplicitFunctionCollection.cxx
vtkIndent.cxx
81
82
83
84
85
86
87
88
89
90
91
92
93
94
vtkInformation.cxx
vtkInformationDataObjectKey.cxx
vtkInformationDoubleKey.cxx
vtkInformationDoubleVectorKey.cxx
vtkInformationIdTypeKey.cxx
vtkInformationInformationKey.cxx
vtkInformationInformationVectorKey.cxx
vtkInformationIntegerKey.cxx
vtkInformationIntegerPointerKey.cxx
vtkInformationIntegerVectorKey.cxx
vtkInformationIterator.cxx
vtkInformationKey.cxx
vtkInformationKeyVectorKey.cxx
vtkInformationObjectBaseKey.cxx
95
vtkInformationObjectBaseVectorKey.cxx
Burlen Loring's avatar
   
Burlen Loring committed
96
vtkInformationQuadratureSchemeDefinitionVectorKey.cxx
97
98
vtkInformationRequestKey.cxx
vtkInformationStringKey.cxx
99
vtkInformationStringVectorKey.cxx
100
101
vtkInformationUnsignedLongKey.cxx
vtkInformationVector.cxx
102
103
104
105
106
107
108
109
vtkInitialValueProblemSolver.cxx
vtkInstantiator.cxx
vtkIntArray.cxx
vtkLargeInteger.cxx
vtkLinearTransform.cxx
vtkLogLookupTable.cxx
vtkLongArray.cxx
vtkLookupTable.cxx
110
vtkLookupTableWithEnabling.cxx
111
vtkMath.cxx
112
vtkMatrix3x3.cxx
113
114
115
vtkMatrix4x4.cxx
vtkMatrixToHomogeneousTransform.cxx
vtkMatrixToLinearTransform.cxx
116
vtkMinimalStandardRandomSequence.cxx
117
118
vtkMultiThreader.cxx
vtkMutexLock.cxx
119
120
vtkOStrStreamWrapper.cxx
vtkOStreamWrapper.cxx
121
vtkObject.cxx
122
vtkObjectBase.cxx
123
124
125
vtkObjectFactory.cxx
vtkObjectFactoryCollection.cxx
vtkOldStyleCallbackCommand.cxx
126
vtkOnePieceExtentTranslator.cxx
127
128
129
vtkOutputWindow.cxx
vtkOverrideInformation.cxx
vtkOverrideInformationCollection.cxx
Andrew Maclean's avatar
Andrew Maclean committed
130
vtkParametricBoy.cxx
131
vtkParametricConicSpiral.cxx
132
133
vtkParametricCrossCap.cxx
vtkParametricDini.cxx
134
vtkParametricEllipsoid.cxx
135
vtkParametricEnneper.cxx
136
vtkParametricFigure8Klein.cxx
137
vtkParametricFunction.cxx
138
139
vtkParametricKlein.cxx
vtkParametricMobius.cxx
140
141
vtkParametricRandomHills.cxx
vtkParametricRoman.cxx
142
143
144
vtkParametricSuperEllipsoid.cxx
vtkParametricSuperToroid.cxx
vtkParametricTorus.cxx
145
146
147
148
149
vtkPerspectiveTransform.cxx
vtkPlane.cxx
vtkPlaneCollection.cxx
vtkPlanes.cxx
vtkPoints.cxx
150
vtkPoints2D.cxx
151
vtkPolynomialSolversUnivariate.cxx
152
153
154
155
vtkPriorityQueue.cxx
vtkProp.cxx
vtkPropCollection.cxx
vtkProperty2D.cxx
Burlen Loring's avatar
   
Burlen Loring committed
156
vtkQuadratureSchemeDefinition.cxx
157
vtkQuadric.cxx
158
vtkRandomSequence.cxx
159
160
161
162
163
vtkReferenceCount.cxx
vtkRungeKutta2.cxx
vtkRungeKutta4.cxx
vtkRungeKutta45.cxx
vtkScalarsToColors.cxx
164
vtkServerSocket.cxx
165
vtkShortArray.cxx
166
vtkSignedCharArray.cxx
167
vtkSmartPointerBase.cxx
168
169
vtkSocket.cxx
vtkSocketCollection.cxx
170
vtkSortDataArray.cxx
171
vtkSphericalTransform.cxx
172
vtkStdString.cxx
173
vtkStringArray.cxx
174
vtkStructuredData.cxx
175
vtkStructuredVisibilityConstraint.cxx
176
vtkTableExtentTranslator.cxx
177
vtkTensor.cxx
178
vtkThreadMessager.cxx
179
vtkTimePointUtility.cxx
180
181
vtkTimeStamp.cxx
vtkTimerLog.cxx
182
vtkTransform2D.cxx
183
184
vtkTransform.cxx
vtkTransformCollection.cxx
185
186
vtkUnicodeString.cxx
vtkUnicodeStringArray.cxx
187
188
189
190
vtkUnsignedCharArray.cxx
vtkUnsignedIntArray.cxx
vtkUnsignedLongArray.cxx
vtkUnsignedShortArray.cxx
191
192
vtkVariant.cxx
vtkVariantArray.cxx
193
194
195
vtkVersion.cxx
vtkVoidArray.cxx
vtkWarpTransform.cxx
196
vtkWeakPointerBase.cxx
197
198
vtkWindow.cxx
vtkWindowLevelLookupTable.cxx
Burlen Loring's avatar
   
Burlen Loring committed
199
vtkXMLDataElement.cxx
200
vtkXMLFileOutputWindow.cxx
Ken Martin's avatar
Ken Martin committed
201
202
)

203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# Generate data for folding Unicode strings
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/vtkUnicodeString.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake @ONLY)

ADD_CUSTOM_COMMAND(
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CaseFolding.txt
  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake
  COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeString.cmake 
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeCaseFoldData.h
  )

SET_SOURCE_FILES_PROPERTIES(
  vtkUnicodeString.cxx
  OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeCaseFoldData.h
  )

218
219
220
221
222
223
224
225
IF(CMAKE_COMPILER_IS_GNUCXX)
  SET_SOURCE_FILES_PROPERTIES(
   vtkPolynomialSolversUnivariate.cxx
   PROPERTIES
   COMPILE_FLAGS -O0
   )
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

226
227
228
229
230
231
232
233
234
235
236
237
238
IF(VTK_TYPE_USE_LONG_LONG)
  SET(Kit_SRCS ${Kit_SRCS}
    vtkLongLongArray.cxx
    vtkUnsignedLongLongArray.cxx
    )
ENDIF(VTK_TYPE_USE_LONG_LONG)
IF(VTK_TYPE_USE___INT64)
  SET(Kit_SRCS ${Kit_SRCS} vtk__Int64Array.cxx)
  IF(VTK_TYPE_CONVERT_UI64_TO_DOUBLE)
    SET(Kit_SRCS ${Kit_SRCS} vtkUnsigned__Int64Array.cxx)
  ENDIF(VTK_TYPE_CONVERT_UI64_TO_DOUBLE)
ENDIF(VTK_TYPE_USE___INT64)

239
240
241
242
243
244
245
# Configure data arrays for platform-independent fixed-size types.
# Match the type selection here to that in vtkType.h.
IF(VTK_TYPE_CHAR_IS_SIGNED)
  SET(VTK_TYPE_NATIVE_Int8 Char)
ELSE(VTK_TYPE_CHAR_IS_SIGNED)
  SET(VTK_TYPE_NATIVE_Int8 SignedChar)
ENDIF(VTK_TYPE_CHAR_IS_SIGNED)
246
247
SET(VTK_TYPE_NATIVE_Int16 Short)
SET(VTK_TYPE_NATIVE_Int32 Int)
248
249
250
SET(VTK_TYPE_NATIVE_UInt8 UnsignedChar)
SET(VTK_TYPE_NATIVE_UInt16 UnsignedShort)
SET(VTK_TYPE_NATIVE_UInt32 UnsignedInt)
251
252
253
254
255
256
257
258
259

IF(VTK_SIZEOF_LONG_LONG MATCHES "^8$")
  SET(VTK_TYPE_NATIVE_Int64 LongLong)
  SET(VTK_TYPE_NATIVE_UInt64 UnsignedLongLong)
ELSE(VTK_SIZEOF_LONG_LONG MATCHES "^8$")
  IF(VTK_SIZEOF_LONG MATCHES "^8$")
    SET(VTK_TYPE_NATIVE_Int64 Long)
    SET(VTK_TYPE_NATIVE_UInt64 UnsignedLong)
  ELSE(VTK_SIZEOF_LONG MATCHES "^8$")
260
    IF(VTK_SIZEOF___INT64 MATCHES "^8$")
261
      SET(VTK_TYPE_NATIVE_Int64 __Int64)
262
263
264
      IF(VTK_TYPE_CONVERT_UI64_TO_DOUBLE)
        SET(VTK_TYPE_NATIVE_UInt64 Unsigned__Int64)
      ENDIF(VTK_TYPE_CONVERT_UI64_TO_DOUBLE)
265
    ENDIF(VTK_SIZEOF___INT64 MATCHES "^8$")
266
267
  ENDIF(VTK_SIZEOF_LONG MATCHES "^8$")
ENDIF(VTK_SIZEOF_LONG_LONG MATCHES "^8$")
268
269
SET(VTK_TYPE_NATIVE_Float32 Float)
SET(VTK_TYPE_NATIVE_Float64 Double)
270
FOREACH(t Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64)
271
272
  SET(VTK_TYPE_NAME ${t})
  SET(VTK_TYPE_NATIVE ${VTK_TYPE_NATIVE_${t}})
273
274
275
276
277
278
279
280
281
  IF(VTK_TYPE_NATIVE)
    CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/vtkTypedArray.h.in
                   ${CMAKE_CURRENT_BINARY_DIR}/vtkType${t}Array.h
                   @ONLY IMMEDIATE)
    CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/vtkTypedArray.cxx.in
                   ${CMAKE_CURRENT_BINARY_DIR}/vtkType${t}Array.cxx
                   @ONLY IMMEDIATE)
    SET(Kit_SRCS ${Kit_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/vtkType${t}Array.cxx)
  ENDIF(VTK_TYPE_NATIVE)
282
283
ENDFOREACH(t)

284
# Figure out if isnan and isinf functions are present.
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
INCLUDE(CheckSymbolExists)
INCLUDE(CheckIncludeFile)

IF (NOT HAVE_FLOAT_H)
  CHECK_INCLUDE_FILE("float.h" HAVE_FLOAT_H)
ENDIF(NOT HAVE_FLOAT_H)

IF (HAVE_FLOAT_H)
  CHECK_SYMBOL_EXISTS(isnan "float.h" VTK_HAS_ISNAN)
  IF (NOT VTK_HAS_ISNAN)
    CHECK_SYMBOL_EXISTS(_isnan "float.h" VTK_HAS__ISNAN)
  ENDIF (NOT VTK_HAS_ISNAN)
  CHECK_SYMBOL_EXISTS(isinf "float.h" VTK_HAS_ISINF)
  IF (NOT VTK_HAS_ISINF)
    CHECK_FUNCTION_EXISTS(_isinf "float.h" VTK_HAS__ISINF)
  ENDIF (NOT VTK_HAS_ISINF)
ENDIF (HAVE_FLOAT_H)
302
303
304
305
306

CONFIGURE_FILE(
  ${CMAKE_CURRENT_SOURCE_DIR}/vtkMathConfigure.h.in
  ${CMAKE_CURRENT_BINARY_DIR}/vtkMathConfigure.h
  )
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322

# Figure out if feenableexcept and fedisableexcept functions are present
CHECK_INCLUDE_FILE("fenv.h" HAVE_FENV_H)
IF (HAVE_FENV_H)
  SET(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
  IF(UNIX)
    SET(CMAKE_REQUIRED_LIBRARIES m)
  ENDIF(UNIX)
  CHECK_SYMBOL_EXISTS(feenableexcept "fenv.h" VTK_HAS_FEENABLEEXCEPT)
  SET(CMAKE_REQUIRED_LIBRARIES)
ENDIF (HAVE_FENV_H)

CONFIGURE_FILE(
  ${CMAKE_CURRENT_SOURCE_DIR}/vtkFloatingPointExceptionsConfigure.h.in
  ${CMAKE_CURRENT_BINARY_DIR}/vtkFloatingPointExceptionsConfigure.h
  )
323

Ken Martin's avatar
Ken Martin committed
324
SET_SOURCE_FILES_PROPERTIES(
325
# vtkObjectBase is marked ABSTRACT so that instantiators are happy.
326
vtkAbstractArray
Utkarsh Ayachit's avatar
ENH:    
Utkarsh Ayachit committed
327
328
vtkArrayIterator
vtkArrayIteratorTemplate
329
330
331
vtkAbstractTransform
vtkCallbackCommand
vtkCommand
332
vtkCommonInformationKeyManager
333
vtkDataArray
334
vtkEventForwarderCommand
335
vtkFloatingPointExceptions
336
vtkFunctionSet
337
vtkGaussianRandomSequence
338
339
vtkHomogeneousTransform
vtkImplicitFunction
340
341
342
343
344
345
346
347
348
349
350
351
vtkInformationDataObjectKey
vtkInformationDoubleKey
vtkInformationDoubleVectorKey
vtkInformationIdTypeKey
vtkInformationInformationKey
vtkInformationInformationVectorKey
vtkInformationIntegerKey
vtkInformationIntegerPointerKey
vtkInformationIntegerVectorKey
vtkInformationKey
vtkInformationKeyVectorKey
vtkInformationObjectBaseKey
352
vtkInformationObjectBaseVectorKey
Burlen Loring's avatar
   
Burlen Loring committed
353
vtkInformationQuadratureSchemeDefinitionVectorKey
354
355
vtkInformationRequestKey
vtkInformationStringKey
356
vtkInformationStringVectorKey
357
vtkInformationUnsignedLongKey
358
359
vtkInitialValueProblemSolver
vtkLinearTransform
360
vtkObjectBase
361
362
363
364
vtkObjectFactory
vtkOldStyleCallbackCommand
vtkOverrideInformation
vtkOverrideInformationCollection
365
vtkParametricFunction
366
vtkProp
367
vtkRandomSequence
368
vtkScalarsToColors
369
vtkSocket
370
vtkStructuredData
371
372
vtkWarpTransform
vtkWindow
Ken Martin's avatar
Ken Martin committed
373
ABSTRACT
Ken Martin's avatar
Ken Martin committed
374
375
)

Ken Martin's avatar
Ken Martin committed
376
SET_SOURCE_FILES_PROPERTIES(
Utkarsh Ayachit's avatar
ENH:    
Utkarsh Ayachit committed
377
  vtkArrayIteratorTemplate.txx
378
  vtkBoundingBox.cxx
379
380
  vtkCallbackCommand.cxx
  vtkCommand.cxx
381
  vtkCommonInformationKeyManager.cxx
382
383
  vtkDebugLeaksManager.cxx
  vtkErrorCode.cxx
384
  vtkEventForwarderCommand.cxx
385
  vtkFloatingPointExceptions
386
  vtkGarbageCollectorManager.cxx
387
  vtkIOStream.cxx
388
389
  vtkIndent.cxx
  vtkLargeInteger.cxx
390
391
  vtkOStrStreamWrapper.cxx
  vtkOStreamWrapper.cxx
392
  vtkOldStyleCallbackCommand.cxx
393
  vtkSmartPointerBase.cxx
394
  vtkStdString.cxx
395
396
  vtkTimeStamp.cxx
  vtkVariant.cxx
397
  vtkWeakPointerBase.cxx
398
  vtkUnicodeString.cxx
399

Ken Martin's avatar
Ken Martin committed
400
  WRAP_EXCLUDE
Ken Martin's avatar
Ken Martin committed
401
)
Ken Martin's avatar
Ken Martin committed
402

403
404
405
406
SET_SOURCE_FILES_PROPERTIES(
  vtkTimeStamp.cxx
  vtkVariant.cxx

407
  PROPERTIES WRAP_SPECIAL 1
408
409
)

410
411
412
413
# Activate code in "vtkVariant.cxx".  See the comment in the source.
SET_SOURCE_FILES_PROPERTIES(vtkVariant.cxx PROPERTIES
  COMPILE_FLAGS -DVTK_VARIANT_IMPL)

414
415
416
417
418
419
420

IF(VTK_USE_N_WAY_ARRAYS)

  SET(Kit_SRCS
    ${Kit_SRCS}
    vtkArray.cxx
    vtkArrayCoordinates.cxx
421
422
    vtkArrayExtents.cxx
    vtkArrayExtentsList.cxx
423
    vtkArrayRange.cxx
424
    vtkArraySort.cxx
425
426
427
428
429
430
431
432
433
434
    vtkArrayWeights.cxx
    )

  SET_SOURCE_FILES_PROPERTIES(
    vtkArray.cxx
    ABSTRACT
    )

  SET_SOURCE_FILES_PROPERTIES(
    vtkArrayCoordinates.cxx
435
436
    vtkArrayExtents.cxx
    vtkArrayExtentsList.cxx
437
    vtkArrayRange.cxx
438
    vtkArraySort.cxx
439
440
441
442
443
444
    vtkArrayWeights.cxx
    WRAP_EXCLUDE
    )

ENDIF(VTK_USE_N_WAY_ARRAYS)

445
446
447
448
449
SET(Kit_EXTRA_SRCS)
SET(Kit_EXTRA_CMDS)
SET(Kit_TCL_EXTRA_SRCS vtkTclUtil.cxx)
SET(Kit_PYTHON_EXTRA_SRCS vtkPythonUtil.cxx)
SET(Kit_JAVA_EXTRA_SRCS vtkJavaUtil.cxx)
450
451
452
SET(KIT_TCL_DEPS)
SET(KIT_PYTHON_DEPS)
SET(KIT_JAVA_DEPS)
453

454
455
456
457
458
459
460
461
462
463
IF (WIN32)
  IF (NOT VTK_USE_X)
    SET(Kit_SRCS ${Kit_SRCS} vtkWin32OutputWindow.cxx
      vtkWin32ProcessOutputWindow.cxx)
    SET(Kit_EXTRA_SRCS ${Kit_EXTRA_SRCS} vtkWin32OutputWindowProcessEncoded.c)
    SET_SOURCE_FILES_PROPERTIES(vtkWin32OutputWindowProcessEncoded.c
      PROPERTIES WRAP_EXCLUDE 1)
  ENDIF (NOT VTK_USE_X)
ENDIF (WIN32)

464
465
466
467
468
469
IF (WIN32)
  IF (NOT BORLAND)
    SET(KIT_LIBS ${KIT_LIBS} wsock32)
  ENDIF (NOT BORLAND)
ENDIF (WIN32)

470
471
472
473
474
475
IF(NOT HAVE_SOCKETS)
  # Tell vtkSocket.cxx that there are no sockets on this platform.
  SET_SOURCE_FILES_PROPERTIES(vtkSocket.cxx PROPERTIES
    COMPILE_FLAGS -DVTK_SOCKET_FAKE_API)
ENDIF(NOT HAVE_SOCKETS)

476
477
478
479
480
481
# Need nsl to resolve gethostbyname on SunOS-5.8
# and socket also
IF(CMAKE_SYSTEM MATCHES "SunOS.*")
  SET(KIT_LIBS ${KIT_LIBS} socket nsl)
ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*") 

482
483
#-----------------------------------------------------------------------------
# Include CMake code common to all kits.
484
INCLUDE(${VTK_CMAKE_DIR}/KitCommonBlock.cmake)
485
#-----------------------------------------------------------------------------
486

487
488
489
490
491
492
493
494
495
496
497
498
499
IF(CMAKE_COMPILER_IS_GNUCXX AND MINGW)
  # MinGW fails to dllexport the explicit instantiations of
  # vtkDataArrayTemplate, so we must export all symbols.
  GET_TARGET_PROPERTY(VTK_COMMON_LINK_FLAGS vtkCommon LINK_FLAGS)
  IF(VTK_COMMON_LINK_FLAGS)
    SET(VTK_COMMON_LINK_FLAGS "${VTK_COMMON_LINK_FLAGS} ")
  ELSE(VTK_COMMON_LINK_FLAGS)
    SET(VTK_COMMON_LINK_FLAGS)
  ENDIF(VTK_COMMON_LINK_FLAGS)
  SET_TARGET_PROPERTIES(vtkCommon PROPERTIES
    LINK_FLAGS "${VTK_COMMON_LINK_FLAGS}-Wl,--export-all-symbols")
ENDIF(CMAKE_COMPILER_IS_GNUCXX AND MINGW)

500
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
501
  SET(__inst_files
502
    vtkABI.h
503
504
505
506
507
508
509
    vtkArrayIteratorTemplate.h
    vtkDataArrayTemplate.h
    vtkIOStream.h
    vtkIOStreamFwd.h
    vtkSetGet.h
    vtkSmartPointer.h
    vtkSystemIncludes.h
510
    vtkTemplateAliasMacro.h
511
512
    vtkType.h
    vtkTypeTraits.h
513
    vtkVariantInlineOperators.h
514
    vtkWeakPointer.h
515
516
    vtkWin32Header.h
    vtkWindows.h
517
    ${CMAKE_CURRENT_SOURCE_DIR}/Testing/Cxx/vtkTestDriver.h
518
    )
519

520
  IF(VTK_WRAP_TCL)
521
522
523
524
    SET(__inst_files ${__inst_files}
      vtkTcl.h
      vtkTclUtil.h
      vtkTk.h
525
526
527
      )
  ENDIF(VTK_WRAP_TCL)
  IF(VTK_WRAP_PYTHON)
528
529
    SET(__inst_files ${__inst_files}
      vtkPythonUtil.h
530
531
      vtkPython.h
      )
Alexander Neundorf's avatar
   
Alexander Neundorf committed
532
    IF (TK_FOUND)
533
      IF(VTK_USE_TK)
534
535
536
        SET(__inst_files ${__inst_files}
          vtkTcl.h
          vtkTk.h
537
          )
538
      ENDIF(VTK_USE_TK)
Alexander Neundorf's avatar
   
Alexander Neundorf committed
539
    ENDIF (TK_FOUND)
540
541
  ENDIF(VTK_WRAP_PYTHON)
  IF(VTK_WRAP_JAVA)
542
543
    SET(__inst_files ${__inst_files}
      vtkJavaUtil.h
544
545
546
      )
  ENDIF(VTK_WRAP_JAVA)

547
548
549
550
551
552
  SET(__inst_files ${__inst_files}
    vtkArrayIteratorTemplate.txx
    vtkArrayIteratorTemplateImplicit.txx
    vtkDataArrayTemplate.txx
    vtkDataArrayTemplateImplicit.txx
    ${VTK_SOURCE_DIR}/${KIT}/Testing/Cxx/vtkTestUtilities.h)
553

554
555
556
557
558
  INSTALL(FILES ${__inst_files}
    DESTINATION ${VTK_INSTALL_INCLUDE_DIR_CM24}
    COMPONENT Development)

  SET(__inst_files
559
    ${VTK_SOURCE_DIR}/${KIT}/Testing/HeaderTesting.py
560
    ${VTK_SOURCE_DIR}/${KIT}/Testing/WindowsMangleList.py
561
562
563
564
565
566
    ${VTK_SOURCE_DIR}/${KIT}/Testing/Tcl/FindString.tcl
    ${VTK_SOURCE_DIR}/${KIT}/Testing/Tcl/PrintSelfCheck.tcl
    ${VTK_SOURCE_DIR}/${KIT}/Testing/Tcl/rtImageTest.tcl
    ${VTK_SOURCE_DIR}/${KIT}/Testing/Tcl/TestSetGet.tcl
    )
  IF(VTK_USE_PARALLEL)
567
    SET(__inst_files ${__inst_files}
568
569
      ${VTK_SOURCE_DIR}/${KIT}/Testing/Tcl/prtImageTest.tcl)
  ENDIF(VTK_USE_PARALLEL)
570
571
572
573

  INSTALL(FILES ${__inst_files}
    DESTINATION ${VTK_INSTALL_PACKAGE_DIR_CM24}/testing
    COMPONENT Development)
574
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)