CMakeLists.txt 13.8 KB
Newer Older
1

Clinton Stimpson's avatar
 
Clinton Stimpson committed
2
# set up sources to build
3
SET(QVTKLibSrcs
Clinton Stimpson's avatar
   
Clinton Stimpson committed
4
    vtkEventQtSlotConnect.cxx
Clinton Stimpson's avatar
   
Clinton Stimpson committed
5
    vtkQtConnection.cxx
6
    QVTKApplication.cxx
7
    QVTKInteractor.cxx
8
    QVTKInteractorAdapter.cxx
9
    QVTKWidget.cxx
10
11
12
13
14
    QFilterTreeProxyModel.cxx
    QVTKPaintEngine.cxx
    QVTKPaintEngine.h
    vtkQtAbstractModelAdapter.cxx
    vtkQtAnnotationLayersModelAdapter.cxx
15
16
    vtkQtDebugLeaksModel.cxx
    vtkQtDebugLeaksView.cxx
17
18
19
20
21
    vtkQtSQLDatabase.cxx
    vtkQtSQLQuery.cxx
    vtkQtTableModelAdapter.cxx
    vtkQtTimePointUtility.cxx
    vtkQtTreeModelAdapter.cxx
22
    )
Clinton Stimpson's avatar
   
Clinton Stimpson committed
23

24
SET(QVTKMocHeaders
25
    QVTKApplication.h
26
    QVTKInteractorAdapter.h
27
    QVTKInteractorInternal.h
28
    QVTKWidget.h
Clinton Stimpson's avatar
   
Clinton Stimpson committed
29
    vtkQtConnection.h
30
31
32
    QFilterTreeProxyModel.h
    vtkQtAbstractModelAdapter.h
    vtkQtAnnotationLayersModelAdapter.h
33
34
    vtkQtDebugLeaksModel.h
    vtkQtDebugLeaksView.h
35
36
    vtkQtTableModelAdapter.h
    vtkQtTreeModelAdapter.h
37
    )
Clinton Stimpson's avatar
   
Clinton Stimpson committed
38

39
IF(VTK_USE_X AND VTK_USE_TDX)
40
41
42
43
44
45
  SET(QVTKMocHeaders ${QVTKMocHeaders}
      vtkTDxQtUnixDevices.h
    )
  SET(QVTKLibSrcs ${QVTKLibSrcs}
      vtkTDxQtUnixDevices.cxx
    )
46
47
ENDIF()

48
SET(QVTKNonMocHeaders
49
50
    QVTKWin32Header.h
    vtkEventQtSlotConnect.h
51
    QVTKInteractor.h
52
53
    )

54
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
Clinton Stimpson's avatar
   
Clinton Stimpson committed
55

56
# add additional files if the user will allow Qt's OpenGL support
57
IF(VTK_USE_QVTK_QTOPENGL)
58
  SET(QT_USE_QTOPENGL 1)
59
60
  SET(QVTKMocHeaders ${QVTKMocHeaders}
    QVTKGraphicsItem.h
61
    QVTKWidget2.h
62
    )
63
  SET(QVTKLibSrcs ${QVTKLibSrcs}
64
    QVTKGraphicsItem.cxx
65
    QVTKWidget2.cxx
66
67
68
    )
ENDIF(VTK_USE_QVTK_QTOPENGL)

69
70
# add additional files depending on infovis and/or views
IF(VTK_USE_VIEWS)
71
  SET(QVTKLibSrcs ${QVTKLibSrcs}
72
73
74
75
76
77
78
    vtkQtAnnotationView.cxx
    vtkQtListView.cxx
    vtkQtRecordView.cxx
    vtkQtTableRepresentation.cxx
    vtkQtTableView.cxx
    vtkQtTreeView.cxx
    vtkQtView.cxx
79
    )
80
  SET_SOURCE_FILES_PROPERTIES(vtkQtView.cxx ABSTRACT )
81
  SET(QVTKMocHeaders ${QVTKMocHeaders}
82
83
84
85
86
87
88
    vtkQtAnnotationView.h
    vtkQtListView.h
    vtkQtRecordView.h
    vtkQtTableView.h
    vtkQtTreeView.h
    vtkQtView.h
    )
89
  SET(QVTKNonMocHeaders ${QVTKNonMocHeaders}
90
91
    vtkQtTableRepresentation.h
    )
92

93
  # Rich-text view requires Qt >= 4.5.0
94
  # Rich-text depends on Qt Webkit which is not portable on Unix (AIX & HP-UX)
95
96
97
98
99
100
101
  IF(QT_QTWEBKIT_FOUND)
    OPTION(VTK_QT_USE_WEBKIT "Option to use QT Webkit" ON)
    MARK_AS_ADVANCED(VTK_QT_USE_WEBKIT)
    IF( VTK_QT_USE_WEBKIT )
      QT4_WRAP_UI(UI_FILES vtkQtRichTextView.ui)
      SET(QVTKLibSrcs ${QVTKLibSrcs} ${UI_FILES} vtkQtRichTextView.cxx)
      SET(QVTKMocHeaders ${QVTKMocHeaders} vtkQtRichTextView.h)
102
      IF(QT_PHONON_FOUND AND APPLE)
103
        SET(QT_USE_PHONON 1)
104
      ENDIF(QT_PHONON_FOUND AND APPLE)
105
106
107
108
      SET(QT_USE_QTWEBKIT 1)
    ENDIF( VTK_QT_USE_WEBKIT )
  ENDIF(QT_QTWEBKIT_FOUND)
ENDIF(VTK_USE_VIEWS)
109

110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Should we build the Qt charts - they are now deprecated.
VTK_DEPENDENT_OPTION(VTK_USE_QTCHARTS "Build Qt based charts - DEPRECATED" OFF
                     "VTK_USE_QT;VTK_USE_RENDERING" OFF)
if(VTK_USE_QTCHARTS)
  if(VTK_USE_VIEWS)
    set(QVTKLibSrcs ${QVTKLibSrcs}
      vtkQtBarChartView.cxx
      vtkQtChartRepresentation.cxx
      vtkQtChartView.cxx
      vtkQtLineChartView.cxx
      vtkQtStackedChartView.cxx
      vtkQtStatisticalBoxChartView.cxx
      )
    set(QVTKMocHeaders ${QVTKMocHeaders}
      vtkQtBarChartView.h
      vtkQtChartView.h
      vtkQtLineChartView.h
      vtkQtStackedChartView.h
      vtkQtStatisticalBoxChartView.h
      )
    set(QVTKNonMocHeaders ${QVTKNonMocHeaders}
      vtkQtChartRepresentation.h
      )
  endif()
endif()

136
# import Qt4 build settings
137
SET(QT_USE_QTNETWORK 1)
138
INCLUDE(${QT_USE_FILE})
Clinton Stimpson's avatar
   
Clinton Stimpson committed
139

140
QT4_WRAP_CPP(QVTKLibMocSrcs ${QVTKMocHeaders})
Clinton Stimpson's avatar
 
Clinton Stimpson committed
141

David Partyka's avatar
David Partyka committed
142
VTK_ADD_LIBRARY(QVTK ${QVTKLibSrcs} ${QVTKLibMocSrcs})
143
144
145
146
147
# Add target specific compile flags for ABI setttings
IF(VTK_ABI_CXX_FLAGS)
  SET_PROPERTY(TARGET QVTK APPEND PROPERTY COMPILE_FLAGS "${VTK_ABI_CXX_FLAGS}")
ENDIF(VTK_ABI_CXX_FLAGS)

