From: ageay Date: Fri, 30 Mar 2012 14:15:47 +0000 (+0000) Subject: MED CMakization. X-Git-Tag: V6_main_FINAL~702 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a2443a333b10aae4608e564a552ad251a15473be;p=tools%2Fmedcoupling.git MED CMakization. --- diff --git a/adm_local/CMakeLists.txt b/adm_local/CMakeLists.txt new file mode 100644 index 000000000..a5389456b --- /dev/null +++ b/adm_local/CMakeLists.txt @@ -0,0 +1,20 @@ +# 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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 000000000..3f1d10761 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,89 @@ +# 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})