CMakeLists.txt 21.9 KB
Newer Older
1 2
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)

3 4 5 6 7
FOREACH(policy CMP0012 CMP0013 CMP0014)
  IF(POLICY ${policy})
    CMAKE_POLICY(SET ${policy} NEW)
  ENDIF()
ENDFOREACH()
8

9
PROJECT(ParaView)
10

11
IF(CMAKE_CROSSCOMPILING)
12
  FIND_PACKAGE(ParaView3CompileTools REQUIRED)
13 14
ENDIF(CMAKE_CROSSCOMPILING)

15
SET(EXPORT_EXECUTABLES_FILE "${CMAKE_BINARY_DIR}/ParaView3CompileToolsConfig.cmake")
16
SET(EXPORT_EXECUTABLES_NAMESPACE "")
17
FILE(WRITE "${EXPORT_EXECUTABLES_FILE}" "#generated by Paraview, do not edit\n")
18 19
ADD_CUSTOM_TARGET(pvHostTools)
SET(COMPILE_TOOLS_TARGET pvHostTools)
20

21 22
GET_PROPERTY(PV_TARGET_SUPPORTS_SHARED_LIBS
  GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
23

24 25 26 27 28
#########################################################################
# PARAVIEW_PLUGINLIST is used to generate the config file distributed with
# ParaView that lists the plugins distributed with ParaView.
SET(PARAVIEW_PLUGINLIST "" CACHE INTERNAL "List of configured plugins" FORCE)

29 30 31 32 33 34 35 36 37 38 39 40 41
#########################################################################
# Warn about ParaQ
SET(PARAVIEW_WARN_ABOUT_PARAQ)
IF(EXISTS "${ParaView_SOURCE_DIR}/CVS/Root")
  FILE(READ "${ParaView_SOURCE_DIR}/CVS/Root" paraview_cvs_root)
  IF("${paraview_cvs_root}" MATCHES ParaQ)
    SET(PARAVIEW_WARN_ABOUT_PARAQ 1)
  ENDIF("${paraview_cvs_root}" MATCHES ParaQ)
ENDIF(EXISTS "${ParaView_SOURCE_DIR}/CVS/Root")
IF("${ParaView_SOURCE_DIR}" MATCHES "ParaQ")
  SET(PARAVIEW_WARN_ABOUT_PARAQ 1)
ENDIF("${ParaView_SOURCE_DIR}" MATCHES "ParaQ")
IF(PARAVIEW_WARN_ABOUT_PARAQ)
42
  MESSAGE(SEND_ERROR "ParaView 3 should be checked out from ParaView3 repository. ParaQ repository is deprecated and will be removed")
43 44
ENDIF(PARAVIEW_WARN_ABOUT_PARAQ)

45 46
#########################################################################
# Disallow in-source build
47
IF("${ParaView_SOURCE_DIR}"  STREQUAL "${ParaView_BINARY_DIR}")
48
  MESSAGE(FATAL_ERROR "ParaView requires an out of source Build. Please create a separate binary directory and run CMake there.")
49
ENDIF("${ParaView_SOURCE_DIR}"  STREQUAL "${ParaView_BINARY_DIR}")
50

51
#########################################################################
Berk Geveci's avatar
Berk Geveci committed
52
SET(PARAVIEW_VERSION_MAJOR 3)
53
SET(PARAVIEW_VERSION_MINOR 9)
Berk Geveci's avatar
Berk Geveci committed
54
SET(PARAVIEW_VERSION_PATCH 0)
55
#SET(PARAVIEW_VERSION_RC)
56 57
SET(PARAVIEW_VERSION "${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}")
SET(PARAVIEW_VERSION_FULL "${PARAVIEW_VERSION}.${PARAVIEW_VERSION_PATCH}")
58 59 60
IF(PARAVIEW_VERSION_RC)
  SET(PARAVIEW_VERSION_FULL "${PARAVIEW_VERSION}.${PARAVIEW_VERSION_PATCH}-RC${PARAVIEW_VERSION_RC}")
ENDIF()
61 62

# See VTK/CMakeLists.txt for an explanation of this default selection.
63
IF(PARAVIEW_VERSION_MINOR MATCHES "[02468]$")
64 65
  # This is a release version.  Default to not use rpath.
  SET(VTK_USE_RPATH_DEFAULT OFF)
66
ELSE(PARAVIEW_VERSION_MINOR MATCHES "[02468]$")
67 68
  # This is a development version.  Default to use rpath.
  SET(VTK_USE_RPATH_DEFAULT ON)
69
ENDIF(PARAVIEW_VERSION_MINOR MATCHES "[02468]$")
70 71

#########################################################################
72
# build VTK/Qt support
73 74
OPTION(PARAVIEW_BUILD_QT_GUI "Build ParaView Qt Client. This requires Qt." ON)
IF (PARAVIEW_BUILD_QT_GUI)
75 76 77 78
  # need to set up Qt stuff here because there are Qt dependencies before
  # CMake traverses the Qt directory (VTK/GUISupport/Qt).
  
  # set vars to build the QVTK library
79
  SET(VTK_USE_GUISUPPORT ON CACHE BOOL "Build VTK with GUI Support" FORCE)
80
  SET(VTK_USE_QT ON CACHE BOOL "Build VTK with Qt Support" FORCE)
81 82
  # ParaView requires this minimum version of Qt, and let's do it here before
  # our first call to FindQt4.cmake
83
  SET(QT_MIN_VERSION "4.5.0")
84
  SET(QT_OFFICIAL_VERSION "4.6")
85
  SET(QT_REQUIRED TRUE)
86
  FIND_PACKAGE(Qt4)
87 88 89
  IF(NOT QT4_FOUND)
    MESSAGE(SEND_ERROR "Qt ${QT_MIN_VERSION} or greater not found.  Please check the QT_QMAKE_EXECUTABLE variable.")
  ELSE(NOT QT4_FOUND)
90
    # don't go greater than supported version
91 92 93 94
    STRING(REGEX MATCH "^4\\.6\\.[0-9]+" qt_version_46_match "${QTVERSION}")
    IF (NOT qt_version_46_match)
      STRING(REGEX MATCH "^4\\.[0-4]+\\.[0-9]+" qt_version46_x_tmp "${QTVERSION}")
      IF (qt_version46_x_tmp)
95
        MESSAGE(SEND_ERROR "Qt ${QTVERSION} not supported.  Please use ${QT_OFFICIAL_VERSION} (you may need to clean your dirtied cache).")
96 97 98 99
      ELSE (qt_version46_x_tmp)
        MESSAGE(WARNING "Warning: You are using Qt ${QTVERSION}. Officially supported version is Qt ${QT_OFFICIAL_VERSION}")
      ENDIF (qt_version46_x_tmp)
    ENDIF (NOT qt_version_46_match)
100
  ENDIF(NOT QT4_FOUND)
101
ELSE (PARAVIEW_BUILD_QT_GUI)
102
  SET(VTK_USE_QT OFF CACHE BOOL "Build VTK with Qt Support" FORCE)
103
ENDIF (PARAVIEW_BUILD_QT_GUI)
104
# Mark these Qt variables as advanced. Users don't really have to set them.
105
MARK_AS_ADVANCED(VTK_USE_QT VTK_USE_GUISUPPORT)
106
MARK_AS_ADVANCED(QT_MKSPECS_DIR QT_PLUGINS_DIR QT_X11_X11_LIBRARY QT_X11_Xext_LIBRARY QT_X11_m_LIBRARY)
107 108
# these should be all marked as advanced automatically but FindQt4 in cmake ...
MARK_AS_ADVANCED(QT_QTMOTIF_INCLUDE_DIR QT_QTMOTIF_LIBRARY_DEBUG QT_QTMOTIF_LIBRARY_RELEASE QT_HELP_GENERATOR)
109

110 111 112 113
# Mark certain VTK variables as advanced. Users do not really have to set these.
IF (APPLE)
  MARK_AS_ADVANCED(CMAKE_OSX_ARCHITECTURES CMAKE_OSX_SYSROOT VTK_USE_CARBON VTK_USE_COCOA VTK_APPLE_RESOURCE)
ENDIF(APPLE)
Berk Geveci's avatar
Berk Geveci committed
114
MARK_AS_ADVANCED(VTK_USE_MPEG2_ENCODER QT_PLUGINS_DIR QT_MKSPECS_DIR VTK_USE_MFC XDMF_BUILD_UTILS XDMF_USE_BZIP2 XDMF_USE_GZIP QT_QTDESIGNER_INCLUDE_DIR)
115

116 117 118
#########################################################################
# Define a PARAVIEW_USE_MPI that is not advanced
SET(PARAVIEW_USE_MPI OFF CACHE BOOL "Build ParaView with MPI support")
Berk Geveci's avatar
Berk Geveci committed
119
SET(VTK_USE_MPI ${PARAVIEW_USE_MPI} CACHE INTERNAL "Build VTK with MPI support" FORCE)
Berk Geveci's avatar
Berk Geveci committed
120 121 122 123
# define this variable so that VTK_DEPENDENT_OPTION in the VTK 
# CMakeLists.txt does not turn VTK_USE_MPI back to a regular cache
# variable
# set it to PARAVIEW_USE_MPI so that VTK_USE_MPI is slaved to it.
124
SET(VTK_USE_MPI_ISSET ${PARAVIEW_USE_MPI})
125
IF (PARAVIEW_USE_MPI)
126
  FIND_PACKAGE(MPI)
127 128 129 130
  SET(PARAVIEW_USE_MPI_SSEND OFF CACHE BOOL
    "Use MPI synchronous-send commands for communication")
  MARK_AS_ADVANCED(PARAVIEW_USE_MPI_SSEND)
ENDIF (PARAVIEW_USE_MPI)
131

132 133 134 135 136
#########################################################################
# Force Infovis support on
SET(VTK_USE_INFOVIS ON CACHE BOOL "Build VTK with Infovis Support" FORCE)
MARK_AS_ADVANCED(VTK_USE_INFOVIS)

137 138 139 140 141
#########################################################################
# Force Charts support on
SET(VTK_USE_CHARTS ON CACHE BOOL "Build VTK with Charts Support" FORCE)
MARK_AS_ADVANCED(VTK_USE_CHARTS)

142 143 144
#########################################################################
#
MARK_AS_ADVANCED(VTK_USE_N_WAY_ARRAYS)
145
MARK_AS_ADVANCED(VTK_USE_TEXT_ANALYSIS)
146

147
#########################################################################
148
# Configure Testing
149
OPTION(BUILD_TESTING "Build ParaView Testing" ON)
150
IF(BUILD_TESTING)
151 152
  SET(PARAVIEW_TEST_DIR    ${ParaView_BINARY_DIR}/Testing/Temporary)
  MAKE_DIRECTORY(${PARAVIEW_TEST_DIR})
153
  ENABLE_TESTING()
154
  INCLUDE (CTest)
155
ENDIF(BUILD_TESTING)
156

157
#########################################################################
158
# Configure data directory
Andy Cedilnik's avatar
Andy Cedilnik committed
159 160 161
IF(NOT PARAVIEW_DATA_ROOT AND PARAQ_DATA_ROOT)
  SET(PARAVIEW_DATA_ROOT "${PARAQ_DATA_ROOT}")
ENDIF(NOT PARAVIEW_DATA_ROOT AND PARAQ_DATA_ROOT)
162 163 164
FIND_PATH(PARAVIEW_DATA_ROOT ParaViewData.readme
  ${ParaView_SOURCE_DIR}/ParaViewData
  ${ParaView_SOURCE_DIR}/../ParaViewData
165 166
  ${ParaView_SOURCE_DIR}/ParaQData
  ${ParaView_SOURCE_DIR}/../ParaQData
167 168
  $ENV{PARAVIEW_DATA_ROOT}
  )
169

170
#########################################################################
171
# Configure Python
172
OPTION(PARAVIEW_ENABLE_PYTHON "Enable/Disable Python scripting support." OFF)
173

174 175 176 177
# PARAVIEW_TESTING_WITH_PYTHON must be used only when PARAVIEW_ENABLE_PYTHON 
# is ON. If PARAVIEW_ENABLE_PYTHON is OFF, PARAVIEW_TESTING_WITH_PYTHON 
# is ignored and treated as disabled.
OPTION(PARAVIEW_TESTING_WITH_PYTHON 
178 179
    "Build Python Testing support if PARAVIEW_ENABLE_PYTHON is ON"  
    ON)
180 181 182 183 184 185 186
MARK_AS_ADVANCED(PARAVIEW_TESTING_WITH_PYTHON)

IF (PARAVIEW_TESTING_WITH_PYTHON AND PARAVIEW_ENABLE_PYTHON)
  SET (QT_TESTING_WITH_PYTHON ON)
ELSE (PARAVIEW_TESTING_WITH_PYTHON AND PARAVIEW_ENABLE_PYTHON)
  SET (QT_TESTING_WITH_PYTHON OFF)
ENDIF (PARAVIEW_TESTING_WITH_PYTHON AND PARAVIEW_ENABLE_PYTHON)
187

188
IF (PARAVIEW_ENABLE_PYTHON AND PV_TARGET_SUPPORTS_SHARED_LIBS)
189
  SET(BUILD_SHARED_LIBS ON CACHE BOOL "Build ParaView using shared libraries" FORCE)
190
ENDIF (PARAVIEW_ENABLE_PYTHON AND PV_TARGET_SUPPORTS_SHARED_LIBS)
191

192
IF (PARAVIEW_ENABLE_PYTHON)
193 194
  SET(VTK_WRAP_PYTHON ON CACHE INTERNAL "" FORCE)

195 196 197 198
  # ParaView python uses NewInterpretor API, which cannot be used with the
  # python's thread support API (PyGIL*). Hence, we disable all thread support.
  # No mutiple threads in paraview. Sorry.
  SET(VTK_NO_PYTHON_THREADS 1 CACHE INTERNAL "Build VTK with MPI support" FORCE)
199 200
ELSE (PARAVIEW_ENABLE_PYTHON)
  SET(VTK_WRAP_PYTHON OFF CACHE INTERNAL "" FORCE)
201 202
ENDIF (PARAVIEW_ENABLE_PYTHON)

203 204
#########################################################################
# Set the ServerManager test data dir,
205
SET(PVServerManagerTestData ${PARAVIEW_DATA_ROOT})
206

207
# Find hints file for the client/server wrapping
208
FIND_FILE(VTK_WRAP_HINTS hints ${ParaView_SOURCE_DIR}/VTK/Wrapping NO_CMAKE_FIND_ROOT_PATH)
209 210
MARK_AS_ADVANCED(VTK_WRAP_HINTS)

211
#########################################################################
212 213 214 215
# Any build configured headers should be added to this 
# variable so that they also get installed.
SET (dynamicHeaders)

216 217 218 219 220 221 222 223 224
#########################################################################
#
# add directories
#
#########################################################################

#########################################################################
# Include the file that most of the environment setup (except GUI)
# It also adds the VTK directories
225 226
SET(VTK_MAKE_INSTANTIATOR       "${ParaView_SOURCE_DIR}/VTK/CMake")
SET(VTKCS_CONFIG_DIR            "${ParaView_SOURCE_DIR}/Utilities/VTKClientServer/CMake")
227

228 229
SET(ParaView_CMAKE_DIR "${ParaView_SOURCE_DIR}/CMake")
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ParaView_CMAKE_DIR})
230