148
149
150
151
152
# Apply user-defined properties to the library target.
IF(VTK_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(QVTK PROPERTIES ${VTK_LIBRARY_PROPERTIES})
ENDIF(VTK_LIBRARY_PROPERTIES)

153
TARGET_LINK_LIBRARIES(QVTK
154
  ${QT_LIBRARIES}
155
  vtkRendering
156
  vtkIO
Clinton Stimpson's avatar
 
Clinton Stimpson committed
157
  vtkGraphics
158
  vtkImaging
159
  vtkCommon)
Clinton Stimpson's avatar
 
Clinton Stimpson committed
160

161
# add extra dependencies if necessary
162
IF(VTK_USE_VIEWS)
163
  TARGET_LINK_LIBRARIES(QVTK vtkViews)
164
ENDIF(VTK_USE_VIEWS)
Clinton Stimpson's avatar
   
Clinton Stimpson committed
165

166
IF(VTK_USE_QVTK_QTOPENGL)
167
  TARGET_LINK_LIBRARIES(QVTK ${OPENGL_gl_LIBRARY})
168
169
ENDIF(VTK_USE_QVTK_QTOPENGL)

170
171
172
173
IF(VTK_USE_X)
  TARGET_LINK_LIBRARIES(QVTK ${X11_LIBRARIES})
ENDIF()

174
175
176
177
178
179
IF(APPLE)
  IF(VTK_USE_CARBON)
    TARGET_LINK_LIBRARIES( QVTK "-framework Carbon" )
  ENDIF(VTK_USE_CARBON)
ENDIF(APPLE)

180
181
182
183
if(VTK_USE_QTCHARTS)
  add_subdirectory(Chart)
  target_link_libraries(QVTK vtkQtChart)
endif()
Clinton Stimpson's avatar
   
Clinton Stimpson committed
184

185
# recurse into testing directory if testing is on
186
IF(BUILD_TESTING)
187
  ADD_SUBDIRECTORY(Testing/Cxx)
188
189
ENDIF(BUILD_TESTING)

190
# wrapping for python
191
192
193
194
195
196
if(VTK_WRAP_PYTHON_SIP)

  #### wrap vtkObject derived classes with the VTK python wrapper generator
  # list header files here for wrapping
  set(QVTK_PythonHeaders
    QVTKInteractor.h
197
    vtkEventQtSlotConnect.h
198
199
200
201
    vtkQtSQLDatabase.h
    vtkQtSQLQuery.h
    vtkQtTimePointUtility.h
    )
202
203
204
205
206
207
208
209
210
211
212
213
  if(VTK_USE_VIEWS)
    set(QVTK_PythonHeaders ${QVTK_PythonHeaders}
      vtkQtAnnotationView.h
      vtkQtListView.h
      vtkQtRecordView.h
      vtkQtTableRepresentation.h
      vtkQtTableView.h
      vtkQtTreeView.h
      vtkQtView.h
      )
  endif(VTK_USE_VIEWS)

214
215
216
217
218
219
220
221
222
223
  if(VTK_USE_QTCHARTS)
    set(QVTK_PythonHeaders ${QVTK_PythonHeaders}
      vtkQtBarChartView.h
      vtkQtChartRepresentation.h
      vtkQtChartView.h
      vtkQtLineChartView.h
      vtkQtStackedChartView.h
      vtkQtStatisticalBoxChartView.h
      )
  endif()
224
  IF(VTK_USE_VIEWS AND VTK_QT_USE_WEBKIT)
225
226
227
    set(QVTK_PythonHeaders ${QVTK_PythonHeaders}
    vtkQtRichTextView.h
    )
228
  ENDIF(VTK_USE_VIEWS AND VTK_QT_USE_WEBKIT)
229

230
231
232
233
234
235
  # GUISupport/Qt doesn't have a hierarchy file, use Rendering
  IF(VTK_IGNORE_BTX)
  SET(KIT_HIERARCHY_FILE
      ${VTK_BINARY_DIR}/Rendering/vtkRenderingHierarchy.txt)
  ENDIF(VTK_IGNORE_BTX)

236
  VTK_WRAP_PYTHON3(vtkQtPython QVTK_PythonSrcs "${QVTK_PythonHeaders}")
David Partyka's avatar
David Partyka committed
237
  VTK_ADD_LIBRARY(vtkQtPythonD ${QVTK_PythonSrcs})
238
239
240
241
242
  TARGET_LINK_LIBRARIES(vtkQtPythonD QVTK)
  IF(VTK_USE_VIEWS)
    TARGET_LINK_LIBRARIES(vtkQtPythonD vtkViewsPythonD)
  ENDIF(VTK_USE_VIEWS)
  TARGET_LINK_LIBRARIES(vtkQtPythonD vtkRenderingPythonD vtkPythonCore)
243
244
245

  PYTHON_ADD_MODULE(vtkQtPython vtkQtPythonInit.cxx)
  TARGET_LINK_LIBRARIES(vtkQtPython vtkQtPythonD)
246

247
248
249
250
251
  #### wrap QObject derived classes with SIP
  # list .sip files here for wrapping
  set(SIP_FILES
    QVTKWidget.sip
    QVTKInteractor.sip
252
253
254
255
256
    QVTKInteractorAdapter.sip
    vtkQtAbstractModelAdapter.sip
    vtkQtAnnotationLayersModelAdapter.sip
    vtkQtTableModelAdapter.sip
    vtkQtTreeModelAdapter.sip
257
    )
258
259
260
261
  if(VTK_USE_QVTK_QTOPENGL)
    set(SIP_FILES
      ${SIP_FILES}
      QVTKWidget2.sip
262
      QVTKGraphicsItem.sip
263
264
      )
  endif(VTK_USE_QVTK_QTOPENGL)
265

266
  # auto generate the module .sip file from the list of .sip files above
267
268
  set(SIP_MODULE QVTKPython)
  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${SIP_MODULE}.sip.in
269
    "%Module vtk.${SIP_MODULE} 0\n\n")
