Salome HOME
fix 2D_mesh_QuadranglePreference_01/B8
[modules/smesh.git] / CMakeLists.txt
1 # Copyright (C) 2012-2021  CEA/DEN, EDF R&D, OPEN CASCADE
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 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
20 INCLUDE(CMakeDependentOption)
21
22 # Project name
23 # ============
24 # original
25 PROJECT(SalomeSMESH C CXX)
26 # upper case
27 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
28
29 # Common CMake macros
30 # ===================
31 SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
32 IF(EXISTS ${CONFIGURATION_ROOT_DIR})
33   LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
34   INCLUDE(SalomeMacros NO_POLICY_SCOPE)
35 ELSE()
36   MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
37 ENDIF()
38
39 # Versioning
40 # ===========
41 SALOME_SETUP_VERSION(9.8.0 DEVELOPMENT)
42 MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"")
43
44 # Find KERNEL
45 # ===========
46 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
47 IF(EXISTS ${KERNEL_ROOT_DIR})
48   FIND_PACKAGE(SalomeKERNEL REQUIRED)
49   KERNEL_WITH_CORBA() #check whether KERNEL built with CORBA
50   ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
51   INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
52 ELSE(EXISTS ${KERNEL_ROOT_DIR})
53   MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
54 ENDIF(EXISTS ${KERNEL_ROOT_DIR})
55
56 # Platform setup
57 # ==============
58 INCLUDE(SalomeSetupPlatform)   # From KERNEL
59 # Always build libraries as shared objects:
60 SET(BUILD_SHARED_LIBS TRUE)
61
62 # User options
63 # ============
64 OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
65 OPTION(SALOME_BUILD_DOC "Generate SALOME SMESH documentation" ON)
66
67 # Advanced options:
68 OPTION(SALOME_BUILD_GUI           "Enable GUI" ON)
69 OPTION(SALOME_SMESH_USE_CGNS      "Enable import/export to CGNS format" OFF)
70 OPTION(SALOME_SMESH_USE_TBB       "Enable parallel computation" OFF)
71 OPTION(SALOME_SMESH_DYNLOAD_LOCAL "Load plug-ins' symbols locally (Linux only)" ON)
72 OPTION(SMESH_USE_MESHGEMS_HYPOSET "Prefer MeshGems algorithms in sets of hypotheses" OFF)
73 CMAKE_DEPENDENT_OPTION(SALOME_SMESH_BUILD_FRENCH_DOC "Generate SALOME SMESH French documentation" OFF
74                        "SALOME_BUILD_DOC" OFF)
75
76 IF(SALOME_SMESH_DYNLOAD_LOCAL)
77   ADD_DEFINITIONS(-DDYNLOAD_LOCAL)
78 ENDIF(SALOME_SMESH_DYNLOAD_LOCAL)
79
80 IF(SALOME_USE_64BIT_IDS)
81    SET(SMESH_ID_TYPE "long long")
82 ELSE()
83    SET(SMESH_ID_TYPE "long")
84 ENDIF()
85
86 IF(SMESH_USE_MESHGEMS_HYPOSET)
87   SET(SMESH_USE_MESHGEMS_HYPOSET_VAR "true")
88 ELSE(SMESH_USE_MESHGEMS_HYPOSET)
89   SET(SMESH_USE_MESHGEMS_HYPOSET_VAR "false")
90 ENDIF(SMESH_USE_MESHGEMS_HYPOSET)
91
92 #On Linux use Fortran to compile MEFISTO2D
93 IF(NOT WIN32)
94   ENABLE_LANGUAGE(Fortran)
95   SET(SALOME_SMESH_ENABLE_MEFISTO ON)
96   ADD_DEFINITIONS(-DENABLE_MEFISTO)
97 ENDIF(NOT WIN32)
98
99 MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_SMESH_USE_CGNS SALOME_SMESH_USE_TBB SALOME_SMESH_DYNLOAD_LOCAL SMESH_USE_MESHGEMS_HYPOSET)
100
101 # Prerequisites
102 # =============
103 # Find "big" prerequisites first - they reference themselves many others
104 #   -> this can help finding the smaller prerequisites and detect conflicts.
105 # In our case KERNEL has already loaded many prereq:
106
107 ##
108 ## From KERNEL:
109 ##
110
111 # Various
112 # Python
113 FIND_PACKAGE(SalomePythonInterp REQUIRED)
114 FIND_PACKAGE(SalomePythonLibs REQUIRED)
115 # PThread
116 FIND_PACKAGE(SalomePThread REQUIRED)
117 # SWIG
118 FIND_PACKAGE(SalomeSWIG REQUIRED)
119 # Boost
120 FIND_PACKAGE(SalomeBoost REQUIRED)
121 # CORBA
122 FIND_PACKAGE(SalomeOmniORB REQUIRED)
123 FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
124 # LibXml2
125 FIND_PACKAGE(SalomeLibXml2 REQUIRED)
126 # HDF5
127 FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
128
129 # Other KERNEL optionals:
130 IF(SALOME_BUILD_TESTS)
131   ENABLE_TESTING()
132   FIND_PACKAGE(SalomeCppUnit)
133   SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
134 ENDIF()
135 IF(SALOME_BUILD_DOC)
136   FIND_PACKAGE(SalomeDoxygen)
137   FIND_PACKAGE(SalomeSphinx)
138   INCLUDE(UseSphinx)
139   SPHINX_CHECK_EXTENSIONS(sphinx_rtd_theme)
140   IF(SPHINX_VERSION VERSION_LESS "1.3")
141     SPHINX_CHECK_EXTENSIONS(sphinxcontrib.napoleon)
142   ENDIF()
143   SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
144   SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
145 ENDIF()
146
147 # Find GUI
148 IF(SALOME_BUILD_GUI)
149   SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
150   IF(EXISTS ${GUI_ROOT_DIR})
151     FIND_PACKAGE(SalomeGUI)
152     SALOME_GUI_WITH_CORBA() #check whether GUI built with CORBA
153     SALOME_GUI_MODE(SALOME_USE_VTKVIEWER SALOME_USE_SALOMEOBJECT
154                     OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_PYCONSOLE)
155     ##
156     ## Prerequisites From GUI:
157     ##
158     # Qt
159     FIND_PACKAGE(SalomeQt5 REQUIRED)
160     # SIP
161     FIND_PACKAGE(SalomeSIP REQUIRED)  # should come after Python and before PyQt5
162     # PyQt
163     FIND_PACKAGE(SalomePyQt5 REQUIRED)
164     # Qwt
165     FIND_PACKAGE(SalomeQwt REQUIRED)
166   ELSE(EXISTS ${GUI_ROOT_DIR})
167     MESSAGE(FATAL_ERROR "GUI_ROOT_DIR is not well defined, SMESH will be built without GUI!!!")
168   ENDIF(EXISTS ${GUI_ROOT_DIR})
169   SALOME_LOG_OPTIONAL_PACKAGE(SalomeGUI SALOME_BUILD_GUI)
170 ENDIF(SALOME_BUILD_GUI)
171
172 # Find GEOM
173 # ===========
174 SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR} CACHE PATH "Path to the Salome GEOM")
175 IF(EXISTS ${GEOM_ROOT_DIR})
176   FIND_PACKAGE(SalomeGEOM REQUIRED)
177   ADD_DEFINITIONS(${GEOM_DEFINITIONS})
178   INCLUDE_DIRECTORIES(${GEOM_INCLUDE_DIRS})
179   IF(SALOME_BUILD_GUI)
180     IF(NOT SALOME_GEOM_BUILD_GUI)
181       MESSAGE(FATAL_ERROR "We absolutely need a Salome GEOM with GUI, please set SALOME_BUILD_GUI=ON in GEOM module")
182     ENDIF(NOT SALOME_GEOM_BUILD_GUI)
183   ENDIF(SALOME_BUILD_GUI)
184 ELSE(EXISTS ${GEOM_ROOT_DIR})
185   MESSAGE(FATAL_ERROR "We absolutely need a Salome GEOM, please define GEOM_ROOT_DIR")
186 ENDIF(EXISTS ${GEOM_ROOT_DIR})
187
188 # Find SHAPERSTUDY
189 # ================
190 SET(WITH_SHAPER_STUDY OFF)
191 SET(SHAPERSTUDY_ROOT_DIR $ENV{SHAPERSTUDY_ROOT_DIR} CACHE PATH "Path to the Salome SHAPERSTUDY")
192 IF(EXISTS ${SHAPERSTUDY_ROOT_DIR})
193   FIND_PACKAGE(SalomeSHAPERSTUDY)
194   IF(SalomeSHAPERSTUDY_FOUND)
195     SET(WITH_SHAPER_STUDY ON)
196   ENDIF()
197 ENDIF(EXISTS ${SHAPERSTUDY_ROOT_DIR})
198 IF(NOT WITH_SHAPER_STUDY AND SALOME_BUILD_TESTS)
199   MESSAGE(WARNING "SHAPERSTUDY is not found; the corresponding tests will be omitted")
200 ENDIF()
201
202 # Find MEDCoupling
203 # ================
204 SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to the MEDCoupling tool")
205 IF(EXISTS ${MEDCOUPLING_ROOT_DIR})
206   FIND_PACKAGE(SalomeMEDCoupling REQUIRED)   # will reload HDF5, MEDFile, XDR, etc ...
207 ELSE(EXISTS ${MEDCOUPLING_ROOT_DIR})
208   MESSAGE(FATAL_ERROR "We absolutely need the MEDCoupling tool, please define MEDCOUPLING_ROOT_DIR !")
209 ENDIF(EXISTS ${MEDCOUPLING_ROOT_DIR})
210
211 ##
212 ## SMESH specifics
213 ##
214
215 # VTK is obligatiry for the SMESH
216 FIND_PACKAGE(SalomeVTK REQUIRED)
217
218 FIND_PACKAGE(SalomeOpenCASCADE REQUIRED)
219
220 IF(SALOME_SMESH_USE_CGNS)
221   FIND_PACKAGE(SalomeCGNS)
222   SALOME_LOG_OPTIONAL_PACKAGE(CGNS SALOME_SMESH_USE_CGNS)
223   ADD_DEFINITIONS(-DWITH_CGNS)
224 ENDIF(SALOME_SMESH_USE_CGNS)
225
226 IF(SALOME_SMESH_USE_TBB)
227   FIND_PACKAGE(SalomeTBB)
228   SALOME_LOG_OPTIONAL_PACKAGE(TBB SALOME_SMESH_USE_TBB)
229   ADD_DEFINITIONS(-DWITH_TBB)
230 ENDIF(SALOME_SMESH_USE_TBB)
231
232 FIND_PACKAGE(SalomeMEDFile REQUIRED)
233
234 #On Windows use f2c to generate C MEFISTO2D code
235 IF(WIN32)
236   SET(SALOME_SMESH_ENABLE_MEFISTO OFF)
237   FIND_PACKAGE(Salomef2c QUIET)
238   IF(${F2C_FOUND})
239     ADD_DEFINITIONS(-DENABLE_MEFISTO)
240     SET(SALOME_SMESH_ENABLE_MEFISTO ON)
241     MESSAGE(STATUS "Build MEFISTO2D mesher using Fortran to C generator")
242   ELSE(${F2C_FOUND})
243     MESSAGE(FATAL "Fortran to C generator is not found: MEFISTO2D mesher cannot be compiled! Please define F2C_ROOT_DIR !")
244   ENDIF(${F2C_FOUND})
245 ENDIF(WIN32)
246
247
248 SET (SALOME_SMESH_DISABLE_MG_ADAPT OFF)
249 SET (SALOME_SMESH_DISABLE_HOMARD_ADAPT OFF)
250 IF(WIN32)
251   # On Windows temporarily disable MG_ADAPT
252   SET (SALOME_SMESH_DISABLE_MG_ADAPT ON)
253   SET (SALOME_SMESH_DISABLE_HOMARD_ADAPT ON)
254 ENDIF()
255 IF(SALOME_SMESH_DISABLE_MG_ADAPT)
256   ADD_DEFINITIONS(-DDISABLE_MG_ADAPT)
257 ENDIF()
258
259 IF(SALOME_SMESH_DISABLE_HOMARD_ADAPT)
260   ADD_DEFINITIONS(-DDISABLE_HOMARD_ADAPT)
261 ENDIF()
262
263
264 IF(SALOME_SMESH_ENABLE_MEFISTO)
265  SET(MEFISTO2D_NAME "MEFISTO_2D")
266 ELSE(SALOME_SMESH_ENABLE_MEFISTO)
267  SET(MEFISTO2D_NAME "NOT_FOUND")
268 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
269
270 # Detection summary:
271 SALOME_PACKAGE_REPORT_AND_CHECK()
272
273 # Directories
274 # (default values taken from KERNEL)
275 # ===========
276 SET(SALOME_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "Install path: SALOME binaries")
277 SET(SALOME_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "Install path: SALOME libs")
278 SET(SALOME_INSTALL_IDLS "${SALOME_INSTALL_IDLS}" CACHE PATH "Install path: SALOME IDL files")
279 SET(SALOME_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "Install path: SALOME headers")
280 SET(SALOME_INSTALL_SCRIPT_SCRIPTS "${SALOME_INSTALL_SCRIPT_SCRIPTS}" CACHE PATH
281    "Install path: SALOME scripts")
282 SET(SALOME_INSTALL_SCRIPT_DATA "${SALOME_INSTALL_SCRIPT_DATA}" CACHE PATH
283    "Install path: SALOME script data")
284 SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH
285    "Install path: SALOME Python scripts")
286 SET(SALOME_INSTALL_APPLISKEL_SCRIPTS "${SALOME_INSTALL_APPLISKEL_SCRIPTS}" CACHE PATH
287    "Install path: SALOME application skeleton - scripts")
288 SET(SALOME_INSTALL_APPLISKEL_PYTHON "${SALOME_INSTALL_APPLISKEL_PYTHON}" CACHE PATH
289    "Install path: SALOME application skeleton - Python")
290 SET(SALOME_INSTALL_PYTHON "${SALOME_INSTALL_PYTHON}" CACHE PATH "Install path: SALOME Python stuff")
291 SET(SALOME_INSTALL_PYTHON_SHARED "${SALOME_INSTALL_PYTHON_SHARED}" CACHE PATH
292    "Install path: SALOME Python shared modules")
293 SET(SALOME_INSTALL_CMAKE_LOCAL "${SALOME_INSTALL_CMAKE_LOCAL}" CACHE PATH
294     "Install path: local SALOME CMake files")
295 SET(SALOME_INSTALL_AMCONFIG_LOCAL "${SALOME_INSTALL_AMCONFIG_LOCAL}" CACHE PATH
296   "Install path: local SALOME config files (obsolete, to be removed)")
297 SET(SALOME_INSTALL_RES "${SALOME_INSTALL_RES}" CACHE PATH "Install path: SALOME resources")
298 SET(SALOME_INSTALL_DOC "${SALOME_INSTALL_DOC}" CACHE PATH "Install path: SALOME documentation")
299
300 # Specific to SMESH:
301 SET(SALOME_SMESH_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/smesh" CACHE PATH
302     "Install path: SALOME SMESH specific data")
303 SET(SALOME_SMESH_INSTALL_PLUGINS share/salome/plugins/smesh CACHE PATH
304     "Install path: SALOME SMESH plugins")
305
306 MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS)
307 MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON)
308 MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS  SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES)
309 MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
310 MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
311 MARK_AS_ADVANCED(SALOME_SMESH_INSTALL_RES_DATA SALOME_SMESH_INSTALL_PLUGINS)
312
313 # Accumulate environment variables for SMESH module
314 SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
315                                                  ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON}
316                                                  ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON_SHARED})
317 SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
318
319 # Sources
320 # ========
321
322 ADD_SUBDIRECTORY(idl)
323 ADD_SUBDIRECTORY(adm_local)
324 ADD_SUBDIRECTORY(resources)
325 ADD_SUBDIRECTORY(bin)
326 ADD_SUBDIRECTORY(src)
327 IF(SALOME_BUILD_DOC)
328   ADD_SUBDIRECTORY(doc)
329 ENDIF()
330 IF(SALOME_BUILD_TESTS)
331   ADD_SUBDIRECTORY(test)
332 ENDIF()
333
334 # Header configuration
335 # ====================
336 SALOME_CONFIGURE_FILE(SMESH_version.h.in SMESH_version.h INSTALL ${SALOME_INSTALL_HEADERS})
337
338 # Configuration export
339 # (here only the level 1 prerequisites are exposed)
340 # ====================
341 INCLUDE(CMakePackageConfigHelpers)
342
343 # List of targets in this project we want to make visible to the rest of the world.
344 # They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
345 SET(_${PROJECT_NAME}_exposed_targets
346   SMESHControls MeshDriver MeshDriverDAT MeshDriverGMF MeshDriverMED
347   MeshDriverSTL MeshDriverUNV MEDWrapper
348   SMDS SMESHimpl SMESHEngine SMESHClient SMESHDS
349   SMESHUtils StdMeshers StdMeshersEngine MeshJobManagerEngine
350   SPADDERPluginTesterEngine SalomeIDLSMESH SalomeIDLSPADDER
351 )
352
353 IF(SALOME_SMESH_ENABLE_MEFISTO)
354   LIST(APPEND _${PROJECT_NAME}_exposed_targets
355        MEFISTO2D)
356 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
357
358 IF(SALOME_BUILD_GUI)
359   LIST(APPEND _${PROJECT_NAME}_exposed_targets
360       SMESHObject SMESHFiltersSelection SMESH PluginUtils StdMeshersGUI
361   )
362 ENDIF(SALOME_BUILD_GUI)
363
364 IF(SALOME_SMESH_USE_CGNS)
365   LIST(APPEND _${PROJECT_NAME}_exposed_targets
366     MeshDriverCGNS
367   )
368 ENDIF(SALOME_SMESH_USE_CGNS)
369
370 # Add all targets to the build-tree export set
371 EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
372   FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
373
374 # Create the configuration files:
375 #   - in the build tree:
376
377 # Ensure the variables are always defined for the configure:
378 SET(GEOM_ROOT_DIR "${GEOM_ROOT_DIR}")
379 SET(MEDCOUPLING_ROOT_DIR "${MEDCOUPLING_ROOT_DIR}")
380 SET(MEDFILE_ROOT_DIR "${MEDFILE_ROOT_DIR}")
381 SET(CGNS_ROOT_DIR "${CGNS_ROOT_DIR}")
382 SET(TBB_ROOT_DIR  "${TBB_ROOT_DIR}")
383
384 SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
385
386 # Build variables that will be expanded when configuring Salome<MODULE>Config.cmake:
387 SALOME_CONFIGURE_PREPARE(MEDCoupling CGNS TBB MEDFile)
388
389 CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
390     ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
391     INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
392     PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
393     GEOM_ROOT_DIR MEDCOUPLING_ROOT_DIR MEDFILE_ROOT_DIR CGNS_ROOT_DIR TBB_ROOT_DIR)
394
395 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
396     VERSION ${${PROJECT_NAME_UC}_VERSION}
397     COMPATIBILITY AnyNewerVersion)
398
399 # Install the CMake configuration files:
400 INSTALL(FILES
401   "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
402   "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
403   DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}")
404
405 # Install the export set for use with the install-tree
406 INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
407   FILE ${PROJECT_NAME}Targets.cmake)