1 # Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE
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
19 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
20 INCLUDE(CMakeDependentOption)
22 PROJECT(SalomeGUI C CXX)
24 # Ensure a proper linker behavior:
25 CMAKE_POLICY(SET CMP0003 NEW)
29 # Project name, upper case
30 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
32 SET(${PROJECT_NAME_UC}_MAJOR_VERSION 8)
33 SET(${PROJECT_NAME_UC}_MINOR_VERSION 0)
34 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
35 SET(${PROJECT_NAME_UC}_VERSION
36 ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
37 SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
41 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
42 IF(EXISTS ${KERNEL_ROOT_DIR})
43 LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
45 FIND_PACKAGE(SalomeKERNEL REQUIRED)
46 ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
47 INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
48 ELSE(EXISTS ${KERNEL_ROOT_DIR})
49 MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
50 ENDIF(EXISTS ${KERNEL_ROOT_DIR})
54 INCLUDE(SalomeSetupPlatform) # From KERNEL
55 # Always build libraries as shared objects:
56 SET(BUILD_SHARED_LIBS TRUE)
58 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
62 OPTION(SALOME_BUILD_DOC "Generate SALOME GUI documentation" ON)
63 OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
64 OPTION(SALOME_GUI_USE_OBSERVERS "Use study observers in GUI (advanced)" ON)
65 OPTION(SALOME_BUILD_WITH_QT5 "Build SALOME with Qt 5" OFF)
68 CMAKE_DEPENDENT_OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OFF
69 "NOT SALOME_KERNEL_LIGHT_ONLY" ON)
70 OPTION(SALOME_USE_VTKVIEWER "Enable VTK visualization (Mandatory in classic configurations)" ON)
71 OPTION(SALOME_USE_OCCVIEWER "Enable OCC visualization (Mandatory in classic configurations)" ON)
72 OPTION(SALOME_USE_GLVIEWER "Enable OpenGL visualization (Mandatory in classic configurations)" ON)
73 OPTION(SALOME_USE_GRAPHICSVIEW "Enable GraphicsView visualization (Mandatory in classic configurations)" ON)
74 OPTION(SALOME_USE_PYVIEWER "Enable Python viewer (Mandatory in classic configurations)" ON)
75 OPTION(SALOME_USE_PLOT2DVIEWER "Enable Plot2D visualization (Mandatory in classic configurations)" ON)
76 OPTION(SALOME_USE_PYCONSOLE "Enable Python GUI interface (Mandatory in classic configurations)" ON)
77 OPTION(SALOME_USE_QXGRAPHVIEWER "Enable QX graph visualization (Mandatory in classic configurations)" ON)
78 OPTION(SALOME_USE_PVVIEWER "Enable ParaView visualization (Mandatory in classic configurations)" ON)
80 CMAKE_DEPENDENT_OPTION(SALOME_USE_SALOMEOBJECT "Enable Salome Object (Mandatory in classic configurations)" ON
81 "SALOME_LIGHT_ONLY" ON)
82 OPTION(SALOME_USE_SINGLE_DESKTOP "Enable multiple document interface" ON)
84 MARK_AS_ADVANCED(SALOME_LIGHT_ONLY SALOME_USE_VTKVIEWER SALOME_USE_GRAPHICSVIEW SALOME_USE_PVVIEWER)
85 MARK_AS_ADVANCED(SALOME_USE_SALOMEOBJECT SALOME_USE_OCCVIEWER SALOME_USE_GLVIEWER SALOME_USE_PLOT2DVIEWER)
86 MARK_AS_ADVANCED(SALOME_USE_PYCONSOLE SALOME_USE_QXGRAPHVIEWER SALOME_USE_PYVIEWER)
87 MARK_AS_ADVANCED(SALOME_USE_SINGLE_DESKTOP)
91 # Find "big" prerequisites first - they reference themselves many others
92 # -> this can help finding the smaller prerequisites and detect conficts.
93 # In our case KERNEL has already loaded many prereq which are also used in GUI:
100 FIND_PACKAGE(SalomePython REQUIRED)
101 FIND_PACKAGE(SalomePThread REQUIRED)
102 FIND_PACKAGE(SalomeSWIG REQUIRED)
103 FIND_PACKAGE(SalomeBoost REQUIRED)
104 FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
106 # Other KERNEL optionals:
107 IF(NOT SALOME_LIGHT_ONLY)
108 FIND_PACKAGE(SalomeOmniORB REQUIRED)
109 FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
111 ADD_DEFINITIONS("-DGUI_DISABLE_CORBA")
113 IF(SALOME_BUILD_TESTS)
115 FIND_PACKAGE(SalomeCppUnit)
116 SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
119 FIND_PACKAGE(SalomeDoxygen)
120 FIND_PACKAGE(SalomeGraphviz)
121 FIND_PACKAGE(SalomeSphinx)
122 SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
123 SALOME_LOG_OPTIONAL_PACKAGE(Graphviz SALOME_BUILD_DOC)
124 SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
131 FIND_PACKAGE(SalomeSIP REQUIRED) # should come after Python and before PyQt
133 # Build with GUI observers feature
134 IF(SALOME_GUI_USE_OBSERVERS)
135 ADD_DEFINITIONS(-DWITH_SALOMEDS_OBSERVER)
139 IF(SALOME_USE_SINGLE_DESKTOP)
140 ADD_DEFINITIONS(-DSINGLE_DESKTOP)
144 FIND_PACKAGE(SalomeCAS REQUIRED)
147 IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
148 FIND_PACKAGE(SalomeOpenGL REQUIRED)
152 IF(NOT SALOME_BUILD_WITH_QT5)
153 FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtWebKit QtOpenGL QtNetwork)
154 ADD_DEFINITIONS("-DUSE_SALOME_STYLE")
155 SET(QT_SALOME_VERSION 4)
157 FIND_PACKAGE(SalomeQt5 REQUIRED)
158 SET(QT_SALOME_VERSION 5)
162 IF (NOT SALOME_BUILD_WITH_QT5)
163 FIND_PACKAGE(SalomePyQt4 REQUIRED)
165 FIND_PACKAGE(SalomePyQt5 REQUIRED)
168 # Optional packages for GUI and their pre-requisites
170 # - GL viewer: no prereqs
171 IF(NOT SALOME_USE_GLVIEWER)
172 ADD_DEFINITIONS("-DDISABLE_GLVIEWER")
175 # - OCC viewer: no prereqs
176 IF(NOT SALOME_USE_OCCVIEWER)
177 ADD_DEFINITIONS("-DDISABLE_OCCVIEWER")
180 # - PV viewer: ParaView
181 IF (SALOME_USE_PVVIEWER)
182 FIND_PACKAGE(SalomeParaView)
183 SALOME_LOG_OPTIONAL_PACKAGE(ParaView SALOME_USE_PVVIEWER)
185 ADD_DEFINITIONS("-DDISABLE_PVVIEWER")
189 IF(SALOME_USE_VTKVIEWER)
190 # Required components are listed in the FindSalomeVTK.cmake file:
191 FIND_PACKAGE(SalomeVTK)
192 SALOME_LOG_OPTIONAL_PACKAGE(VTK SALOME_USE_VTKVIEWER)
194 ADD_DEFINITIONS("-DDISABLE_VTKVIEWER")
197 # - Plot2d viewer: Qwt
198 IF(SALOME_USE_PLOT2DVIEWER)
199 FIND_PACKAGE(SalomeQwt)
200 SALOME_LOG_OPTIONAL_PACKAGE(Qwt SALOME_USE_PLOT2DVIEWER)
202 ADD_DEFINITIONS("-DDISABLE_PLOT2DVIEWER")
205 # - Graphics viewer: no prereqs
206 IF (NOT SALOME_USE_GRAPHICSVIEW)
207 ADD_DEFINITIONS("-DDISABLE_GRAPHICSVIEW")
210 # - Python editor: no prereqs
211 IF (NOT SALOME_USE_PYVIEWER)
212 ADD_DEFINITIONS("-DDISABLE_PYVIEWER")
215 # - Python console: no prereqs
216 IF(SALOME_USE_PYCONSOLE)
217 # Build with obsolete Python module's methods
218 ADD_DEFINITIONS(-DCALL_OLD_METHODS)
220 ADD_DEFINITIONS("-DDISABLE_PYCONSOLE")
223 # - Qx viewer: no prereqs
224 IF(NOT SALOME_USE_QXGRAPHVIEWER)
225 ADD_DEFINITIONS("-DDISABLE_QXGRAPHVIEWER")
228 # - SALOME object: no prereqs
229 IF(NOT SALOME_USE_SALOMEOBJECT)
230 ADD_DEFINITIONS("-DDISABLE_SALOMEOBJECT")
234 SALOME_PACKAGE_REPORT_AND_CHECK()
237 # (default values taken from KERNEL)
240 SET(SALOME_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "Install path: SALOME binaries")
241 SET(SALOME_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "Install path: SALOME libs")
242 SET(SALOME_INSTALL_IDLS "${SALOME_INSTALL_IDLS}" CACHE PATH "Install path: SALOME IDL files")
243 SET(SALOME_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "Install path: SALOME headers")
244 SET(SALOME_INSTALL_SCRIPT_SCRIPTS "${SALOME_INSTALL_SCRIPT_SCRIPTS}" CACHE PATH
245 "Install path: SALOME scripts")
246 SET(SALOME_INSTALL_SCRIPT_DATA "${SALOME_INSTALL_SCRIPT_DATA}" CACHE PATH
247 "Install path: SALOME script data")
248 SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH
249 "Install path: SALOME Python scripts")
250 SET(SALOME_INSTALL_PYTHON "${SALOME_INSTALL_PYTHON}" CACHE PATH "Install path: SALOME Python stuff")
251 SET(SALOME_INSTALL_PYTHON_SHARED "${SALOME_INSTALL_PYTHON_SHARED}" CACHE PATH
252 "Install path: SALOME Python shared modules")
253 SET(SALOME_INSTALL_CMAKE "${SALOME_INSTALL_CMAKE}" CACHE PATH "Install path: SALOME CMake files")
254 SET(SALOME_INSTALL_CMAKE_LOCAL "${SALOME_INSTALL_CMAKE_LOCAL}" CACHE PATH
255 "Install path: local SALOME CMake files")
256 SET(SALOME_INSTALL_AMCONFIG_LOCAL "${SALOME_INSTALL_AMCONFIG_LOCAL}" CACHE PATH
257 "Install path: local SALOME config files (obsolete, to be removed)")
259 SET(SALOME_INSTALL_RES "${SALOME_INSTALL_RES}" CACHE PATH "Install path: SALOME resources")
260 SET(SALOME_INSTALL_DOC "${SALOME_INSTALL_DOC}" CACHE PATH "Install path: SALOME documentation")
263 SET(SALOME_GUI_INSTALL_PARAVIEW_LIBS lib/paraview CACHE PATH
264 "Install path: SALOME GUI ParaView libraries")
265 SET(SALOME_GUI_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/gui" CACHE PATH
266 "Install path: SALOME GUI specific data")
267 SET(SALOME_GUI_INSTALL_RES_SCRIPTS "${SALOME_INSTALL_RES}/gui" CACHE PATH
268 "Install path: SALOME GUI scripts")
269 SET(SALOME_GUI_INSTALL_PLUGINS share/salome/plugins/gui CACHE PATH
270 "Install path: SALOME GUI plugins")
272 MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS)
273 MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON)
274 MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES)
275 MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
276 MARK_AS_ADVANCED(SALOME_GUI_INSTALL_PARAVIEW_LIBS SALOME_GUI_INSTALL_RES_DATA SALOME_GUI_INSTALL_RES_SCRIPTS SALOME_GUI_INSTALL_PLUGINS)
277 MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
279 # Accumulate environment variables for GUI module
280 SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
281 ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON}
282 ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON_SHARED})
283 SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}
284 ${CMAKE_INSTALL_PREFIX}/${SALOME_GUI_INSTALL_PARAVIEW_LIBS})
288 IF(NOT SALOME_LIGHT_ONLY)
289 ADD_SUBDIRECTORY(idl)
292 ADD_SUBDIRECTORY(adm_local)
293 ADD_SUBDIRECTORY(resources)
294 ADD_SUBDIRECTORY(src)
296 ADD_SUBDIRECTORY(doc)
298 ADD_SUBDIRECTORY(bin)
299 ADD_SUBDIRECTORY(tools)
301 # Header configuration
302 # ====================
303 SALOME_XVERSION(${PROJECT_NAME})
304 SALOME_CONFIGURE_FILE(GUI_version.h.in GUI_version.h INSTALL ${SALOME_INSTALL_HEADERS})
306 # Configuration export
307 # (here only the level 1 prerequisites are exposed)
308 # ====================
309 INCLUDE(CMakePackageConfigHelpers)
311 # List of targets in this project we want to make visible to the rest of the world.
312 # They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
313 SET(_${PROJECT_NAME}_exposed_targets
314 caf CAM CASCatch DDS Event LightApp LogWindow ObjBrowser
315 QDS qtx SalomePrs SalomeStyle std SUITApp suit ViewerTools ViewerData
319 IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
320 LIST(APPEND _${PROJECT_NAME}_exposed_targets
322 ENDIF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
324 # SALOME object specific targets:
325 IF(SALOME_USE_SALOMEOBJECT)
326 LIST(APPEND _${PROJECT_NAME}_exposed_targets
328 ENDIF(SALOME_USE_SALOMEOBJECT)
330 # GL specific targets:
331 IF(SALOME_USE_GLVIEWER)
332 LIST(APPEND _${PROJECT_NAME}_exposed_targets
334 ENDIF(SALOME_USE_GLVIEWER)
336 # VTK specific targets:
337 IF(SALOME_USE_VTKVIEWER)
338 LIST(APPEND _${PROJECT_NAME}_exposed_targets
339 VTKViewer vtkTools vtkEDFOverloads)
340 IF(SALOME_USE_SALOMEOBJECT)
341 LIST(APPEND _${PROJECT_NAME}_exposed_targets
343 ENDIF(SALOME_USE_SALOMEOBJECT)
344 ENDIF(SALOME_USE_VTKVIEWER)
346 # OCC specific targets:
347 IF(SALOME_USE_OCCVIEWER)
348 LIST(APPEND _${PROJECT_NAME}_exposed_targets
350 IF(SALOME_USE_SALOMEOBJECT)
351 LIST(APPEND _${PROJECT_NAME}_exposed_targets
353 ENDIF(SALOME_USE_SALOMEOBJECT)
354 ENDIF(SALOME_USE_OCCVIEWER)
356 # Plot2d specific targets:
357 IF(SALOME_USE_PLOT2DVIEWER)
358 LIST(APPEND _${PROJECT_NAME}_exposed_targets
360 IF(SALOME_USE_SALOMEOBJECT)
361 LIST(APPEND _${PROJECT_NAME}_exposed_targets
363 ENDIF(SALOME_USE_SALOMEOBJECT)
364 ENDIF(SALOME_USE_PLOT2DVIEWER)
366 # Qx specific targets:
367 IF(SALOME_USE_QXGRAPHVIEWER)
368 LIST(APPEND _${PROJECT_NAME}_exposed_targets
370 ENDIF(SALOME_USE_QXGRAPHVIEWER)
372 # GraphicsView specific targets:
373 IF(SALOME_USE_GRAPHICSVIEW)
374 LIST(APPEND _${PROJECT_NAME}_exposed_targets
376 ENDIF(SALOME_USE_GRAPHICSVIEW)
378 # PyEditor/Viewer specific targets:
379 IF(SALOME_USE_PYVIEWER)
380 LIST(APPEND _${PROJECT_NAME}_exposed_targets
382 ENDIF(SALOME_USE_PYVIEWER)
384 # ParaView viewer specific targets:
385 IF(SALOME_USE_PVVIEWER)
386 LIST(APPEND _${PROJECT_NAME}_exposed_targets PVViewer PVServerService)
389 # Python-based packages specific targets:
390 IF(SALOME_USE_PYCONSOLE)
391 LIST(APPEND _${PROJECT_NAME}_exposed_targets
392 PyInterp PyConsole SalomePyConsole SalomePyQtGUILight)
393 IF(SALOME_USE_PLOT2DVIEWER)
394 LIST(APPEND _${PROJECT_NAME}_exposed_targets SalomePyQt)
396 IF(NOT SALOME_LIGHT_ONLY)
397 LIST(APPEND _${PROJECT_NAME}_exposed_targets SalomePyQtGUI)
399 IF(SALOME_USE_VTKVIEWER)
400 LIST(APPEND _${PROJECT_NAME}_exposed_targets SalomePy)
401 ENDIF(SALOME_USE_VTKVIEWER)
402 ENDIF(SALOME_USE_PYCONSOLE)
404 # CORBA specific targets:
405 IF(NOT SALOME_LIGHT_ONLY)
406 LIST(APPEND _${PROJECT_NAME}_exposed_targets
407 SalomeIDLGUI SalomeSession SalomeApp SalomeGuiHelpers SalomeTreeData ToolsGUI)
408 ENDIF(NOT SALOME_LIGHT_ONLY)
410 # Add all targets to the build-tree export set
411 EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
412 FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
414 # Create the configuration files:
415 # - in the build tree:
417 # Ensure the variables are always defined for the configure:
418 SET(KERNEL_ROOT_DIR "${KERNEL_ROOT_DIR}")
419 SET(SIP_ROOT_DIR "${SIP_ROOT_DIR}")
420 IF(NOT SALOME_BUILD_WITH_QT5)
421 SET(QT_ROOT_DIR "${QT4_ROOT_DIR}")
422 SET(PYQT_ROOT_DIR "${PYQT4_ROOT_DIR}")
424 SET(QT_ROOT_DIR "${QT5_ROOT_DIR}")
425 SET(PYQT_ROOT_DIR "${PYQT5_ROOT_DIR}")
427 SET(CAS_ROOT_DIR "${CAS_ROOT_DIR}")
428 SET(OPENGL_ROOT_DIR "${OPENGL_ROOT_DIR}")
429 SET(VTK_ROOT_DIR "${VTK_ROOT_DIR}")
430 SET(QWT_ROOT_DIR "${QWT_ROOT_DIR}")
432 SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
434 # Build variables that will be expanded when configuring Salome<MODULE>Config.cmake:
435 IF(NOT SALOME_BUILD_WITH_QT5)
436 SALOME_CONFIGURE_PREPARE(CAS OpenGL Qt4 PyQt4 Qwt SIP VTK)
438 SALOME_CONFIGURE_PREPARE(CAS OpenGL Qt5 PyQt5 Qwt SIP VTK)
441 CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
442 ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
443 INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
444 PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
445 KERNEL_ROOT_DIR SIP_ROOT_DIR QT_ROOT_DIR PYQT_ROOT_DIR CAS_ROOT_DIR
446 OPENGL_ROOT_DIR VTK_ROOT_DIR QWT_ROOT_DIR)
448 # - in the install tree (VSR 16/08/2013: TEMPORARILY COMMENT THIS - TO REMOVE?):
449 # Get the relative path of the include directory so
450 # we can register it in the generated configuration files:
451 #SET(CONF_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}")
452 #CONFIGURE_PACKAGE_CONFIG_FILE(adm_local/cmake_files/${PROJECT_NAME}Config.cmake.in
453 # ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake
454 # INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
455 # PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
456 # KERNEL_ROOT_DIR SIP_ROOT_DIR QT_ROOT_DIR PYQT_ROOT_DIR CAS_ROOT_DIR
457 # OPENGL_ROOT_DIR VTK_ROOT_DIR QWT_ROOT_DIR)
459 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
460 VERSION ${${PROJECT_NAME_UC}_VERSION}
461 COMPATIBILITY AnyNewerVersion)
463 # Install the CMake configuration files:
465 "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
466 "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
467 DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}")
469 # Install the export set for use with the install-tree
470 INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
471 FILE ${PROJECT_NAME}Targets.cmake)