File: CMakeLists.txt

package info (click to toggle)
paraview 5.1.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 221,108 kB
  • ctags: 236,092
  • sloc: cpp: 2,416,026; ansic: 190,891; python: 99,856; xml: 81,001; tcl: 46,915; yacc: 5,039; java: 4,413; perl: 3,108; sh: 1,974; lex: 1,926; f90: 748; asm: 471; pascal: 228; makefile: 198; objc: 83; fortran: 31
file content (146 lines) | stat: -rw-r--r-- 5,868 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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
136
137
138
139
140
141
142
143
144
145
146
INCLUDE_DIRECTORIES(
  ${ParaView_SOURCE_DIR}/VTK/Common/Testing/Cxx/
  ${ParaView_SOURCE_DIR}/VTK/Rendering/Testing/Cxx/
  )

set(vtk-module VTKExtensions)
set(${vtk-module}_TEST_LABELS PARAVIEW)

vtk_add_test_cxx(${vtk-modules}ServerFilterTests tests
  NO_VALID NO_OUTPUT
  ParaViewCoreVTKExtensionsPrintSelf.cxx,NO_DATA
  TestExtractHistogram.cxx,NO_DATA
  TestExtractScatterPlot.cxx,NO_DATA
  TestTilesHelper.cxx,NO_DATA
  TestSortingTable.cxx,NO_DATA
  TestContinuousClose3D.cxx
  TestPVFilters.cxx
  TestSpyPlotTracers.cxx
  TestPVAMRDualContour.cxx
  )
vtk_test_cxx_executable(${vtk-modules}ServerFilterTests tests)
target_link_libraries(${vtk-modules}ServerFilterTests
  vtkPVVTKExtensions
  vtkImagingMorphological
  vtkInteractionImage)

set (_MPI_TEST_PATH ${CXX_TEST_PATH})
# CMAKE_CONFIGURATION_TYPES is set for generators that support multiple
# configurations e.g. Visual Studio. In that case we update the _MPI_TEST_PATH to
# include the configuration type (CTEST_CONFIGURATION_TYPE)
  if (CMAKE_CONFIGURATION_TYPES)
set (_MPI_TEST_PATH ${CXX_TEST_PATH}/\${CTEST_CONFIGURATION_TYPE})
endif ()


IF(PARAVIEW_USE_ICE_T AND PARAVIEW_USE_MPI)
  ADD_EXECUTABLE(TestIceTCompositePass TestIceTCompositePass.cxx)
  TARGET_LINK_LIBRARIES(TestIceTCompositePass vtkPVVTKExtensions)

  ExternalData_add_test(ParaViewData
    NAME    TestIceTCompositePassWithBlurAndOrderedCompositing
    COMMAND TestIceTCompositePassWithBlurAndOrderedCompositing
            ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
            ${_MPI_TEST_PATH}/TestIceTCompositePass
            --tdx 2
            --blur
            --use-ordered-compositing
            --use-depth-peeling
            -D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
            -T ${PARAVIEW_TEST_OUTPUT_DIR}
            -V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassWithBlurAndOrderedCompositing.png}
            ${VTK_MPI_POSTFLAGS})

  ExternalData_add_test(ParaViewData
    NAME    TestIceTCompositePassWithSobel
    COMMAND TestIceTCompositePassWithSobel
            ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
            ${_MPI_TEST_PATH}/TestIceTCompositePass
            --sobel
            -D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
            -T ${PARAVIEW_TEST_OUTPUT_DIR}
            -V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassWithSobel.png}
            ${VTK_MPI_POSTFLAGS})

  ExternalData_add_test(ParaViewData
    NAME    TestIceTCompositePassDepthOnly
    COMMAND TestIceTCompositePassDepthOnly
            ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
            ${_MPI_TEST_PATH}/TestIceTCompositePass
            --tdx 2
            --depth-only
            -D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
            -T ${PARAVIEW_TEST_OUTPUT_DIR}
            -V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTCompositePassDepthOnly.png}
            ${VTK_MPI_POSTFLAGS})

  ADD_EXECUTABLE(TestSimpleIceTCompositePass TestSimpleIceTCompositePass.cxx)
  TARGET_LINK_LIBRARIES(TestSimpleIceTCompositePass vtkPVVTKExtensions)

  ExternalData_add_test(ParaViewData
    NAME    TestSimpleIceTCompositePass
    COMMAND TestSimpleIceTCompositePass
            ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
            ${_MPI_TEST_PATH}/TestSimpleIceTCompositePass
            -D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
            -T ${PARAVIEW_TEST_OUTPUT_DIR}
            -V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestSimpleIceTCompositePass.png}
            ${VTK_MPI_POSTFLAGS})

  ADD_EXECUTABLE(TestIceTShadowMapPass TestIceTShadowMapPass.cxx)
  TARGET_LINK_LIBRARIES(TestIceTShadowMapPass vtkPVVTKExtensions)

  ExternalData_add_test(ParaViewData
    NAME    TestIceTShadowMapPass-image
    COMMAND TestIceTShadowMapPass-image
            ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
            ${_MPI_TEST_PATH}/TestIceTShadowMapPass
            --tdx 2
            -D ${PARAVIEW_TEST_OUTPUT_DATA_DIR}
            -T ${PARAVIEW_TEST_OUTPUT_DIR}
            -V DATA{${PARAVIEW_TEST_BASELINE_DIR}/TestIceTShadowMapPass.png}
            ${VTK_MPI_POSTFLAGS})

  set_tests_properties(
    TestIceTCompositePassWithBlurAndOrderedCompositing
    TestIceTCompositePassWithSobel
    TestIceTCompositePassDepthOnly
    TestSimpleIceTCompositePass
    TestIceTShadowMapPass-image
    PROPERTIES LABELS "PARAVIEW")
ENDIF()


if(Module_vtkRendering${VTK_RENDERING_BACKEND})
  paraview_add_test_cxx(${vtk-module}CxxTests-Rendering tests
    # Enable these after the transfer function can take the vtkTable histograms.
    #TestTransferFunctionEditor
    #TestTransferFunctionEditor2
    TestPVAMRDualClip.cxx
    )
  paraview_test_cxx_executable(${vtk-module}CxxTest-Renderings tests)
  target_link_libraries(${vtk-module}CxxTest-Renderings vtkPVVTKExtensions)
endif()

IF (PARAVIEW_USE_MPI)
    IF (MPI_LIBRARY)
      SET(MPI_LIBRARIES ${MPI_LIBRARY})
    ENDIF ()
    IF (MPI_EXTRA_LIBRARY)
      SET(MPI_LIBRARIES ${MPI_LIBRARIES} "${MPI_EXTRA_LIBRARY}")
    ENDIF ()

    ADD_EXECUTABLE(DistributedSubsetSortingTable DistributedSubsetSortingTable.cxx)
    TARGET_LINK_LIBRARIES(DistributedSubsetSortingTable vtkParallelMPI vtkPVVTKExtensions)

    ExternalData_add_test(ParaViewData
      NAME    TestDistributedSubsetSortingTable
      COMMAND TestDistributedSubsetSortingTable
              ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2 ${VTK_MPI_PREFLAGS}
              ${_MPI_TEST_PATH}/DistributedSubsetSortingTable
              -D ${VTK_TEST_DATA_DIR}
              -T ${PARAVIEW_TEST_OUTPUT_DIR}
              ${VTK_MPI_POSTFLAGS})
    set_tests_properties(
      TestDistributedSubsetSortingTable PROPERTIES LABELS "PARAVIEW")
ENDIF ()