231 232 233 234
# used in ParaViewPlugins.cmake
SET(ParaView_QT_DIR ${ParaView_SOURCE_DIR}/Qt)
SET(PARAVIEW_QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE})

235 236 237
# Check that the Git submodules have been initialized correctly, and the local
# Git hooks have been installed.
INCLUDE(ParaViewCheckSourceTree)
238

239 240 241 242 243
INCLUDE(ParaViewMacros)
INCLUDE(ParaViewCommon)
INCLUDE(ParaViewPlugins)
INCLUDE(ParaViewBranding)
INCLUDE(ParaViewBrandingCPack)
244

245
#########################################################################
246
IF(BUILD_DOCUMENTATION)
247
  ADD_SUBDIRECTORY(Utilities/Doxygen)
248 249
ENDIF(BUILD_DOCUMENTATION)

250 251 252 253
# Documentation exists as a qch file. -> Don't build it if no Gui.
IF (PARAVIEW_BUILD_QT_GUI)
  ADD_SUBDIRECTORY(Documentation)
ENDIF (PARAVIEW_BUILD_QT_GUI)
254
#########################################################################
255
IF (PARAVIEW_BUILD_QT_GUI)
256
  ADD_SUBDIRECTORY(Qt)
257
ENDIF (PARAVIEW_BUILD_QT_GUI)
258

259 260 261
#########################################################################
OPTION(BUILD_EXAMPLES "Build ParaView examples." OFF)
IF (BUILD_EXAMPLES)
262
  ADD_SUBDIRECTORY(Examples)
263 264
ENDIF (BUILD_EXAMPLES)

265 266 267 268 269
#########################################################################
# Additional definitions for ParaViewConfig.cmake
SET(PARAVIEW_USE_FILE "${ParaView_SOURCE_DIR}/ParaViewUse.cmake")
SET(PARAVIEW_VTK_DIR "${ParaView_BINARY_DIR}/VTK")

270
#SET(PARAVIEW_CMAKE_EXTENSIONS "${ParaView_SOURCE_DIR}/CMake;${ParaView_SOURCE_DIR}/VTK/CMake")
271 272
GET_TARGET_PROPERTY(VTK_WRAP_ClientServer_EXE_CONFIG vtkWrapClientServer LOCATION)

273 274 275
SET(PARAVIEW_LIBRARY_DIRS 
  ${LIBRARY_OUTPUT_PATH} ${PARAVIEW_EXTRA_LINK_DIRECTORIES})

276 277 278
SET(PARAVIEW_GUI_INCLUDE_DIRS ${ParaView_SOURCE_DIR}/VTK/GUISupport/Qt
                              ${ParaView_BINARY_DIR}/VTK/GUISupport/Qt
                              ${ParaView_SOURCE_DIR}/Qt/Widgets
279
                              ${ParaView_BINARY_DIR}/Qt/Widgets
280 281
                              ${ParaView_SOURCE_DIR}/Qt/Chart
                              ${ParaView_BINARY_DIR}/Qt/Chart
282
                              ${ParaView_SOURCE_DIR}/Qt/Core
283
                              ${ParaView_BINARY_DIR}/Qt/Core
284
                              ${ParaView_BINARY_DIR}/Qt/Core/Resources/UI
285
                              ${ParaView_SOURCE_DIR}/Qt/Components
286
                              ${ParaView_BINARY_DIR}/Qt/Components
287
                              ${ParaView_BINARY_DIR}/Qt/Components/Resources/UI
288 289
                              ${ParaView_SOURCE_DIR}/Qt/ApplicationComponents
                              ${ParaView_BINARY_DIR}/Qt/ApplicationComponents
290
                              ${ParaView_BINARY_DIR}/Qt/ApplicationComponents/Resources/UI
291 292
                              ${ParaView_SOURCE_DIR}/Qt/Testing
                              ${ParaView_BINARY_DIR}/Qt/Testing )