270
271
272
273
274
275
276
277
278
279
280
281
282
283

  set(SIP_OUT)
  foreach(f ${SIP_FILES})
    file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/${SIP_MODULE}.sip.in "%Include ${f}\n")
    get_filename_component(f1 "${f}" NAME_WE)
    set(SIP_OUT ${SIP_OUT} ${CMAKE_CURRENT_BINARY_DIR}/sip${SIP_MODULE}${f1}.cpp)
  endforeach(f ${SIP_FILES})

  set(MODULE_SIP_FILE ${CMAKE_CURRENT_BINARY_DIR}/${SIP_MODULE}.sip)
  configure_file(${CMAKE_CURRENT_BINARY_DIR}/${SIP_MODULE}.sip.in ${MODULE_SIP_FILE} COPY_ONLY)

  set(SIP_OUT ${SIP_OUT} ${CMAKE_CURRENT_BINARY_DIR}/sip${SIP_MODULE}cmodule.cpp)
  set(SIP_FILES ${SIP_FILES} ${MODULE_SIP_FILE})

284
  # find .sip files for Qt
285
  find_path(SIP_PYQT_DIR NAMES QtCore/QtCoremod.sip
286
    PATHS ${PYTHON_INCLUDE_PATH}/../Lib/site-packages/PyQt4/sip/PyQt4
287
          ${PYTHON_INCLUDE_PATH}/../sip/PyQt4
288
289
          ${PYTHON_INCLUDE_PATH}/../Versions/2.5/share/sip/PyQt4
          ${PYTHON_INCLUDE_PATH}/../share/sip/PyQt4
290
291
          /usr/share/sip/PyQt4
          /usr/local/share/sip/PyQt4
292
293
294
    DOC "Root directory containing all PyQt4 sip files."
    )

295
  # build command args for sip
296
297
298
299
300
  if(Q_WS_X11)
    set(SIP_FLAGS ${SIP_FLAGS} -t WS_X11)
  elseif(Q_WS_WIN)
    set(SIP_FLAGS ${SIP_FLAGS} -t WS_WIN)
  elseif(Q_WS_MAC)
Clinton Stimpson's avatar
Clinton Stimpson committed
301
    set(SIP_FLAGS ${SIP_FLAGS} -t WS_MACX)
302
  endif()
303
  set(SIP_FLAGS ${SIP_FLAGS} -t Qt_${QT_VERSION_MAJOR}_${QT_VERSION_MINOR}_0)
