diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/CMakeLists.txt b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/CMakeLists.txt index 2b7d1c724b76671b9a263a01cdd229896a9f1df6..a587d33f346e6c2e8c06a899b5280275cd8c0fa0 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/CMakeLists.txt +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/CMakeLists.txt @@ -49,7 +49,7 @@ ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS XML_GROUP sources ) -IF("${PARAVIEW_VERSION_MINOR}" LESS 1) +IF("${PARAVIEW_VERSION_MINOR}" EQUAL 0) ADD_PARAVIEW_PLUGIN( PV4FoamReader_SM "1.0" SERVER_MANAGER_XML PV4FoamReader_SM.xml @@ -59,7 +59,7 @@ IF("${PARAVIEW_VERSION_MINOR}" LESS 1) ${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS} GUI_RESOURCE_FILES PV4FoamReader.xml ) -ELSE("${PARAVIEW_VERSION_MINOR}" LESS 1) +ELSE("${PARAVIEW_VERSION_MINOR}" EQUAL 0) ADD_PARAVIEW_PLUGIN( PV4FoamReader_SM "1.0" SERVER_MANAGER_XML PV4FoamReader_SM.xml @@ -68,7 +68,7 @@ ELSE("${PARAVIEW_VERSION_MINOR}" LESS 1) GUI_SOURCES pqPV4FoamReaderPanel.cxx ${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS} ) -ENDIF("${PARAVIEW_VERSION_MINOR}" LESS 1) +ENDIF("${PARAVIEW_VERSION_MINOR}" EQUAL 0) TARGET_LINK_LIBRARIES( PV4FoamReader_SM diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml index 8c69ea23a596f8611ba976a2196693f28e11e74c..d2856ad46d3e5a2591884552cb21262e64485387 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml @@ -286,7 +286,7 @@ <Property name="UiIncludeSets" show="0"/> <Property name="UiIncludeZones" show="0"/> <ReaderFactory extensions="OpenFOAM" - file_description="OpenFOAM" /> + file_description="OpenFOAM"/> </Hints> diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/CMakeLists.txt b/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/CMakeLists.txt index 4f4a810d5ca936af5a35f121dde9b1a92e05d433..21ee1a3f791f33db87017063157e8c92a149d24b 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/CMakeLists.txt +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/CMakeLists.txt @@ -48,32 +48,26 @@ ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS XML_GROUP sources ) -ADD_PARAVIEW_PLUGIN( - PV4blockMeshReader_SM "1.0" - SERVER_MANAGER_XML PV4blockMeshReader_SM.xml - SERVER_MANAGER_SOURCES vtkPV4blockMeshReader.cxx - GUI_INTERFACES ${IFACES} - GUI_SOURCES pqPV4blockMeshReaderPanel.cxx - ${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS} - GUI_RESOURCE_FILES PV4blockMeshReader.xml -) - - -# # -# # Define the server-side portion of the reader plugin -# # -# ADD_PARAVIEW_PLUGIN(PV4blockMeshReader_SM "1.0" -# SERVER_MANAGER_XML PV4blockMeshReader_SM.xml -# SERVER_MANAGER_SOURCES vtkPV4blockMeshReader.cxx -# ) -# # -# # Define the client-side portion of the reader plugin -# # -# ADD_PARAVIEW_PLUGIN( -# PV4blockMeshReader "1.0" -# GUI_RESOURCES PV4blockMeshReader.qrc -# ) - +IF("${PARAVIEW_VERSION_MINOR}" EQUAL 0) + ADD_PARAVIEW_PLUGIN( + PV4blockMeshReader_SM "1.0" + SERVER_MANAGER_XML PV4blockMeshReader_SM.xml + SERVER_MANAGER_SOURCES vtkPV4blockMeshReader.cxx + GUI_INTERFACES ${IFACES} + GUI_SOURCES pqPV4blockMeshReaderPanel.cxx + ${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS} + GUI_RESOURCE_FILES PV4blockMeshReader.xml + ) +ELSE("${PARAVIEW_VERSION_MINOR}" EQUAL 0) + ADD_PARAVIEW_PLUGIN( + PV4blockMeshReader_SM "1.0" + SERVER_MANAGER_XML PV4blockMeshReader_SM.xml + SERVER_MANAGER_SOURCES vtkPV4blockMeshReader.cxx + GUI_INTERFACES ${IFACES} + GUI_SOURCES pqPV4blockMeshReaderPanel.cxx + ${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS} + ) +ENDIF("${PARAVIEW_VERSION_MINOR}" EQUAL 0) # Build the client-side plugin @@ -83,4 +77,5 @@ TARGET_LINK_LIBRARIES( blockMesh vtkPV4blockMesh ) + #----------------------------------------------------------------------------- diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml b/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml index cc288ac7cac0bf3357276279d416c6c4e795daa1..09f962d32f595e9963deb75d53832f835c06349a 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml @@ -103,6 +103,8 @@ <Hints> <Property name="FileName" show="0"/> <Property name="UiShowPointNumbers" show="0"/> + <ReaderFactory extensions="blockMesh" + file_description="OpenFOAM blockMesh"/> </Hints> </SourceProxy>