CMakeLists.txt 13.3 KB
Newer Older
Andy Cedilnik's avatar
Andy Cedilnik committed
1
SET(KIT Rendering)
2
SET(UKIT RENDERING)
3
SET(KIT_TCL_LIBS vtkGraphicsTCL vtkImagingTCL ${VTK_TK_LIBRARIES})
4
5
6
7
8
IF(APPLE)
  SET(KIT_PYTHON_LIBS vtkGraphicsPythonD vtkImagingPythonD)
ELSE(APPLE)
  SET(KIT_PYTHON_LIBS vtkGraphicsPython vtkImagingPython)
ENDIF(APPLE)
9
10
11
12
SET(KIT_JAVA_LIBS vtkGraphicsJava vtkImagingJava)
IF (JAVA_AWT_LIBRARY)
  SET(KIT_JAVA_LIBS ${KIT_JAVA_LIBS} ${JAVA_AWT_LIBRARY})
ENDIF (JAVA_AWT_LIBRARY)
13
SET(KIT_LIBS vtkGraphics vtkImaging vtkIO
14
15
16
17
  vtkftgl
  vtkfreetype
)

Andy Cedilnik's avatar
Andy Cedilnik committed
18
SET( Kit_SRCS
19
vtkAbstractMapper3D.cxx
20
vtkAbstractVolumeMapper.cxx
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
vtkAbstractPicker.cxx
vtkAbstractPropPicker.cxx
vtkActor.cxx
vtkActorCollection.cxx
vtkAssembly.cxx
vtkAxisActor2D.cxx
vtkCamera.cxx
vtkCellPicker.cxx
vtkCuller.cxx
vtkCullerCollection.cxx
vtkDataSetMapper.cxx
vtkDirectionEncoder.cxx
vtkEncodedGradientEstimator.cxx
vtkEncodedGradientShader.cxx
vtkExporter.cxx
vtkFiniteDifferenceGradientEstimator.cxx
vtkFollower.cxx
vtkFrustumCoverageCuller.cxx
Bill Hoffman's avatar
Bill Hoffman committed
39
vtkGenericRenderWindowInteractor.cxx
40
41
42
43
44
45
46
vtkGraphicsFactory.cxx
vtkImageActor.cxx
vtkImageMapper.cxx
vtkImageViewer.cxx
vtkImageViewer2.cxx
vtkImagingFactory.cxx
vtkImporter.cxx
47
vtkInteractorEventRecorder.cxx
48
49
50
51
52
53
vtkInteractorObserver.cxx
vtkInteractorStyle.cxx
vtkInteractorStyleFlight.cxx
vtkInteractorStyleImage.cxx
vtkInteractorStyleJoystickActor.cxx
vtkInteractorStyleJoystickCamera.cxx
Amy Squillacote's avatar
Amy Squillacote committed
54
vtkInteractorStyleRubberBandZoom.cxx
55
vtkInteractorStyleSwitch.cxx
56
vtkInteractorStyleTerrain.cxx
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
vtkInteractorStyleTrackball.cxx
vtkInteractorStyleTrackballActor.cxx
vtkInteractorStyleTrackballCamera.cxx
vtkInteractorStyleUnicam.cxx
vtkInteractorStyleUser.cxx
vtkLODActor.cxx
vtkLODProp3D.cxx
vtkLabeledDataMapper.cxx
vtkLight.cxx
vtkLightCollection.cxx
vtkLightKit.cxx
vtkMapper.cxx
vtkMapperCollection.cxx
vtkParallelCoordinatesActor.cxx
vtkPicker.cxx
vtkPointPicker.cxx
vtkPolyDataMapper.cxx
vtkPolyDataMapper2D.cxx
vtkProp3D.cxx
vtkProp3DCollection.cxx
vtkPropPicker.cxx
vtkProperty.cxx
79
vtkRayCastImageDisplayHelper.cxx
80
81
82
83
84
85
86
87
88
89
vtkRecursiveSphereDirectionEncoder.cxx
vtkRenderWindow.cxx
vtkRenderWindowCollection.cxx
vtkRenderWindowInteractor.cxx
vtkRenderer.cxx
vtkRendererCollection.cxx
vtkRendererSource.cxx
vtkScalarBarActor.cxx
vtkScaledTextActor.cxx
vtkSelectVisiblePoints.cxx
90
vtkTesting.cxx
91
vtkTextActor.cxx
92
vtkTextMapper.cxx
Sebastien Barre's avatar
Sebastien Barre committed
93
vtkTextProperty.cxx
94
vtkTexture.cxx
95
96
97
98
vtkUnstructuredGridBunykRayCastFunction.cxx
vtkUnstructuredGridVolumeMapper.cxx
vtkUnstructuredGridVolumeRayCastFunction.cxx
vtkUnstructuredGridVolumeRayCastMapper.cxx
99
100
101
102
103
104
105
106
107
108
109
110
111
112
vtkVolume.cxx
vtkVolumeCollection.cxx
vtkVolumeMapper.cxx
vtkVolumeProMapper.cxx
vtkVolumeProperty.cxx
vtkVolumeRayCastCompositeFunction.cxx
vtkVolumeRayCastFunction.cxx
vtkVolumeRayCastIsosurfaceFunction.cxx
vtkVolumeRayCastMIPFunction.cxx
vtkVolumeRayCastMapper.cxx
vtkVolumeTextureMapper.cxx
vtkVolumeTextureMapper2D.cxx
vtkWindowToImageFilter.cxx
vtkWorldPointPicker.cxx
Ken Martin's avatar
Ken Martin committed
113
114
)

