From: Anthony Geay Date: Thu, 8 Mar 2018 07:39:41 +0000 (+0100) Subject: UnModulizePlgs : MEDReader X-Git-Tag: V8_5_0a2^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb37b53dea257fc02532d5ab1902e46f9af26583;p=modules%2Fparavis.git UnModulizePlgs : MEDReader --- diff --git a/src/Plugins/MEDReader/CMakeLists.txt b/src/Plugins/MEDReader/CMakeLists.txt index dc5e54b8..39420aa1 100644 --- a/src/Plugins/MEDReader/CMakeLists.txt +++ b/src/Plugins/MEDReader/CMakeLists.txt @@ -118,14 +118,25 @@ SALOME_ACCUMULATE_ENVIRONMENT(PV_PLUGIN_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/lib SET(VTK_INSTALL_RUNTIME_DIR lib/salome) SET(VTK_INSTALL_LIBRARY_DIR lib/salome) SET(VTK_INSTALL_ARCHIVE_DIR lib/salome) -INCLUDE_DIRECTORIES(${MEDFILE_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}) PV_PROCESS_MODULES() +INCLUDE_DIRECTORIES( + ${MEDCOUPLING_INCLUDE_DIRS} + ${MEDFILE_INCLUDE_DIRS} + ${HDF5_INCLUDE_DIRS} + ${MED_ROOT_DIR}/include/salome + ) + +IF(HDF5_IS_PARALLEL) + ADD_DEFINITIONS("-DMEDREADER_USE_MPI") +ENDIF(HDF5_IS_PARALLEL) + # # Build the parallel vtkPMEDReader # SET(MEDReader_BUILD_PARALLEL ${VTK_USE_PARALLEL} CACHE BOOL "Build the Med Reader with parallel support.") +ADD_SUBDIRECTORY(IO) # # Build the ParaView Plugin # diff --git a/src/Plugins/MEDReader/IO/CMakeLists.txt b/src/Plugins/MEDReader/IO/CMakeLists.txt index ba92fa88..a6b79723 100644 --- a/src/Plugins/MEDReader/IO/CMakeLists.txt +++ b/src/Plugins/MEDReader/IO/CMakeLists.txt @@ -17,17 +17,6 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -INCLUDE_DIRECTORIES( - ${MEDCOUPLING_INCLUDE_DIRS} - ${MEDFILE_INCLUDE_DIRS} - ${HDF5_INCLUDE_DIRS} - ${MED_ROOT_DIR}/include/salome - ) - -IF(HDF5_IS_PARALLEL) - ADD_DEFINITIONS("-DMEDREADER_USE_MPI") -ENDIF(HDF5_IS_PARALLEL) - SET(MEDReader_CLASSES vtkMEDReader vtkExtractGroup vtkELNOMeshFilter vtkELNOSurfaceFilter vtkELNOFilter vtkExtractCellType vtkMEDQuadraturePointsGenerator) @@ -49,11 +38,8 @@ ELSE(HDF5_IS_PARALLEL) TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MEDCoupling_medloader} ${MEDFILE_C_LIBRARIES}) ENDIF(HDF5_IS_PARALLEL) -VTK_MODULE_LIBRARY(vtkMEDReader ${MEDReader_SRCS}) -TARGET_LINK_LIBRARIES(vtkMEDReader vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore ${PARAVIEW_LIBRARIES} MEDLoaderForPV ${MEDFILE_C_LIBRARIES}) - INSTALL( - TARGETS vtkMEDReader MEDLoaderForPV + TARGETS MEDLoaderForPV RUNTIME DESTINATION lib/salome LIBRARY DESTINATION lib/salome ARCHIVE DESTINATION lib/salome diff --git a/src/Plugins/MEDReader/IO/module.cmake b/src/Plugins/MEDReader/IO/module.cmake deleted file mode 100644 index db6245d0..00000000 --- a/src/Plugins/MEDReader/IO/module.cmake +++ /dev/null @@ -1,10 +0,0 @@ -SET(VTK_LIBS vtkCommonExecutionModel vtkParallelCore) - -vtk_module(vtkMEDReader - DEPENDS - ${VTK_LIBS} - TEST_DEPENDS - vtkRenderingCore - vtkTestingRendering - vtkInteractionStyle -) diff --git a/src/Plugins/MEDReader/ParaViewPlugin/CMakeLists.txt b/src/Plugins/MEDReader/ParaViewPlugin/CMakeLists.txt index 2f948dad..21b87b1d 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/CMakeLists.txt +++ b/src/Plugins/MEDReader/ParaViewPlugin/CMakeLists.txt @@ -27,7 +27,15 @@ IF(PARAVIEW_BUILD_QT_GUI) # create a plugin that implements an object panel for the reader SET(SM_SRCS - vtkPVMetaDataInformation.cxx) + vtkPVMetaDataInformation.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkMEDReader.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkExtractGroup.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkELNOMeshFilter.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkELNOSurfaceFilter.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkELNOFilter.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkExtractCellType.cxx + ${PROJECT_SOURCE_DIR}/IO/vtkMEDQuadraturePointsGenerator.cxx + ) SET(CLIENT_SRCS pqExtractGroupFieldsWidget.cxx @@ -98,10 +106,6 @@ IF(PARAVIEW_BUILD_QT_GUI) ${MEDREADER_FIELDS_IFACE_SRCS} ${MEDREADER_VECTORS_IFACE_SRCS} ${EXTRACTGROUP_FIELDS_IFACES_SRCS} - CS_KITS - # this is the same name as the name in module.cmake file IO - # directory. - vtkMEDReader ) ELSE(PARAVIEW_BUILD_QT_GUI) @@ -118,7 +122,8 @@ ELSE(PARAVIEW_BUILD_QT_GUI) ENDIF(PARAVIEW_BUILD_QT_GUI) -TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS) +TARGET_LINK_LIBRARIES(MEDReaderPlugin MEDLoaderForPV) + # Install INSTALL( TARGETS MEDReaderPlugin