304
305
306
307
  set(SIP_FLAGS ${SIP_FLAGS}
    -I ${SIP_PYQT_DIR}
    -I ${CMAKE_CURRENT_SOURCE_DIR}
    -I ${VTK_BINARY_DIR}/Rendering
308
    -I ${VTK_BINARY_DIR}/Filtering
309
    -I ${VTK_BINARY_DIR}/Common
310
    )
311
312
313
314
315
  IF(VTK_USE_VIEWS)
    set(SIP_FLAGS ${SIP_FLAGS}
      -I ${VTK_BINARY_DIR}/Views
      )
  ENDIF(VTK_USE_VIEWS)
316

317
  # call sip on our files
318
319
  add_custom_command(
    OUTPUT ${SIP_OUT}
320
    COMMAND ${SIP_EXECUTABLE}
321
322
323
324
    ARGS -c "${CMAKE_CURRENT_BINARY_DIR}" ${SIP_FLAGS} ${MODULE_SIP_FILE}
    DEPENDS ${SIP_FILES}
    )

325
  # create the sip module
326
  include_directories(${SIP_INCLUDE_DIR})
327
  include_directories("${PYTHON_INCLUDE_PATH}")
David Partyka's avatar
David Partyka committed
328
  VTK_ADD_LIBRARY(${SIP_MODULE} MODULE ${SIP_OUT} ${SIP_FILES})
329
330
331
332
333
  target_link_libraries(${SIP_MODULE} QVTK vtkRenderingPythonD)
  set_target_properties(${SIP_MODULE} PROPERTIES PREFIX "")
  IF(WIN32 AND NOT CYGWIN)
    SET_TARGET_PROPERTIES(${SIP_MODULE} PROPERTIES SUFFIX ".pyd")
  ENDIF(WIN32 AND NOT CYGWIN)
334
335
336
337
  get_target_property(lib_loc ${SIP_MODULE} LOCATION)
  add_custom_command(TARGET ${SIP_MODULE} POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy "${lib_loc}" "${VTK_BINARY_DIR}/Wrapping/Python/vtk/"
    )
338

339
340
341

  SET_TARGET_PROPERTIES(vtkQtPython QVTKPython PROPERTIES SKIP_BUILD_RPATH 1)

342
  IF(NOT VTK_INSTALL_NO_LIBRARIES)