115
IF (VTK_HAVE_VP1000)
Andy Cedilnik's avatar
Andy Cedilnik committed
116
  SET( Kit_SRCS ${Kit_SRCS}
117
118
    vtkVolumeProVP1000Mapper.cxx
    vtkOpenGLVolumeProVP1000Mapper.cxx
119
120
    )
ENDIF (VTK_HAVE_VP1000)
121

Andy Cedilnik's avatar
Andy Cedilnik committed
122
SET( KitOpenGL_SRCS
Ken Martin's avatar
Ken Martin committed
123
124
125
126
127
128
129
130
  vtkOpenGLActor.cxx
  vtkOpenGLCamera.cxx
  vtkOpenGLImageActor.cxx
  vtkOpenGLImageMapper.cxx
  vtkOpenGLLight.cxx
  vtkOpenGLPolyDataMapper.cxx
  vtkOpenGLPolyDataMapper2D.cxx
  vtkOpenGLProperty.cxx
131
  vtkOpenGLRayCastImageDisplayHelper.cxx
Ken Martin's avatar
Ken Martin committed
132
  vtkOpenGLRenderWindow.cxx
Brad King's avatar
Brad King committed
133
  vtkOpenGLRenderer.cxx
Ken Martin's avatar
Ken Martin committed
134
135
136
137
138
139
  vtkOpenGLTexture.cxx
  vtkOpenGLVolumeRayCastMapper.cxx
  vtkOpenGLVolumeTextureMapper2D.cxx
  )

SET_SOURCE_FILES_PROPERTIES(
140
vtkAbstractMapper3D
141
vtkAbstractVolumeMapper
142
143
144
145
146
147
148
vtkAbstractPicker
vtkAbstractPropPicker
vtkCuller
vtkDirectionEncoder
vtkEncodedGradientEstimator
vtkExporter
vtkImporter
Brad King's avatar
Brad King committed
149
vtkInteractorObserver
150
151
152
vtkMapper
vtkOpenGLRenderWindow
vtkProp3D
153
154
155
vtkRayCastImageDisplayHelper
vtkUnstructuredGridVolumeMapper
vtkUnstructuredGridVolumeRayCastFunction
156
157
158
vtkVolumeMapper
vtkVolumeRayCastFunction
vtkVolumeTextureMapper
Ken Martin's avatar
Ken Martin committed
159
ABSTRACT
Ken Martin's avatar
Ken Martin committed
160
161
)

