Commit 400d2ff9 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: use extensions on source properties

Avoids some slow paths in CMake and is more explicit anyways.

Change-Id: I875de45e323a786e32ad7406eb7ac295e3cfb7a6
parent ad703671
set_source_files_properties( set_source_files_properties(
vtkAMRDualGridHelper vtkAMRDualGridHelper.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
set_source_files_properties( set_source_files_properties(
vtkContourHelper vtkContourHelper.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
...@@ -7,10 +7,10 @@ foreach (cmake_file IN LISTS cmake_files) ...@@ -7,10 +7,10 @@ foreach (cmake_file IN LISTS cmake_files)
endforeach () endforeach ()
set_source_files_properties( set_source_files_properties(
# vtkPVContextView # vtkPVContextView.cxx
# vtkPVDataRepresentation # vtkPVDataRepresentation.cxx
# vtkPVSynchronizedRenderWindows # vtkPVSynchronizedRenderWindows.cxx
vtkPVView vtkPVView.cxx
ABSTRACT) ABSTRACT)
#set (${vtk-module}_HDRS vtkStreamingPriorityQueue.h) #set (${vtk-module}_HDRS vtkStreamingPriorityQueue.h)
......
...@@ -13,5 +13,5 @@ foreach (file vtkIceTCompositeZPassShader_fs.glsl) ...@@ -13,5 +13,5 @@ foreach (file vtkIceTCompositeZPassShader_fs.glsl)
VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVVTKExtensionsRenderingModule.h VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVVTKExtensionsRenderingModule.h
) )
list(APPEND Module_SRCS ${res}) list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE) set_source_files_properties(${res} WRAP_EXCLUDE)
endforeach() endforeach()
...@@ -39,13 +39,13 @@ set (Module_SRCS ...@@ -39,13 +39,13 @@ set (Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkCPAdaptorAPI vtkCPAdaptorAPI.cxx
vtkCPPipeline vtkCPPipeline.cxx
ABSTRACT) ABSTRACT)
set_source_files_properties( set_source_files_properties(
CAdaptorAPI CAdaptorAPI.cxx
vtkCPCxxHelper vtkCPCxxHelper.cxx
WRAP_EXCLUDE) WRAP_EXCLUDE)
set (${vtk-module}_HDRS CAdaptorAPI.h) set (${vtk-module}_HDRS CAdaptorAPI.h)
......
...@@ -35,7 +35,7 @@ set (Module_SRCS ...@@ -35,7 +35,7 @@ set (Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkCPPythonAdaptorAPI vtkCPPythonAdaptorAPI.cxx
ABSTRACT) ABSTRACT)
configure_file(vtkCPPythonScriptPipelineConfig.h.in configure_file(vtkCPPythonScriptPipelineConfig.h.in
......
...@@ -18,15 +18,15 @@ SET(TestDriver_SRCS ...@@ -18,15 +18,15 @@ SET(TestDriver_SRCS
) )
SET_SOURCE_FILES_PROPERTIES( SET_SOURCE_FILES_PROPERTIES(
vtkCPBaseFieldBuilder vtkCPBaseFieldBuilder.cxx
vtkCPBaseGridBuilder vtkCPBaseGridBuilder.cxx
vtkCPFieldBuilder vtkCPFieldBuilder.cxx
vtkCPFileGridBuilder vtkCPFileGridBuilder.cxx
vtkCPGridBuilder vtkCPGridBuilder.cxx
vtkCPScalarFieldFunction vtkCPScalarFieldFunction.cxx
vtkCPTensorFieldFunction vtkCPTensorFieldFunction.cxx
vtkCPUnstructuredGridBuilder vtkCPUnstructuredGridBuilder.cxx
vtkCPVector3FieldFunction vtkCPVector3FieldFunction.cxx
ABSTRACT ABSTRACT
) )
......
...@@ -65,15 +65,11 @@ if (PARAVIEW_ENABLE_PYTHON) ...@@ -65,15 +65,11 @@ if (PARAVIEW_ENABLE_PYTHON)
) )
endif() endif()
#set_source_files_properties(
# WRAP_EXCLUDE
#)
set_source_files_properties( set_source_files_properties(
vtkAnimationPlayer vtkAnimationPlayer.cxx
vtkPVAnimationCue vtkPVAnimationCue.cxx
vtkPVCueManipulator vtkPVCueManipulator.cxx
vtkPVKeyFrameAnimationCue vtkPVKeyFrameAnimationCue.cxx
vtkSMAnimationSceneWriter.cxx vtkSMAnimationSceneWriter.cxx
ABSTRACT ABSTRACT
) )
......
...@@ -89,27 +89,27 @@ if (PARAVIEW_ENABLE_PYTHON) ...@@ -89,27 +89,27 @@ if (PARAVIEW_ENABLE_PYTHON)
endif() endif()
set_source_files_properties( set_source_files_properties(
vtkExtractsDeliveryHelper vtkExtractsDeliveryHelper.cxx
vtkProcessModuleAutoMPI vtkProcessModuleAutoMPI.cxx
vtkPVOptionsXMLParser vtkPVOptionsXMLParser.cxx
vtkPVPlugin vtkPVPlugin.cxx
vtkPVPythonPluginInterface vtkPVPythonPluginInterface.cxx
vtkPVServerManagerPluginInterface vtkPVServerManagerPluginInterface.cxx
vtkPVServerOptions vtkPVServerOptions.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
set_source_files_properties( set_source_files_properties(
vtkNetworkAccessManager vtkNetworkAccessManager.cxx
vtkPVDataInformationHelper vtkPVDataInformationHelper.cxx
vtkPVInformation vtkPVInformation.cxx
vtkPVPlugin vtkPVPlugin.cxx
vtkPVPluginTracker vtkPVPluginTracker.cxx
vtkPVPythonPluginInterface vtkPVPythonPluginInterface.cxx
vtkPVServerManagerPluginInterface vtkPVServerManagerPluginInterface.cxx
vtkPVSession vtkPVSession.cxx
vtkSession vtkSession.cxx
ABSTRACT) ABSTRACT)
# Use a custom hints file for this module. # Use a custom hints file for this module.
......
...@@ -44,10 +44,6 @@ if (PARAVIEW_ENABLE_PYTHON) ...@@ -44,10 +44,6 @@ if (PARAVIEW_ENABLE_PYTHON)
) )
endif() endif()
set_source_files_properties(
vtkNetworkAccessManager
ABSTRACT)
vtk_module_library(vtkPVClientServerCoreDefault ${Module_SRCS}) vtk_module_library(vtkPVClientServerCoreDefault ${Module_SRCS})
# for vtkPVFileInformation # for vtkPVFileInformation
......
...@@ -110,19 +110,19 @@ if (PARAVIEW_USE_ICE_T) ...@@ -110,19 +110,19 @@ if (PARAVIEW_USE_ICE_T)
endif() endif()
set_source_files_properties( set_source_files_properties(
vtkCacheSizeKeeper vtkCacheSizeKeeper.cxx
# No need to wrap vtkPExtentTranslator, its an internal class. # No need to wrap vtkPExtentTranslator, its an internal class.
vtkPExtentTranslator vtkPExtentTranslator.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
set_source_files_properties( set_source_files_properties(
vtkCacheSizeKeeper vtkCacheSizeKeeper.cxx
vtkPVContextView vtkPVContextView.cxx
vtkPVDataRepresentation vtkPVDataRepresentation.cxx
vtkPVSynchronizedRenderWindows vtkPVSynchronizedRenderWindows.cxx
vtkPVView vtkPVView.cxx
ABSTRACT) ABSTRACT)
set (${vtk-module}_HDRS vtkStreamingPriorityQueue.h) set (${vtk-module}_HDRS vtkStreamingPriorityQueue.h)
......
...@@ -47,11 +47,11 @@ set(Module_SRCS ...@@ -47,11 +47,11 @@ set(Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkClientServerInterpreterInitializer vtkClientServerInterpreterInitializer.cxx
WRAP_EXCLUDE) WRAP_EXCLUDE)
set_source_files_properties( set_source_files_properties(
vtkClientServerInterpreterInitializer vtkClientServerInterpreterInitializer.cxx
ABSTRACT) ABSTRACT)
vtk_module_library(vtkPVCommon ${Module_SRCS}) vtk_module_library(vtkPVCommon ${Module_SRCS})
...@@ -63,7 +63,7 @@ set (Module_SRCS ...@@ -63,7 +63,7 @@ set (Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkSMMessage vtkSMMessage.cxx
WRAP_EXCLUDE) WRAP_EXCLUDE)
set_source_files_properties( set_source_files_properties(
......
...@@ -129,25 +129,25 @@ set (Module_SRCS ...@@ -129,25 +129,25 @@ set (Module_SRCS
) )
SET_SOURCE_FILES_PROPERTIES( SET_SOURCE_FILES_PROPERTIES(
vtkSMDeserializer vtkSMDeserializer.cxx
vtkSMDomain vtkSMDomain.cxx
vtkSMLink vtkSMLink.cxx
vtkSMPropertyHelper vtkSMPropertyHelper.cxx
vtkSMProxyManager # since New() is protected. vtkSMProxyManager.cxx # since New() is protected.
vtkSMRangeDomainTemplate vtkSMRangeDomainTemplate.txx
vtkSMRemoteObject vtkSMRemoteObject.cxx
vtkSMSession vtkSMSession.cxx
vtkSMSessionProxyManager # since New() is non-standard. vtkSMSessionProxyManager.cxx # since New() is non-standard.
vtkSMUncheckedPropertyHelper vtkSMUncheckedPropertyHelper.cxx
vtkSMUndoElement vtkSMUndoElement.cxx
vtkSMVectorProperty vtkSMVectorProperty.cxx
ABSTRACT ABSTRACT
) )
SET_SOURCE_FILES_PROPERTIES( SET_SOURCE_FILES_PROPERTIES(
vtkSMPropertyHelper vtkSMPropertyHelper.cxx
vtkSMRangeDomainTemplate vtkSMRangeDomainTemplate.txx
vtkSMUncheckedPropertyHelper vtkSMUncheckedPropertyHelper.cxx
WRAP_EXCLUDE) WRAP_EXCLUDE)
vtk_module_library(vtkPVServerManagerCore ${Module_SRCS}) vtk_module_library(vtkPVServerManagerCore ${Module_SRCS})
...@@ -77,7 +77,7 @@ list(APPEND Module_SRCS ...@@ -77,7 +77,7 @@ list(APPEND Module_SRCS
vtkSMParaViewPipelineControllerWithRendering.cxx vtkSMParaViewPipelineControllerWithRendering.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx) ${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE) set_source_files_properties(${vtk-module}ObjectFactory.cxx WRAP_EXCLUDE)
# Override some rendering classes. Create object factory: # Override some rendering classes. Create object factory:
set(vtk_module_overrides "vtkSMParaViewPipelineController") set(vtk_module_overrides "vtkSMParaViewPipelineController")
......
...@@ -33,7 +33,7 @@ set (Module_SRCS ...@@ -33,7 +33,7 @@ set (Module_SRCS
) )
SET_SOURCE_FILES_PROPERTIES( SET_SOURCE_FILES_PROPERTIES(
vtkInitializationHelper vtkInitializationHelper.cxx
ABSTRACT ABSTRACT
) )
......
...@@ -46,15 +46,15 @@ set(Module_SRCS ...@@ -46,15 +46,15 @@ set(Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkCommunicationErrorCatcher vtkCommunicationErrorCatcher.cxx
vtkMultiProcessControllerHelper vtkMultiProcessControllerHelper.cxx
vtkPVInformationKeys vtkPVInformationKeys.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
set_source_files_properties( set_source_files_properties(
vtkCommunicationErrorCatcher vtkCommunicationErrorCatcher.cxx
vtkUndoElement vtkUndoElement.cxx
ABSTRACT) ABSTRACT)
vtk_module_library(vtkPVVTKExtensionsCore ${Module_SRCS}) vtk_module_library(vtkPVVTKExtensionsCore ${Module_SRCS})
...@@ -149,32 +149,32 @@ set(Module_SRCS ...@@ -149,32 +149,32 @@ set(Module_SRCS
) )
set_source_files_properties( set_source_files_properties(
vtkAMRDualGridHelper vtkAMRDualGridHelper.cxx
vtkMaterialInterfaceCommBuffer vtkMaterialInterfaceCommBuffer.cxx
vtkMaterialInterfaceIdList vtkMaterialInterfaceIdList.cxx
vtkMaterialInterfacePieceLoading vtkMaterialInterfacePieceLoading.cxx
vtkMaterialInterfacePieceTransaction vtkMaterialInterfacePieceTransaction.cxx
vtkMaterialInterfacePieceTransactionMatrix vtkMaterialInterfacePieceTransactionMatrix.cxx
vtkMaterialInterfaceProcessLoading vtkMaterialInterfaceProcessLoading.cxx
vtkMaterialInterfaceProcessRing vtkMaterialInterfaceProcessRing.cxx
vtkMaterialInterfaceToProcMap vtkMaterialInterfaceToProcMap.cxx
vtkPVPlotTime vtkPVPlotTime.cxx
vtkSpyPlotBlock vtkSpyPlotBlock.cxx
vtkSpyPlotBlockIterator vtkSpyPlotBlockIterator.cxx
vtkSpyPlotIStream vtkSpyPlotIStream.cxx
vtkSpyPlotReaderMap vtkSpyPlotReaderMap.cxx
vtkSpyPlotUniReader vtkSpyPlotUniReader.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
set_source_files_properties( set_source_files_properties(
vtkCellIntegrator vtkCellIntegrator.cxx
vtkPEnSightReader vtkPEnSightReader.cxx
vtkSciVizStatistics vtkSciVizStatistics.cxx
vtkTransferFunctionEditorRepresentation vtkTransferFunctionEditorRepresentation.cxx
vtkTransferFunctionEditorRepresentation1D vtkTransferFunctionEditorRepresentation1D.cxx
vtkTransferFunctionEditorWidget vtkTransferFunctionEditorWidget.cxx
vtkTransferFunctionEditorWidget1D vtkTransferFunctionEditorWidget1D.cxx
ABSTRACT) ABSTRACT)
# Use a custom hints file for this module. # Use a custom hints file for this module.
......
...@@ -103,9 +103,6 @@ if (PARAVIEW_USE_MPI) ...@@ -103,9 +103,6 @@ if (PARAVIEW_USE_MPI)
endif() endif()
endif() endif()
#set_source_files_properties(
# WRAP_EXCLUDE
# )
if (PARAVIEW_QT_VERSION VERSION_GREATER "4") if (PARAVIEW_QT_VERSION VERSION_GREATER "4")
include_directories(${Qt5Core_INCLUDE_DIRS}) include_directories(${Qt5Core_INCLUDE_DIRS})
else () else ()
...@@ -113,10 +110,10 @@ else () ...@@ -113,10 +110,10 @@ else ()
endif () endif ()
set_source_files_properties( set_source_files_properties(
vtkCameraManipulatorGUIHelper vtkCameraManipulatorGUIHelper.cxx
vtkImageCompressor vtkImageCompressor.cxx
vtkPVJoystickFly vtkPVJoystickFly.cxx
vtkPVRenderViewProxy vtkPVRenderViewProxy.cxx
ABSTRACT) ABSTRACT)
#--------------------------------------------------------- #---------------------------------------------------------
...@@ -135,7 +132,7 @@ foreach (file vtkIceTCompositeZPassShader_fs.glsl) ...@@ -135,7 +132,7 @@ foreach (file vtkIceTCompositeZPassShader_fs.glsl)
VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVVTKExtensionsRenderingModule.h VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVVTKExtensionsRenderingModule.h
) )
list(APPEND Module_SRCS ${res}) list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE) set_source_files_properties(${res} WRAP_EXCLUDE)
endforeach() endforeach()
#--------------------------------------------------------- #---------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment