1 # Copyright (C) 2015-2023 CEA, EDF
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 add_definitions(-DMED_INT_IS_LONG)
22 endif(MED_INT_IS_LONG)
25 ADD_SUBDIRECTORY(INTERP_KERNEL)
26 IF(MEDCOUPLING_BUILD_TESTS)
27 ADD_SUBDIRECTORY(INTERP_KERNELTest)
28 ENDIF(MEDCOUPLING_BUILD_TESTS)
31 ADD_SUBDIRECTORY(MEDCoupling)
32 ADD_SUBDIRECTORY(ICoCo)
34 IF(MEDCOUPLING_ENABLE_PYTHON)
35 ADD_SUBDIRECTORY(MEDCoupling_Swig)
36 ADD_SUBDIRECTORY(PyWrapping)
37 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
39 IF(NOT MEDCOUPLING_MICROMED)
41 ADD_SUBDIRECTORY(MEDLoader)
44 IF(MEDCOUPLING_ENABLE_RENUMBER)
45 ADD_SUBDIRECTORY(RENUMBER)
46 IF(MEDCOUPLING_ENABLE_PYTHON)
47 ADD_SUBDIRECTORY(RENUMBER_Swig)
48 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
49 ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
52 IF(MEDCOUPLING_ENABLE_PARTITIONER)
53 ADD_SUBDIRECTORY(MEDPartitioner)
54 IF(MEDCOUPLING_ENABLE_PYTHON)
55 ADD_SUBDIRECTORY(MEDPartitioner_Swig)
56 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
57 ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
58 ENDIF(NOT MEDCOUPLING_MICROMED)
60 IF(MEDCOUPLING_USE_MPI)
62 ADD_SUBDIRECTORY(ParaMEDMEM)
65 IF(NOT MEDCOUPLING_MICROMED)
66 ADD_SUBDIRECTORY(ParaMEDLoader)
67 ENDIF(NOT MEDCOUPLING_MICROMED)
68 IF(MEDCOUPLING_ENABLE_PYTHON)
69 ADD_SUBDIRECTORY(ParaMEDMEM_Swig)
70 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
71 IF(MEDCOUPLING_BUILD_TESTS)
72 IF(NOT MEDCOUPLING_MICROMED)
73 ADD_SUBDIRECTORY(ParaMEDMEMTest)
74 ENDIF(NOT MEDCOUPLING_MICROMED)
75 ENDIF(MEDCOUPLING_BUILD_TESTS)
76 ENDIF(MEDCOUPLING_USE_MPI)
79 configure_file(CTestTestfileInstall.cmake.in "CTestTestfileST.cmake" @ONLY)
80 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CTestTestfileST.cmake DESTINATION ${MEDCOUPLING_INSTALL_TESTS} RENAME CTestTestfile.cmake)