Salome HOME
Bug linked with multi node field read in parallel. The first one was modifying the...
[tools/medcoupling.git] / src / CMakeLists.txt
1 # Copyright (C) 2015  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
18 # InterpKERNEL
19 ADD_SUBDIRECTORY(INTERP_KERNEL)
20 IF(MEDCOUPLING_BUILD_TESTS)
21   ADD_SUBDIRECTORY(INTERP_KERNELTest)
22 ENDIF(MEDCOUPLING_BUILD_TESTS)
23
24 # MEDCoupling
25 ADD_SUBDIRECTORY(MEDCoupling)
26 IF(MEDCOUPLING_ENABLE_PYTHON)
27   ADD_SUBDIRECTORY(MEDCoupling_Swig)
28 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
29
30 IF(NOT MEDCOUPLING_MICROMED)
31   # MEDLoader
32   ADD_SUBDIRECTORY(MEDLoader)
33   
34   # RENUMBER
35   IF(MEDCOUPLING_ENABLE_RENUMBER)
36     ADD_SUBDIRECTORY(RENUMBER)
37     IF(MEDCOUPLING_ENABLE_PYTHON)
38       ADD_SUBDIRECTORY(RENUMBER_Swig)
39     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
40   ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
41   
42   # MEDPartitioner
43   IF(MEDCOUPLING_ENABLE_PARTITIONER)
44     ADD_SUBDIRECTORY(MEDPartitioner)
45     IF(MEDCOUPLING_ENABLE_PYTHON)
46       ADD_SUBDIRECTORY(MEDPartitioner_Swig)
47     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
48   ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
49 ENDIF(NOT MEDCOUPLING_MICROMED)
50
51 IF(MEDCOUPLING_USE_MPI)
52   # ParaMEDMEM
53   ADD_SUBDIRECTORY(ParaMEDMEM)
54   
55   # ParaMEDLoader
56   IF(NOT MEDCOUPLING_MICROMED)
57     ADD_SUBDIRECTORY(ParaMEDLoader)
58   ENDIF(NOT MEDCOUPLING_MICROMED)
59   IF(MEDCOUPLING_ENABLE_PYTHON)
60     ADD_SUBDIRECTORY(ParaMEDMEM_Swig)
61   ENDIF(MEDCOUPLING_ENABLE_PYTHON)
62   IF(MEDCOUPLING_BUILD_TESTS)
63     IF(NOT MEDCOUPLING_MICROMED)
64       ADD_SUBDIRECTORY(ParaMEDMEMTest)
65     ENDIF(NOT MEDCOUPLING_MICROMED)
66   ENDIF(MEDCOUPLING_BUILD_TESTS)
67 ENDIF(MEDCOUPLING_USE_MPI)
68
69 # Application tests
70 INSTALL(FILES CTestTestfileInstall.cmake
71   DESTINATION ${MEDCOUPLING_INSTALL_TESTS}
72   RENAME CTestTestfile.cmake)
73
74 INSTALL(FILES CTestTestfileInstallMEDCoupling.cmake
75   DESTINATION ${MEDCOUPLING_INSTALL_TESTS}/MEDCoupling
76   RENAME CTestTestfile.cmake)