Salome HOME
Copyright update 2022
[modules/paravis.git] / src / Plugins / MEDReader / CMakeLists.txt
index 050c1bddb35f3e218a77e775d7949ea583461167..7b70aa9e8f661aa630d3bf2dcf62e8c34107b7c3 100644 (file)
@@ -1,9 +1,33 @@
+# Copyright (C) 2010-2022  CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 cmake_minimum_required(VERSION 3.8)
 project(MEDReader)
 
+option(BUILD_SHARED_LIBS "Build shared libraries" ON)
+option(MEDREADER_USE_MPI "Activate parallel reading for MEDREADER" OFF)
+
 find_package(ParaView REQUIRED)
+if(MEDREADER_USE_MPI)
+  add_definitions(-DMEDREADER_USE_MPI)
+endif(MEDREADER_USE_MPI)
 
-option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 enable_testing()
 
 include(GNUInstallDirs)