]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/CMakeLists.txt
Salome HOME
3076314bd19cbd0d2a7d4b210e35dee9f4a8432d
[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 ADD_SUBDIRECTORY(INTERP_KERNELTest)
21
22 # MEDCoupling
23 ADD_SUBDIRECTORY(MEDCoupling)
24 IF(MEDCOUPLING_ENABLE_PYTHON)
25   ADD_SUBDIRECTORY(MEDCoupling_Swig)
26 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
27
28 IF(NOT MEDCOUPLING_MICROMED)
29   # MEDLoader
30   ADD_SUBDIRECTORY(MEDLoader)
31   
32   # RENUMBER
33   IF(MEDCOUPLING_ENABLE_RENUMBER)
34     ADD_SUBDIRECTORY(RENUMBER)
35     IF(MEDCOUPLING_ENABLE_PYTHON)
36       ADD_SUBDIRECTORY(RENUMBER_Swig)
37     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
38   ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
39   
40   # MEDPartitioner
41   IF(MEDCOUPLING_ENABLE_PARTITIONER)
42     ADD_SUBDIRECTORY(MEDPartitioner)
43     IF(MEDCOUPLING_ENABLE_PYTHON)
44       ADD_SUBDIRECTORY(MEDPartitioner_Swig)
45     ENDIF(MEDCOUPLING_ENABLE_PYTHON)
46   ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
47 ENDIF(NOT MEDCOUPLING_MICROMED)
48
49 IF(MEDCOUPLING_USE_MPI)
50   # ParaMEDMEM
51   ADD_SUBDIRECTORY(ParaMEDMEM)
52   
53   # ParaMEDLoader
54   IF(NOT MEDCOUPLING_MICROMED)
55     ADD_SUBDIRECTORY(ParaMEDLoader)
56   ENDIF(NOT MEDCOUPLING_MICROMED)
57   IF(MEDCOUPLING_ENABLE_PYTHON)
58     ADD_SUBDIRECTORY(ParaMEDMEM_Swig)
59   ENDIF(MEDCOUPLING_ENABLE_PYTHON)
60   IF(MEDCOUPLING_BUILD_TESTS)
61     IF(NOT MEDCOUPLING_MICROMED)
62       ADD_SUBDIRECTORY(ParaMEDMEMTest)
63     ENDIF(NOT MEDCOUPLING_MICROMED)
64   ENDIF(MEDCOUPLING_BUILD_TESTS)
65 ENDIF(MEDCOUPLING_USE_MPI)
66
67 # Application tests
68 INSTALL(FILES CTestTestfileInstall.cmake
69   DESTINATION ${MEDCOUPLING_INSTALL_TESTS}
70   RENAME CTestTestfile.cmake)
71
72 INSTALL(FILES CTestTestfileInstallMEDCoupling.cmake
73   DESTINATION ${MEDCOUPLING_INSTALL_TESTS}/MEDCoupling
74   RENAME CTestTestfile.cmake)