Andy Cedilnik's avatar
Andy Cedilnik committed
162
163
# Freetype stuff

Andy Cedilnik's avatar
Andy Cedilnik committed
164
SET(Kit_SRCS ${Kit_SRCS}
165
166
  vtkFreeTypeFontCache.cxx
)
Andy Cedilnik's avatar
Andy Cedilnik committed
167
SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
168
169
170
171
172
173
  vtkOpenGLFreeTypeTextMapper.cxx
)
SET_SOURCE_FILES_PROPERTIES(
  vtkFreeTypeFontCache
  WRAP_EXCLUDE
)
Andy Cedilnik's avatar
Andy Cedilnik committed
174
SET(Kit_FT_SRCS 
175
176
177
178
179
180
181
182
183
184
185
186
187
  fonts/face_arial.cxx
  fonts/face_arial_bold.cxx
  fonts/face_arial_bold_italic.cxx
  fonts/face_arial_italic.cxx
  fonts/face_courier.cxx
  fonts/face_courier_bold.cxx
  fonts/face_courier_bold_italic.cxx
  fonts/face_courier_italic.cxx
  fonts/face_times.cxx
  fonts/face_times_bold.cxx
  fonts/face_times_bold_italic.cxx
  fonts/face_times_italic.cxx
)
188

Yves Starreveld's avatar
   
Yves Starreveld committed
189
IF(VTK_USE_X)
Andy Cedilnik's avatar
Andy Cedilnik committed
190
  SET( Kit_SRCS ${Kit_SRCS}
191
    vtkXRenderWindowInteractor.cxx)
Yves Starreveld's avatar
   
Yves Starreveld committed
192
ENDIF(VTK_USE_X)
Ken Martin's avatar
Ken Martin committed
193

Andy Cedilnik's avatar
Andy Cedilnik committed
194
195
# Build a list of libraries to link to vtkRendering.

196
197
IF(VTK_USE_VOLUMEPRO)
  IF(VTK_HAVE_VP1000)
198
    SET(KIT_LIBS ${KIT_LIBS} ${VLI_LIBRARY_FOR_VP1000})
199
200
201
  ENDIF(VTK_HAVE_VP1000)
ENDIF(VTK_USE_VOLUMEPRO)

202
IF(VTK_USE_GL2PS)
203
  SET(KIT_LIBS ${KIT_LIBS} ${VTK_ZLIB_LIBRARIES})
204
ENDIF(VTK_USE_GL2PS)
205

Ken Martin's avatar
Ken Martin committed
206
IF (WIN32)
207
  IF(VTK_USE_X)
208
    IF (OPENGL_gl_LIBRARY)
Andy Cedilnik's avatar
Andy Cedilnik committed
209
      SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
210
                   vtkXOpenGLRenderWindow.cxx)
211
212
      SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} )
    ENDIF (OPENGL_gl_LIBRARY)    
213
  ELSE(VTK_USE_X)
Andy Cedilnik's avatar
Andy Cedilnik committed
214
    SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
215
216
                 vtkWin32OpenGLRenderWindow.cxx
                 vtkWin32RenderWindowInteractor.cxx)
217
    SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} )
218
  ENDIF(VTK_USE_X)
Ken Martin's avatar
Ken Martin committed
219
ELSE (WIN32)
Yves Starreveld's avatar
   
Yves Starreveld committed
220
  IF (APPLE)
221
    IF(VTK_USE_COCOA)
Andy Cedilnik's avatar
Andy Cedilnik committed
222
      SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
223
224
225
226
                   vtkCocoaRenderWindowInteractor.mm
                   vtkCocoaRenderWindow.mm
                   vtkCocoaWindow.mm
                   vtkCocoaGLView.mm)
Ken Martin's avatar
Ken Martin committed
227
      SET_SOURCE_FILES_PROPERTIES(vtkCocoaGLView vtkCocoaWindow WRAP_EXCLUDE)
