]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Last cleanup to compile // plugins withtout trouble.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 6 Oct 2014 08:04:48 +0000 (10:04 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 6 Oct 2014 08:04:48 +0000 (10:04 +0200)
src/Plugins/MEDReader/IO/CMakeLists.txt
src/Plugins/MEDReader/IO/Testing/Cxx/CMakeLists.txt
src/Plugins/MEDReader/ParaViewPlugin/CMakeLists.txt

index ce8030ae4f4a960a6a8fda636b98f97a89923641..05e7d5f8df76d7729fead035663a284e0eeb4234 100644 (file)
@@ -23,9 +23,9 @@ INCLUDE_DIRECTORIES(
   ${MED_ROOT_DIR}/include/salome
   )
 
-IF(PARAVIEW_USE_MPI)
+IF(HDF5_IS_PARALLEL)
   ADD_DEFINITIONS("-DMEDREADER_USE_MPI")
-ENDIF(PARAVIEW_USE_MPI)
+ENDIF(HDF5_IS_PARALLEL)
 
 SET(MEDReader_CLASSES vtkMEDReader vtkExtractGroup vtkELNOMeshFilter vtkELNOSurfaceFilter vtkELNOFilter vtkExtractCellType)
 
@@ -38,7 +38,12 @@ FOREACH(class ${MEDReader_CLASSES})
 ENDFOREACH(class)
 
 ADD_LIBRARY(MEDLoaderForPV SHARED MEDFileFieldRepresentationTree.cxx MEDTimeReq.cxx MEDUtilities.cxx vtkGenerateVectors.cxx)
-TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_medloader} ${MEDFILE_C_LIBRARIES})
+
+IF(HDF5_IS_PARALLEL)
+  TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_paramedloader} ${MEDFILE_C_LIBRARIES})
+ELSE(HDF5_IS_PARALLEL)
+  TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_medloader} ${MEDFILE_C_LIBRARIES})
+ENDIF(HDF5_IS_PARALLEL)
 
 VTK_MODULE_LIBRARY(vtkMEDReader ${MEDReader_SRCS})
 TARGET_LINK_LIBRARIES(vtkMEDReader vtkPVVTKExtensionsRendering vtkRenderingFreeType vtkRenderingOpenGL vtkRenderingFreeTypeOpenGL vtkInteractionStyle vtkFiltersCore vtkFiltersGeneral MEDLoaderForPV ${MEDFILE_C_LIBRARIES}) 
index bbdb625bc4e3b1755d955a7f802fc1dc51231942..90cba22d5b2af4056cea878bfac26c291ea69a6a 100644 (file)
@@ -48,12 +48,12 @@ TARGET_LINK_LIBRARIES(TestReading0 MEDLoaderForPV vtkCommonDataModel)
 #ADD_EXECUTABLE(TestMedReadDescendingPolyhedron ${TestMedReadDescendingPolyhedron_SRCS})
 #ADD_EXECUTABLE(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
 
-IF(${HDF5_IS_PARALLEL})
-  ADD_EXECUTABLE(TestMedParallelRead ${TestMedParallelRead_SRCS})
-  ADD_EXECUTABLE(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
-  TARGET_LINK_LIBRARIES(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
-  TARGET_LINK_LIBRARIES(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
-ENDIF(${HDF5_IS_PARALLEL})
+#IF(${HDF5_IS_PARALLEL})
+#  ADD_EXECUTABLE(TestMedParallelRead ${TestMedParallelRead_SRCS})
+#  ADD_EXECUTABLE(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
+#  TARGET_LINK_LIBRARIES(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
+#  TARGET_LINK_LIBRARIES(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
+#ENDIF(${HDF5_IS_PARALLEL})
 
 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
 
index 00fb41be484f59d836af8669eb4ff80561e49ffc..1ed9e77d6e82b3f3c771edebd8853e3f93bc7f50 100644 (file)
@@ -17,9 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE_DIRECTORIES(
-  ${PROJECT_SOURCE_DIR}/IO
-  ${PROJECT_SOURCE_DIR}/IO )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/IO )
 
 IF(PARAVIEW_BUILD_QT_GUI)