Salome HOME
cbdccb0a8fc5101db3a83f275343b9926dfcb187
[tools/medcoupling.git] / src / CMakeLists.txt
1 # Copyright (C) 2015-2021  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # InterpKERNEL
21 ADD_SUBDIRECTORY(INTERP_KERNEL)
22 IF(MEDCOUPLING_BUILD_TESTS)
23   ADD_SUBDIRECTORY(INTERP_KERNELTest)
24 ENDIF(MEDCOUPLING_BUILD_TESTS)
25
26 # MEDCoupling
27 ADD_SUBDIRECTORY(MEDCoupling)
28 ADD_SUBDIRECTORY(ICoCo)
29
30 IF(MEDCOUPLING_ENABLE_PYTHON)
31   ADD_SUBDIRECTORY(MEDCoupling_Swig)
32   ADD_SUBDIRECTORY(PyWrapping)
33 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
34
35 IF(NOT MEDCOUPLING_MICROMED)
36   # MEDLoader
37   ADD_SUBDIRECTORY(MEDLoader)
38
39   # RENUMBER
40   IF(MEDCOUPLING_ENABLE_RENUMBER)
41     ADD_SUBDIRECTORY(RENUMBER)
42     IF(MEDCOUPLING_ENABLE_PYTHON)
43       ADD_SUBDIRECTORY(RENUMBER_Swig)
44     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
45   ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
46
47   # MEDPartitioner
48   IF(MEDCOUPLING_ENABLE_PARTITIONER)
49     ADD_SUBDIRECTORY(MEDPartitioner)
50     IF(MEDCOUPLING_ENABLE_PYTHON)
51       ADD_SUBDIRECTORY(MEDPartitioner_Swig)
52     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
53   ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
54 ENDIF(NOT MEDCOUPLING_MICROMED)
55
56 IF(MEDCOUPLING_USE_MPI)
57   # ParaMEDMEM
58   ADD_SUBDIRECTORY(ParaMEDMEM)
59
60   # ParaMEDLoader
61   IF(NOT MEDCOUPLING_MICROMED)
62     ADD_SUBDIRECTORY(ParaMEDLoader)
63   ENDIF(NOT MEDCOUPLING_MICROMED)
64   IF(MEDCOUPLING_ENABLE_PYTHON)
65     ADD_SUBDIRECTORY(ParaMEDMEM_Swig)
66   ENDIF(MEDCOUPLING_ENABLE_PYTHON)
67   IF(MEDCOUPLING_BUILD_TESTS)
68     IF(NOT MEDCOUPLING_MICROMED)
69       ADD_SUBDIRECTORY(ParaMEDMEMTest)
70     ENDIF(NOT MEDCOUPLING_MICROMED)
71   ENDIF(MEDCOUPLING_BUILD_TESTS)
72 ENDIF(MEDCOUPLING_USE_MPI)
73
74 # Application tests
75 configure_file(CTestTestfileInstall.cmake.in "CTestTestfileST.cmake" @ONLY)
76 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CTestTestfileST.cmake DESTINATION ${MEDCOUPLING_INSTALL_TESTS} RENAME CTestTestfile.cmake)
77