293 294 295 296 297 298
IF (PARAVIEW_ENABLE_PYTHON)
  SET (PARAVIEW_GUI_INCLUDE_DIRS ${PARAVIEW_GUI_INCLUDE_DIRS}
                                 ${ParaView_SOURCE_DIR}/Qt/Python
                                 ${ParaView_BINARY_DIR}/Qt/Python)
ENDIF(PARAVIEW_ENABLE_PYTHON)

299 300 301 302
SET(PARAVIEW_KWSYS_INCLUDE_DIRS ${PARAVIEW_INCLUDE_DIRS})
SET(PARAVIEW_SERVER_MANAGER_RESOURCES_DIRECTORY 
  "${ParaView_SOURCE_DIR}/Servers/ServerManager/Resources")

303 304 305 306 307 308 309 310 311 312 313 314 315 316
# Few more variable needed in ParaViewConfig.cmake
# We don't worry about the debug/release configuration directories on windows
# here since when using these variables in tests, ctest handles it as well as
# smTestDriver handles it.
SET(PARAVIEW_BATCH_EXECUTABLE         ${EXECUTABLE_OUTPUT_PATH}/pvbatch${PV_EXE_SUFFIX} )
SET(PARAVIEW_PYTHON_EXECUTABLE        ${EXECUTABLE_OUTPUT_PATH}/pvpython${PV_EXE_SUFFIX} )
SET(PARAVIEW_SERVER_EXECUTABLE        ${EXECUTABLE_OUTPUT_PATH}/pvserver${PV_EXE_SUFFIX} )
SET(PARAVIEW_DATA_SERVER_EXECUTABLE   ${EXECUTABLE_OUTPUT_PATH}/pvdataserver${PV_EXE_SUFFIX} )
SET(PARAVIEW_RENDER_SERVER_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/pvrenderserver${PV_EXE_SUFFIX} )
SET(PARAVIEW_SMTESTDRIVER_EXECUTABLE  ${EXECUTABLE_OUTPUT_PATH}/smTestDriver${PV_EXE_SUFFIX} )