228
      SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} "-framework Cocoa")
229
230
    ENDIF(VTK_USE_COCOA)
    IF(VTK_USE_CARBON)
Andy Cedilnik's avatar
Andy Cedilnik committed
231
      SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
232
233
                   vtkCarbonRenderWindowInteractor.cxx
                   vtkCarbonRenderWindow.cxx)
234
      SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} "-framework Carbon")
235
236
    ENDIF(VTK_USE_CARBON)
    IF(VTK_USE_X)
237
      IF (OPENGL_gl_LIBRARY)
Andy Cedilnik's avatar
Andy Cedilnik committed
238
        SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
239
                     vtkXOpenGLRenderWindow.cxx)
240
        SET (KIT_LIBS ${KIT_LIBS} "-lGL")
241
      ENDIF (OPENGL_gl_LIBRARY)
242
    ENDIF(VTK_USE_X)
Yves Starreveld's avatar
   
Yves Starreveld committed
243
  ELSE (APPLE)
244
    IF (OPENGL_gl_LIBRARY)
Andy Cedilnik's avatar
Andy Cedilnik committed
245
      SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
246
                   vtkXOpenGLRenderWindow.cxx)
247
248
      SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} )
    ENDIF (OPENGL_gl_LIBRARY)
Yves Starreveld's avatar
   
Yves Starreveld committed
249
  ENDIF (APPLE)
Ken Martin's avatar
Ken Martin committed
250
251
ENDIF (WIN32)

252
253
IF (VTK_USE_MANGLED_MESA)
  IF (MANGLED_MESA_LIBRARY)
Andy Cedilnik's avatar
Andy Cedilnik committed
254
    SET ( KitOpenGL_SRCS ${KitOpenGL_SRCS}
255
256
257
258
259
260
261
262
                 vtkMesaActor.cxx
                 vtkMesaCamera.cxx
                 vtkMesaImageActor.cxx
                 vtkMesaImageMapper.cxx
                 vtkMesaLight.cxx
                 vtkMesaPolyDataMapper.cxx
                 vtkMesaPolyDataMapper2D.cxx
                 vtkMesaProperty.cxx
263
                 vtkMesaRayCastImageDisplayHelper.cxx
Brad King's avatar
Brad King committed
264
                 vtkMesaRenderWindow.cxx
265
266
267
268
269
                 vtkMesaRenderer.cxx
                 vtkMesaTexture.cxx
                 vtkMesaVolumeRayCastMapper.cxx
                 vtkMesaVolumeTextureMapper2D.cxx
                 vtkXMesaRenderWindow.cxx
Berk Geveci's avatar
Berk Geveci committed
270
                )
Andy Cedilnik's avatar
Andy Cedilnik committed
271
    SET(KitOpenGL_SRCS ${KitOpenGL_SRCS}
272
273
      vtkMesaFreeTypeTextMapper.cxx
    )
Ken Martin's avatar
Ken Martin committed
274
    SET_SOURCE_FILES_PROPERTIES(vtkMesaRenderWindow ABSTRACT)
275
    SET (KIT_LIBS ${KIT_LIBS} ${MANGLED_MESA_LIBRARY})
276
    IF(MANGLED_OSMESA_LIBRARY)
277
      SET( KIT_LIBS ${KIT_LIBS} ${MANGLED_OSMESA_LIBRARY} )
278
279
280
281
282
    ENDIF(MANGLED_OSMESA_LIBRARY)
  ENDIF (MANGLED_MESA_LIBRARY)
ELSE (VTK_USE_MANGLED_MESA)
  IF(VTK_OPENGL_HAS_OSMESA)
    IF (OSMESA_LIBRARY)
283
      SET(KIT_LIBS ${KIT_LIBS} ${OSMESA_LIBRARY})
284
285
286
    ENDIF (OSMESA_LIBRARY)
  ENDIF(VTK_OPENGL_HAS_OSMESA)
