--- /dev/null
+# Copyright (C) 2007-2011 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.
+#
+# 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
+#
+
+ADD_SUBDIRECTORY(cmake_files)
--- /dev/null
+# Copyright (C) 2007-2011 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.
+#
+# 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
+#
+
+SET(COMMON_SUBDIRS INTERP_KERNEL MEDCoupling)
+SET(PARAMEDMEM_SUBDIRS)
+SET(OLD_COMMON_SUBDIRS)
+
+# INTERP_KERNELTest, MED, RENUMBER and MEDGUI will go from OLD_COMMON_SUBDIRS -> COMMON_SUBDIRS for Salome7
+
+IF(SWIG_STATUS)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCoupling_Swig)
+ENDIF(SWIG_STATUS)
+
+IF(MED_ENABLE_MED3)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDLoader MEDWrapper)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDMEM)
+ IF(CPPUNIT_IS_OK)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} INTERP_KERNELTest MEDMEMBinTest MEDMEMCppTest)
+ ENDIF(CPPUNIT_IS_OK)
+ IF(SWIG_STATUS)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDMEM_SWIG)
+ ENDIF(SWIG_STATUS)
+ENDIF(MED_ENABLE_MED3)
+
+IF(MPI_IS_OK)
+ SET(PARAMEDMEM_SUBDIRS ${PARAMEDMEM_SUBDIRS} ParaMEDMEM)
+ IF(MED_ENABLE_MED3)
+ SET(PARAMEDMEM_SUBDIRS ${PARAMEDMEM_SUBDIRS} ParaMEDLoader)
+ IF(CPPUNIT_IS_OK)
+ SET(PARAMEDMEM_SUBDIRS ${PARAMEDMEM_SUBDIRS} ParaMEDMEMTest)
+ ENDIF(CPPUNIT_IS_OK)
+ IF(SWIG_STATUS)
+ SET(PARAMEDMEM_SUBDIRS ${PARAMEDMEM_SUBDIRS} ParaMEDMEM_Swig)
+ ENDIF(SWIG_STATUS)
+ ENDIF(MED_ENABLE_MED3)
+ENDIF(MPI_IS_OK)
+
+IF(MED_ENABLE_SPLITTER)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDPartitioner)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDSPLITTER MEDSPLITTER_Swig)
+ IF(SWIG_STATUS)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDSPLITTER_Swig)
+ ENDIF(SWIG_STATUS)
+ENDIF(MED_ENABLE_SPLITTER)
+
+IF(MED_ENABLE_RENUMBER)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} RENUMBER)
+ENDIF(MED_ENABLE_RENUMBER)
+
+IF(MED_ENABLE_KERNEL)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCouplingCorba)
+ IF(SWIG_STATUS)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCouplingCorba_Swig)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MedCorba_Swig MED_SWIG)
+ ENDIF(SWIG_STATUS)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MED MedClient)
+ IF(MPI_IS_OK)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} ParaMEDCouplingCorba ParaMEDMEMComponent)
+ ENDIF(MPI_IS_OK)
+ IF(MED_ENABLE_MED3)
+ SET(COMMON_SUBDIRS ${COMMON_SUBDIRS} MEDCalculator)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDMEM_I)
+ ENDIF(MED_ENABLE_MED3)
+ IF(MED_ENABLE_GUI)
+ SET(OLD_COMMON_SUBDIRS ${OLD_COMMON_SUBDIRS} MEDGUI)
+ ENDIF(MED_ENABLE_GUI)
+ENDIF(MED_ENABLE_KERNEL)
+
+SET(SUBDIRS ${COMMON_SUBDIRS} ${PARAMEDMEM_SUBDIRS} ${OLD_COMMON_SUBDIRS})
+
+FOREACH(DIR ${SUBDIRS})
+ ADD_SUBDIRECTORY(${DIR})
+ENDFOREACH(DIR ${SUBDIRS})