343
    INSTALL(TARGETS vtkQtPythonD
David Partyka's avatar
David Partyka committed
344
      EXPORT ${VTK_INSTALL_EXPORT_NAME}
345
346
347
      RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
      LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
      ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
348
349
    IF(VTK_INSTALL_PYTHON_USING_CMAKE)
      INSTALL(TARGETS vtkQtPython QVTKPython
David Partyka's avatar
David Partyka committed
350
        EXPORT ${VTK_INSTALL_EXPORT_NAME}
351
352
353
354
        RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
        LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
        ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
    ENDIF(VTK_INSTALL_PYTHON_USING_CMAKE)
355
356
357
358
359
360
361
362
  ENDIF(NOT VTK_INSTALL_NO_LIBRARIES)

  IF(BUILD_TESTING)
    ADD_SUBDIRECTORY(Testing/Python)
  ENDIF(BUILD_TESTING)

endif(VTK_WRAP_PYTHON_SIP)

363
364
365
366
367

# Configure the VTKConfigQt.cmake support file.
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/VTKConfigQt.cmake.in
               ${VTK_BINARY_DIR}/VTKConfigQt.cmake @ONLY IMMEDIATE)

368
# build plugin
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
IF(BUILD_SHARED_LIBS)
  SET ( PluginLibSrcs
        Q4VTKWidgetPlugin.cxx
        )

  SET ( PluginMocHeaders
        Q4VTKWidgetPlugin.h
        )

  ADD_DEFINITIONS(-DQT_PLUGIN)
  INCLUDE_DIRECTORIES(${QT_QTDESIGNER_INCLUDE_DIR})
  QT4_WRAP_CPP ( PluginMocSrcs ${PluginMocHeaders} )

  # add QVTK plugin from sources
  # stand-alone as it doesn't depend on QVTK library
David Partyka's avatar
David Partyka committed
384
  VTK_ADD_LIBRARY ( QVTKWidgetPlugin
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
    SHARED
    ${PluginLibSrcs}
    ${PluginMocSrcs}
  )

  SET_TARGET_PROPERTIES(QVTKWidgetPlugin PROPERTIES COMPILE_DEFINITIONS QT_NO_DEBUG)

  # link with Qt libs
  TARGET_LINK_LIBRARIES( QVTKWidgetPlugin
    ${QT_QTGUI_LIBRARY}
    ${QT_QTCORE_LIBRARY}
  )

  # install rules

  # The VTK_INSTALL_QT_PLUGIN_DIR variable sets the location
  # in which the Qt plugin will be installed.  It may or may not contain
  # variable references to CMAKE_INSTALL_PREFIX and VTK_INSTALL_QT_DIR.
  # The default is to install to VTK_INSTALL_QT_DIR under the installation
  # prefix.  The default VTK_INSTALL_QT_DIR will allow the designer plugin
  # path to be set to vtk-install-prefix/plugins to get the plugin.
  IF(NOT VTK_INSTALL_QT_DIR)
    SET(VTK_INSTALL_QT_DIR /plugins/designer)
  ENDIF(NOT VTK_INSTALL_QT_DIR)

  # If no runtime is to be installed then do not install the qt plugin.
  IF(VTK_INSTALL_NO_RUNTIME)
    SET(VTK_INSTALL_NO_QT_PLUGIN 1)
  ENDIF(VTK_INSTALL_NO_RUNTIME)

  IF(NOT VTK_INSTALL_NO_QT_PLUGIN)
    # Set default plugin install directory.
    SET(DOLLAR "$")
    IF(DEFINED VTK_INSTALL_QT_PLUGIN_DIR)
    ELSE(DEFINED VTK_INSTALL_QT_PLUGIN_DIR)
      SET(VTK_INSTALL_QT_PLUGIN_DIR "${DOLLAR}{CMAKE_INSTALL_PREFIX}${DOLLAR}{VTK_INSTALL_QT_DIR}"
        CACHE STRING "Directory in which the VTK Qt plugin is placed during installation.")
      MARK_AS_ADVANCED(VTK_INSTALL_QT_PLUGIN_DIR)
    ENDIF(DEFINED VTK_INSTALL_QT_PLUGIN_DIR)

    # Configure the plugin install script.  This is used instead of
    # INSTALL TARGETS to allow the plugin to be installed outside the
    # main install prefix.  Attach the script as a post-install script.
    CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/PluginInstall.cmake.in
                   ${CMAKE_CURRENT_BINARY_DIR}/PluginInstall.cmake
                   @ONLY IMMEDIATE)
    SET_TARGET_PROPERTIES(QVTK PROPERTIES POST_INSTALL_SCRIPT
      ${CMAKE_CURRENT_BINARY_DIR}/PluginInstall.cmake
433
      )
434
435
  ENDIF(NOT VTK_INSTALL_NO_QT_PLUGIN)
ENDIF(BUILD_SHARED_LIBS)
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453

IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
  INSTALL(FILES
    ${QVTKMocHeaders}
    ${QVTKNonMocHeaders}
    DESTINATION ${VTK_INSTALL_INCLUDE_DIR_CM24}
    COMPONENT Development
    )

  INSTALL(FILES
    "${VTK_BINARY_DIR}/VTKConfigQt.cmake"
    DESTINATION ${VTK_INSTALL_PACKAGE_DIR_CM24}
    COMPONENT Development
    )
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)

IF(NOT VTK_INSTALL_NO_LIBRARIES)
  INSTALL(TARGETS QVTK
David Partyka's avatar
David Partyka committed
454
    EXPORT ${VTK_INSTALL_EXPORT_NAME}
455
456
457
458
459
460
461
    RUNTIME DESTINATION ${VTK_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
    LIBRARY DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT RuntimeLibraries
    ARCHIVE DESTINATION ${VTK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
ENDIF(NOT VTK_INSTALL_NO_LIBRARIES)

CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.ctest.in"
  "${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.ctest" @ONLY IMMEDIATE)