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
#
# 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)
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
+++ /dev/null
-SET(VTK_LIBS vtkCommonExecutionModel vtkParallelCore)
-
-vtk_module(vtkMEDReader
- DEPENDS
- ${VTK_LIBS}
- TEST_DEPENDS
- vtkRenderingCore
- vtkTestingRendering
- vtkInteractionStyle
-)
# 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
${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)
ENDIF(PARAVIEW_BUILD_QT_GUI)
-TARGET_LINK_LIBRARIES(MEDReaderPlugin vtkMEDReader vtkMEDReaderCS)
+TARGET_LINK_LIBRARIES(MEDReaderPlugin MEDLoaderForPV)
+
# Install
INSTALL(
TARGETS MEDReaderPlugin