CMakeLists.txt 4.02 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#==========================================================================
#
#     Program: ParaView
#
#     Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
#     All rights reserved.
#
#     ParaView is a free software; you can redistribute it and/or modify it
#     under the terms of the ParaView license version 1.2.
#
#     See License_v1.2.txt for the full ParaView license.
#     A copy of this license can be obtained by contacting
#     Kitware Inc.
#     28 Corporate Drive
#     Clifton Park, NY 12065
#     USA
#
#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
#  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
#  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#==========================================================================
set (Module_SRCS
32
  vtkCompleteArrays.cxx
33
  vtkExtractsDeliveryHelper.cxx
34
35
36
  vtkMPIMToNSocketConnection.cxx
  vtkMPIMToNSocketConnectionPortInformation.cxx
  vtkNetworkAccessManager.cxx
37
  vtkPConvertSelection.cxx
38
39
  vtkProcessModuleAutoMPI.cxx
  vtkProcessModule.cxx
40
41
42
43
44
45
  vtkPVAlgorithmPortsInformation.cxx
  vtkPVArrayInformation.cxx
  vtkPVClassNameInformation.cxx
  vtkPVCompositeDataInformation.cxx
  vtkPVCompositeDataInformationIterator.cxx
  vtkPVDataInformation.cxx
46
  vtkPVDataInformationHelper.cxx
47
48
  vtkPVDataSetAttributesInformation.cxx
  vtkPVDataSizeInformation.cxx
49
50
  vtkPVDisableStackTraceSignalHandler.cxx
  vtkPVEnableStackTraceSignalHandler.cxx
Kyle Lutz's avatar
Kyle Lutz committed
51
  vtkPVExtractSelection.cxx
52
  vtkPVExtractArraysOverTime.cxx
53
  vtkPVFileInformationHelper.cxx
54
55
  vtkPVGenericAttributeInformation.cxx
  vtkPVInformation.cxx
56
  vtkPVMemoryUseInformation.cxx
57
  vtkPVMultiClientsInformation.cxx
58
59
60
61
62
  vtkPVOptions.cxx
  vtkPVOptionsXMLParser.cxx
  vtkPVPlugin.cxx
  vtkPVPluginLoader.cxx
  vtkPVPluginsInformation.cxx
63
  vtkPVPluginTracker.cxx
64
  vtkPVProgressHandler.cxx
65
  vtkPVPythonInformation.cxx
66
  vtkPVPythonModule.cxx
67
  vtkPVPythonOptions.cxx
68
69
70
71
72
  vtkPVPythonPluginInterface.cxx
  vtkPVServerInformation.cxx
  vtkPVServerManagerPluginInterface.cxx
  vtkPVServerOptions.cxx
  vtkPVSession.cxx
73
  vtkPVSILInformation.cxx
74
  vtkPVSystemConfigInformation.cxx
75
  vtkPVSystemInformation.cxx
76
77
78
79
80
  vtkPVTemporalDataInformation.cxx
  vtkPVTimerInformation.cxx
  vtkSession.cxx
  vtkSessionIterator.cxx
  vtkTCPNetworkAccessManager.cxx
81
  vtkEnvironmentAnnotationFilter.cxx
82
83
)

84
85
set(PARAVIEW_PLUGIN_LOADER_PATHS ""
  CACHE STRING "Extra paths to search for plugins")
86
mark_as_advanced(PARAVIEW_PLUGIN_LOADER_PATHS)
87
88
89
90
91
if (PARAVIEW_PLUGIN_LOADER_PATHS)
  set_source_files_properties(vtkPVPluginLoader.cxx
    PROPERTIES
      COMPILE_DEFINITIONS PARAVIEW_PLUGIN_LOADER_PATHS=\"${PARAVIEW_PLUGIN_LOADER_PATHS}\")
endif ()
92

93
94
95
96
97
98
99
100
101
102
103
104
105
106
if (PARAVIEW_WITH_SUPERBUILD_MESA)
  set(pv_options_definitions
    PARAVIEW_WITH_SUPERBUILD_MESA)

  if (PARAVIEW_WITH_SUPERBUILD_MESA_SWR)
    list(APPEND pv_options_definitions
      PARAVIEW_WITH_SUPERBUILD_MESA_SWR)
  endif ()

  set_source_files_properties(vtkPVOptions.cxx
    PROPERTIES
      COMPILE_DEFINITIONS "${pv_options_definitions}")
endif ()

107
108
if (PARAVIEW_ENABLE_PYTHON)
  list(APPEND Module_SRCS
Kyle Lutz's avatar
Kyle Lutz committed
109
    vtkPythonExtractSelection.cxx
110
    vtkPythonProgrammableFilter.cxx
111
    vtkPythonAnnotationFilter.cxx
112
    )
113
endif()
114

115
if(VTK_OPENGL_HAS_EGL)
116
117
118
  set_source_files_properties(
    vtkPVOptions.cxx
    PROPERTIES
119
    COMPILE_DEFINITIONS VTK_OPENGL_HAS_EGL)
120
121
endif()

122
123
124
125
if(PARAVIEW_USE_MPI)
  include(vtkMPI)
endif()

126
vtk_module_library(vtkPVClientServerCoreCore ${Module_SRCS})
127
128
129
if(PARAVIEW_USE_MPI)
  vtk_mpi_link(${vtk-module})
endif()