# Since this is used in custom commands etc. we use LOCATION so that the
# release/debug configuration gets considered.
GET_TARGET_PROPERTY(PARAVIEW_PROCESS_XML_EXECUTABLE kwProcessXML LOCATION)
317

318

319
ADD_SUBDIRECTORY(Plugins)
320

321 322 323 324 325 326 327
#########################################################################
IF (PARAVIEW_BUILD_QT_GUI)
  # Applications MUST be configured after plugins, so they can override
  # the plugin configuration when necessary.
  ADD_SUBDIRECTORY(Applications)
ENDIF (PARAVIEW_BUILD_QT_GUI)

328
####################################################################################
329 330 331 332
# The ParaView library dependencies.
SET(PARAVIEW_LIBRARY_DEPENDS_FILE
  "${ParaView_BINARY_DIR}/ParaViewLibraryDepends.cmake")
EXPORT_LIBRARY_DEPENDENCIES(${PARAVIEW_LIBRARY_DEPENDS_FILE})
333

334 335 336 337 338 339 340 341 342 343
#########################################################################
# Configure the CoProcessing library
IF (PARAVIEW_ENABLE_PYTHON)
  OPTION(PARAVIEW_ENABLE_COPROCESSING "Enable/Disable the CoProcessing library." OFF)
  MARK_AS_ADVANCED(PARAVIEW_ENABLE_COPROCESSING)
  IF (PARAVIEW_ENABLE_COPROCESSING)
    ADD_SUBDIRECTORY (CoProcessing)
  ENDIF (PARAVIEW_ENABLE_COPROCESSING)
