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