ENDIF(VTK_USE_MANGLED_MESA)
Andy Cedilnik's avatar
Andy Cedilnik committed
287
288
SET(Kit_SRCS ${Kit_SRCS} ${KitOpenGL_SRCS})
SET(Kit_EXTRA_SRCS ${Kit_FT_SRCS})
289
290
291
292
293

IF(VTK_USE_GL2PS)
SET(Kit_EXTRA_SRCS ${Kit_EXTRA_SRCS} ${Kit_GL2PS_SRCS})
ENDIF(VTK_USE_GL2PS)

Andy Cedilnik's avatar
Andy Cedilnik committed
294
295
296
297
298
SET(Kit_EXTRA_CMDS)
SET(Kit_TCL_EXTRA_SRCS)
SET(Kit_PYTHON_EXTRA_SRCS)
SET(Kit_JAVA_EXTRA_SRCS)
SET(Kit_TCL_EXTRA_CMDS)
Ken Martin's avatar
Ken Martin committed
299

300
IF (TK_LIBRARY)
301
302
303
304
305
306
307
308
  SET (HAVE_LIMITS_H ${CMAKE_HAVE_LIMITS_H})
  SET (HAVE_UNISTD_H ${CMAKE_HAVE_UNISTD_H})
  CONFIGURE_FILE(
    ${CMAKE_CURRENT_SOURCE_DIR}/vtkTkInternals.h.in
    ${CMAKE_CURRENT_BINARY_DIR}/vtkTkInternals.h)
  INSTALL_FILES(/include/vtk 
                FILES ${CMAKE_CURRENT_BINARY_DIR}/vtkTkInternals.h)
  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
309
ENDIF (TK_LIBRARY)
310

Ken Martin's avatar
Ken Martin committed
311
IF (VTK_WRAP_TCL)
312
  IF(NOT VTK_USE_COCOA)
Andy Cedilnik's avatar
Andy Cedilnik committed
313
    SET(KitTCL_SRCS
314
315
316
       vtkTkRenderWidget.cxx
       vtkTkImageViewerWidget.cxx)
  ENDIF(NOT VTK_USE_COCOA)
Ken Martin's avatar
updates    
Ken Martin committed
317

318
319
320
321
322
  # Use special interactor for X and Tk.
  IF(VTK_USE_X)
    SET(KitTCL_SRCS ${KitTCL_SRCS}
      vtkXRenderWindowTclInteractor.cxx)
  ENDIF(VTK_USE_X)
323

324
325
326
327
  # if VTK_DISABLE_TK_INIT is not defined, then those widgets *will* be
  # initialized by the Rendering kit. If *not* defined we need to do it
  # manually when needed (for example, in vtkTkAppInit so that
  # we can use them from the vtk executable
328
  IF (NOT VTK_DISABLE_TK_INIT)
Andy Cedilnik's avatar
Andy Cedilnik committed
329
330
331
   SET(Kit_TCL_EXTRA_CMDS 
     vtkTkRenderWidget 
     vtkTkImageViewerWidget)
332
  ENDIF (NOT VTK_DISABLE_TK_INIT)
333
  IF (APPLE AND VTK_BUILD_SHARED_LIBS)
334
    SET(Kit_TCL_EXTRA_SRCS ${Kit_TCL_EXTRA_SRCS} vtkOSXRenderingTclInit.c)
335
  ENDIF (APPLE AND VTK_BUILD_SHARED_LIBS)
Andy Cedilnik's avatar
Andy Cedilnik committed
336
ENDIF (VTK_WRAP_TCL)
Yves Starreveld's avatar
   
Yves Starreveld committed
337

338
# -----------------------------------------------------------------
339
# Start of common section
340
341

# Setup vtkInstantiator registration for this library's classes.
Ken Martin's avatar
Ken Martin committed
342
343
VTK_MAKE_INSTANTIATOR3(vtk${KIT}Instantiator KitInstantiator_SRCS
                       "${Kit_SRCS}"
Ken Martin's avatar
Ken Martin committed
344
                       VTK_${UKIT}_EXPORT
Ken Martin's avatar
Ken Martin committed
345
                       ${VTK_BINARY_DIR} "")