ENDIF (PARAVIEW_ENABLE_PYTHON) 

344 345 346 347 348 349
# Perform build tree configuration. Install configuration is
# handled below.
CONFIGURE_FILE(
    ${ParaView_SOURCE_DIR}/ParaViewConfig.cmake.in
    ${ParaView_BINARY_DIR}/ParaViewConfig.cmake 
    @ONLY IMMEDIATE)
350 351 352 353 354

CONFIGURE_FILE(
    ${ParaView_SOURCE_DIR}/ParaViewConfigVersion.cmake.in
    ${ParaView_BINARY_DIR}/ParaViewConfigVersion.cmake
    @ONLY IMMEDIATE)
355 356 357
    
# used by the ParaViewConfig file to determine where the parts of the tree are located relative to the ParaViewConfig file.
set(REL_REF "")
358

359 360 361 362 363 364 365 366 367
#######################################################################
# INSTALL
IF (NOT PV_INSTALL_NO_DEVELOPMENT)
  MESSAGE(STATUS "Configuring development install...")

  INSTALL(
      FILES ${dynamicHeaders} 
      DESTINATION ${PV_INSTALL_INCLUDE_DIR}
      COMPONENT Development)
368

369
  SET(cmakeDevFiles
370
      ${ParaView_CMAKE_DIR}/branded_splash.png
371 372
      ${ParaView_SOURCE_DIR}/ParaViewUse.cmake
      ${ParaView_BINARY_DIR}/ParaViewLibraryDepends.cmake
373 374 375 376 377 378 379 380 381
      ${ParaView_CMAKE_DIR}/ParaViewMacros.cmake
      ${ParaView_CMAKE_DIR}/ParaViewPlugins.cmake
      ${ParaView_CMAKE_DIR}/ParaViewBranding.cmake
      ${ParaView_CMAKE_DIR}/ParaViewBrandingCPack.cmake
      ${ParaView_CMAKE_DIR}/pqParaViewPlugin.cxx.in
      ${ParaView_CMAKE_DIR}/pqParaViewPlugin.h.in
      ${ParaView_CMAKE_DIR}/branded_paraview_initializer.cxx.in
      ${ParaView_CMAKE_DIR}/branded_paraview_main.cxx.in
      ${ParaView_CMAKE_DIR}/branded_paraview_initializer.h.in
382
      ${ParaView_CMAKE_DIR}/ParaViewCPackOptions.cmake.in
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
      ${ParaView_CMAKE_DIR}/pv-forward.c.in
      # originaly from Qt/Components
      ${ParaView_CMAKE_DIR}/pqObjectPanelImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqObjectPanelImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqDisplayPanelImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqDisplayPanelImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqViewOptionsImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqViewOptionsImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqActionGroupImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqActionGroupImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqViewFrameActionGroupImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqViewFrameActionGroupImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqDockWindowImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqDockWindowImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqDisplayPanelDecoratorImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqDisplayPanelDecoratorImplementation.cxx.in
399 400
      ${ParaView_CMAKE_DIR}/pq3DWidgetImplementation.h.in
      ${ParaView_CMAKE_DIR}/pq3DWidgetImplementation.cxx.in
401 402 403 404 405 406 407 408 409
      # originaly from Qt/Core
      ${ParaView_CMAKE_DIR}/pqViewModuleImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqViewModuleImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqAutoStartImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqAutoStartImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqGraphLayoutStrategyImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqGraphLayoutStrategyImplementation.cxx.in
      ${ParaView_CMAKE_DIR}/pqTreeLayoutStrategyImplementation.h.in
      ${ParaView_CMAKE_DIR}/pqTreeLayoutStrategyImplementation.cxx.in)
