Salome HOME
Copyright update 2021
[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 IF(MEDCOUPLING_ENABLE_PYTHON)
29   ADD_SUBDIRECTORY(MEDCoupling_Swig)
30   ADD_SUBDIRECTORY(PyWrapping)
31 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
32
33 IF(NOT MEDCOUPLING_MICROMED)
34   # MEDLoader
35   ADD_SUBDIRECTORY(MEDLoader)
36
37   # RENUMBER
38   IF(MEDCOUPLING_ENABLE_RENUMBER)
39     ADD_SUBDIRECTORY(RENUMBER)
40     IF(MEDCOUPLING_ENABLE_PYTHON)
41       ADD_SUBDIRECTORY(RENUMBER_Swig)
42     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
43   ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
44
45   # MEDPartitioner
46   IF(MEDCOUPLING_ENABLE_PARTITIONER)
47     ADD_SUBDIRECTORY(MEDPartitioner)
48     IF(MEDCOUPLING_ENABLE_PYTHON)
49       ADD_SUBDIRECTORY(MEDPartitioner_Swig)
50     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
51   ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
52 ENDIF(NOT MEDCOUPLING_MICROMED)
53
54 IF(MEDCOUPLING_USE_MPI)
55   # ParaMEDMEM
56   ADD_SUBDIRECTORY(ParaMEDMEM)
57
58   # ParaMEDLoader
59   IF(NOT MEDCOUPLING_MICROMED)
60     ADD_SUBDIRECTORY(ParaMEDLoader)
61   ENDIF(NOT MEDCOUPLING_MICROMED)
62   IF(MEDCOUPLING_ENABLE_PYTHON)
63     ADD_SUBDIRECTORY(ParaMEDMEM_Swig)
64   ENDIF(MEDCOUPLING_ENABLE_PYTHON)
65   IF(MEDCOUPLING_BUILD_TESTS)
66     IF(NOT MEDCOUPLING_MICROMED)
67       ADD_SUBDIRECTORY(ParaMEDMEMTest)
68     ENDIF(NOT MEDCOUPLING_MICROMED)
69   ENDIF(MEDCOUPLING_BUILD_TESTS)
70 ENDIF(MEDCOUPLING_USE_MPI)
71
72 # Application tests
73 configure_file(CTestTestfileInstall.cmake.in "CTestTestfileST.cmake" @ONLY)
74 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CTestTestfileST.cmake DESTINATION ${MEDCOUPLING_INSTALL_TESTS} RENAME CTestTestfile.cmake)
75