346
347
348
349
350
351
352
353
354

ADD_LIBRARY(vtk${KIT} ${Kit_SRCS} ${Kit_EXTRA_SRCS} ${KitInstantiator_SRCS})

IF(VTK_APPLE_SHARED_FLAGS_NEEDED)
  SET_TARGET_PROPERTIES(vtk${KIT} PROPERTIES LINK_FLAGS "-init _oft_init${KIT}")
ENDIF(VTK_APPLE_SHARED_FLAGS_NEEDED)

# Allow the user to customize their build with some local options
#
355
SET(LOCALUSERMACRODEFINED 0)
356
357
358
359
360
361
362
363
INCLUDE (${VTK_BINARY_DIR}/${KIT}/LocalUserOptions.cmake OPTIONAL)
INCLUDE (${VTK_SOURCE_DIR}/${KIT}/LocalUserOptions.cmake OPTIONAL)

# if we are wrapping into Tcl then add the library and extra
# source files
#
IF (VTK_WRAP_TCL)
  VTK_WRAP_TCL2(vtk${KIT}TCL SOURCES KitTCL_SRCS 
364
365
                ${Kit_SRCS}
                COMMANDS ${Kit_TCL_EXTRA_CMDS})
366
367
  ADD_LIBRARY(vtk${KIT}TCL ${KitTCL_SRCS} ${Kit_TCL_EXTRA_SRCS})
  TARGET_LINK_LIBRARIES (vtk${KIT}TCL vtk${KIT} ${KIT_TCL_LIBS})
Andy Cedilnik's avatar
Andy Cedilnik committed
368
  INSTALL_TARGETS(/lib/vtk vtk${KIT}TCL)
Ken Martin's avatar
Ken Martin committed
369
370
ENDIF (VTK_WRAP_TCL)

371
# if we are wrapping into Python then add the library and extra
Ken Martin's avatar
Ken Martin committed
372
373
374
# source files
#
IF (VTK_WRAP_PYTHON)
375
  VTK_WRAP_PYTHON2(vtk${KIT}Python KitPython_SRCS ${Kit_SRCS})
376
377
378
  IF (APPLE)
    ADD_LIBRARY(vtk${KIT}PythonD ${KitPython_SRCS} ${Kit_PYTHON_EXTRA_SRCS})
    ADD_LIBRARY(vtk${KIT}Python MODULE vtk${KIT}PythonInit.cxx)
379
380
    TARGET_LINK_LIBRARIES(vtk${KIT}PythonD vtk${KIT} ${KIT_PYTHON_LIBS}
                          ${VTK_PYTHON_LIBRARIES})
381
    TARGET_LINK_LIBRARIES(vtk${KIT}Python vtk${KIT}PythonD)
382
    INSTALL_TARGETS(/lib/vtk vtk${KIT}PythonD)
383
384
385
386
  ELSE (APPLE)
    ADD_LIBRARY(vtk${KIT}Python MODULE ${KitPython_SRCS} ${Kit_PYTHON_EXTRA_SRCS})
    TARGET_LINK_LIBRARIES (vtk${KIT}Python vtk${KIT} ${KIT_PYTHON_LIBS})
  ENDIF(APPLE)
387
  IF(WIN32)
388
    TARGET_LINK_LIBRARIES (vtk${KIT}Python ${VTK_PYTHON_LIBRARIES})
389
  ENDIF(WIN32)
Andy Cedilnik's avatar
Andy Cedilnik committed
390
  INSTALL_TARGETS(/lib/vtk vtk${KIT}Python)
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
ENDIF (VTK_WRAP_PYTHON)