410 411
  INSTALL(
      FILES ${cmakeDevFiles} 
412
      DESTINATION ${PV_INSTALL_CMAKE_DIR}
413
      COMPONENT Development)
414
      
415 416
  # Re-configure for the install.
  SET(SOURCE_TREE                                  ${ParaView_SOURCE_DIR})
417 418 419 420 421 422 423 424 425 426
  SET(BUILD_TREE                                   ${ParaView_BINARY_DIR}) 
  #SET(ParaView_SOURCE_DIR                         "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_INCLUDE_DIR}")
  SET(ParaView_CMAKE_DIR                          "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}")
  SET(ParaView_BINARY_DIR                         "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}")
  SET(PARAVIEW_USE_FILE                           "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}/ParaViewUse.cmake")
  SET(PARAVIEW_VTK_DIR                            "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}")
#  SET(PARAVIEW_CMAKE_EXTENSIONS                   "${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}")
  SET(VTK_WRAP_ClientServer_EXE_CONFIG            "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/vtkWrapClientServer")
  SET(PARAVIEW_INCLUDE_DIRS                       "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_INCLUDE_DIR}")
  SET(ParaView_QT_DIR                             "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_INCLUDE_DIR}/Qt")
427
  SET(PARAVIEW_QT_QMAKE_EXECUTABLE                "")
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
  SET(PARAVIEW_GUI_INCLUDE_DIRS                   "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_INCLUDE_DIR}")
  SET(PARAVIEW_KWSYS_INCLUDE_DIRS                 "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_INCLUDE_DIR}")
  SET(PARAVIEW_LIBRARY_DIRS                       "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}")
  SET(PARAVIEW_GUI_CLIENT_EXECUTABLE              "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/paraview${PV_EXE_SUFFIX}")
  SET(PARAVIEW_BATCH_EXECUTABLE                   "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/pvbatch${PV_EXE_SUFFIX}")
  SET(PARAVIEW_PROCESS_XML_EXECUTABLE             "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/kwProcessXML${PV_EXE_SUFFIX}")
  SET(PARAVIEW_PYTHON_EXECUTABLE                  "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/pvpython${PV_EXE_SUFFIX}")
  SET(PARAVIEW_SERVER_EXECUTABLE                  "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/pvserver${PV_EXE_SUFFIX}")
  SET(PARAVIEW_DATA_SERVER_EXECUTABLE             "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/pvdataserver${PV_EXE_SUFFIX}")
  SET(PARAVIEW_RENDER_SERVER_EXECUTABLE           "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/pvrenderserver${PV_EXE_SUFFIX}")
  SET(PARAVIEW_SMTESTDRIVER_EXECUTABLE            "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_BIN_DIR}/smTestDriver${PV_EXE_SUFFIX}")
  SET(PARAVIEW_SERVER_MANAGER_RESOURCES_DIRECTORY "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR}/Servers/ServerManager/Resources")
  SET(VTKCS_CONFIG_DIR                            "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}")
  SET(PARAVIEW_LIBRARY_DEPENDS_FILE               "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}/ParaViewLibraryDepends.cmake")
  SET(VTK_MAKE_INSTANTIATOR                       "\${ParaView_INSTALL_PREFIX}/${PV_INSTALL_CMAKE_DIR}")
443 444 445 446 447
  
  set(REL_REF)
  IF(NOT WIN32)
    set(REL_REF "/../..")
  ENDIF(NOT WIN32)
448 449 450

  CONFIGURE_FILE(
      "${SOURCE_TREE}/ParaViewConfig.cmake.in"
451
      "${BUILD_TREE}/CMake/tmp/ParaViewConfig.cmake"
452 453
      @ONLY IMMEDIATE)

454 455 456 457
      
  IF(WIN32)
    INSTALL(
        FILES "${BUILD_TREE}/CMake/tmp/ParaViewConfig.cmake"
458
          "${BUILD_TREE}/ParaViewConfigVersion.cmake"
459
        DESTINATION .
460 461 462 463
        COMPONENT Development)
  ELSE(WIN32)
    INSTALL(
        FILES "${BUILD_TREE}/CMake/tmp/ParaViewConfig.cmake"
464
          "${BUILD_TREE}/ParaViewConfigVersion.cmake"
465
        DESTINATION ${PV_INSTALL_LIB_DIR}
466 467
        COMPONENT Development)
  ENDIF(WIN32)
468 469

ENDIF (NOT PV_INSTALL_NO_DEVELOPMENT)
470