# if we are wrapping into Java then add the library and extra
# source files
#
IF (VTK_WRAP_JAVA)
  VTK_WRAP_JAVA2(vtk${KIT}Java KitJava_SRCS ${Kit_SRCS})
  ADD_LIBRARY(vtk${KIT}Java SHARED ${KitJava_SRCS} ${Kit_JAVA_EXTRA_SRCS})
  TARGET_LINK_LIBRARIES(vtk${KIT}Java vtk${KIT} ${KIT_JAVA_LIBS})
  INSTALL_TARGETS(/lib/vtk vtk${KIT}Java)
ENDIF (VTK_WRAP_JAVA)

TARGET_LINK_LIBRARIES(vtk${KIT} ${KIT_LIBS})

INSTALL_TARGETS(/lib/vtk vtk${KIT})
INSTALL_FILES(/include/vtk .h ${Kit_SRCS})

408
409
VTK_EXPORT_KIT("${KIT}" "${UKIT}" "${Kit_SRCS}")

410
411
412
413
414
415
416
417
418
# If the user defined a custom macro, execute it now and pass in all the srcs
#
IF(LOCALUSERMACRODEFINED)
  LocalUserOptionsMacro( "${Kit_SRCS}"       "${Kit_EXTRA_SRCS}"
                         "${KitTCL_SRCS}"    "${Kit_TCL_EXTRA_SRCS}"
                         "${KitJava_SRCS}"   "${Kit_JAVA_EXTRA_SRCS}"
                         "${KitPython_SRCS}" "${Kit_PYTHON_EXTRA_SRCS}")
ENDIF(LOCALUSERMACRODEFINED)

419
420
421
# End of common section
# -----------------------------------------------------------------

Andy Cedilnik's avatar
Andy Cedilnik committed
422
423
424
425
426
427
428
429
IF (VTK_WRAP_TCL)
  IF (APPLE AND VTK_BUILD_SHARED_LIBS)
    IF(VTK_APPLE_SHARED_FLAGS_NEEDED)
      SET_TARGET_PROPERTIES(vtk${KIT}TCL PROPERTIES LINK_FLAGS "-init _oft_initRenOSXInit")
    ENDIF(VTK_APPLE_SHARED_FLAGS_NEEDED)
  ENDIF (APPLE AND VTK_BUILD_SHARED_LIBS)
ENDIF (VTK_WRAP_TCL)

430
IF (VTK_WRAP_PYTHON)
431
  IF (TK_LIBRARY)
432
     IF(NOT VTK_USE_COCOA)
Andy Cedilnik's avatar
Andy Cedilnik committed
433
       SET(RenderingPythonTkWidgets_SRCS
434
435
436
437
          vtkTkWidgetsInit.cxx
          vtkTkRenderWidgetPython.cxx
          vtkTkImageViewerWidgetPython.cxx
          )
Andy Cedilnik's avatar
Andy Cedilnik committed
438
439
440
         ADD_LIBRARY(vtkRenderingPythonTkWidgets SHARED
                     ${RenderingPythonTkWidgets_SRCS})
       TARGET_LINK_LIBRARIES (vtkRenderingPythonTkWidgets
Andy Cedilnik's avatar
Andy Cedilnik committed
441
                              vtk${KIT}
442
                              ${VTK_TK_LIBRARIES})
Andy Cedilnik's avatar
Andy Cedilnik committed
443
       INSTALL_TARGETS(/lib/vtk vtkRenderingPythonTkWidgets)
444
     ENDIF(NOT VTK_USE_COCOA)
445
  ENDIF (TK_LIBRARY)
Ken Martin's avatar
Ken Martin committed
446
ENDIF (VTK_WRAP_PYTHON)
Andy Cedilnik's avatar
Andy Cedilnik committed
447

Yves Starreveld's avatar
   
Yves Starreveld committed
448
IF(VTK_USE_X)
Andy Cedilnik's avatar
Andy Cedilnik committed
449
  TARGET_LINK_LIBRARIES(vtk${KIT} -lXt ${CMAKE_X_LIBS})
450
  ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
Yves Starreveld's avatar
   
Yves Starreveld committed
451
ENDIF(VTK_USE_X)