1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D
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
20 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL directory")
21 SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI directory")
23 IF(EXISTS ${GUI_ROOT_DIR})
24 MESSAGE("-- SALOME found at " ${GUI_ROOT_DIR})
27 FIND_LIBRARY(caf caf ${GUI_ROOT_DIR}/lib/salome)
28 FIND_LIBRARY(CAM CAM ${GUI_ROOT_DIR}/lib/salome)
29 FIND_LIBRARY(CASCatch CASCatch ${GUI_ROOT_DIR}/lib/salome)
30 FIND_LIBRARY(DDS DDS ${GUI_ROOT_DIR}/lib/salome)
31 FIND_LIBRARY(Event Event ${GUI_ROOT_DIR}/lib/salome)
32 FIND_LIBRARY(GLViewer GLViewer ${GUI_ROOT_DIR}/lib/salome)
33 FIND_LIBRARY(LightApp LightApp ${GUI_ROOT_DIR}/lib/salome)
34 FIND_LIBRARY(LogWindow LogWindow ${GUI_ROOT_DIR}/lib/salome)
35 FIND_LIBRARY(ObjBrowser ObjBrowser ${GUI_ROOT_DIR}/lib/salome)
36 FIND_LIBRARY(OCCViewer OCCViewer ${GUI_ROOT_DIR}/lib/salome)
37 FIND_LIBRARY(OpenGLUtils OpenGLUtils ${GUI_ROOT_DIR}/lib/salome)
38 FIND_LIBRARY(Plot2d Plot2d ${GUI_ROOT_DIR}/lib/salome)
39 FIND_LIBRARY(PyConsole PyConsole ${GUI_ROOT_DIR}/lib/salome)
40 FIND_LIBRARY(PyInterp PyInterp ${GUI_ROOT_DIR}/lib/salome)
41 FIND_LIBRARY(QDS QDS ${GUI_ROOT_DIR}/lib/salome)
42 FIND_LIBRARY(qtx qtx ${GUI_ROOT_DIR}/lib/salome)
43 FIND_LIBRARY(QxScene QxScene ${GUI_ROOT_DIR}/lib/salome)
44 FIND_LIBRARY(SalomeApp SalomeApp ${GUI_ROOT_DIR}/lib/salome)
45 FIND_LIBRARY(SalomeIDLGUI SalomeIDLGUI ${GUI_ROOT_DIR}/lib/salome)
46 FIND_LIBRARY(SalomeObject SalomeObject ${GUI_ROOT_DIR}/lib/salome)
47 FIND_LIBRARY(SalomePrs SalomePrs ${GUI_ROOT_DIR}/lib/salome)
48 FIND_LIBRARY(SalomePyQtGUILight SalomePyQtGUILight ${GUI_ROOT_DIR}/lib/salome)
49 FIND_LIBRARY(SalomePyQtGUI SalomePyQtGUI ${GUI_ROOT_DIR}/lib/salome)
50 FIND_LIBRARY(SalomePyQt SalomePyQt ${GUI_ROOT_DIR}/lib/salome)
51 FIND_LIBRARY(SalomePy SalomePy ${GUI_ROOT_DIR}/lib/salome)
52 FIND_LIBRARY(SalomeSession SalomeSession ${GUI_ROOT_DIR}/lib/salome)
53 FIND_LIBRARY(SalomeStyle SalomeStyle ${GUI_ROOT_DIR}/lib/salome)
54 FIND_LIBRARY(SOCC SOCC ${GUI_ROOT_DIR}/lib/salome)
55 FIND_LIBRARY(SPlot2d SPlot2d ${GUI_ROOT_DIR}/lib/salome)
56 FIND_LIBRARY(std std ${GUI_ROOT_DIR}/lib/salome)
57 FIND_LIBRARY(SUITApp SUITApp ${GUI_ROOT_DIR}/lib/salome)
58 FIND_LIBRARY(suit suit ${GUI_ROOT_DIR}/lib/salome)
59 FIND_LIBRARY(SVTK SVTK ${GUI_ROOT_DIR}/lib/salome)
60 FIND_LIBRARY(ToolsGUI ToolsGUI ${GUI_ROOT_DIR}/lib/salome)
61 FIND_LIBRARY(ViewerTools ViewerTools ${GUI_ROOT_DIR}/lib/salome)
62 FIND_LIBRARY(ViewerData ViewerData ${GUI_ROOT_DIR}/lib/salome)
63 FIND_LIBRARY(VTKViewer VTKViewer ${GUI_ROOT_DIR}/lib/salome)
64 FIND_LIBRARY(vtkEDFOverloads vtkEDFOverloads ${GUI_ROOT_DIR}/lib/paraview)
65 FIND_LIBRARY(vtkTools vtkTools ${GUI_ROOT_DIR}/lib/salome)
66 FIND_LIBRARY(SalomeGuiHelpers SalomeGuiHelpers ${GUI_ROOT_DIR}/lib/salome)
67 FIND_LIBRARY(SalomeTreeData SalomeTreeData ${GUI_ROOT_DIR}/lib/salome)
69 SET(SALOME_GUI_INCLUDE ${GUI_ROOT_DIR}/include/salome)
70 SET(SALOME_KERNEL_INCLUDE ${KERNEL_ROOT_DIR}/include/salome)
71 SET(SALOME_KERNEL_LIBDIR ${KERNEL_ROOT_DIR}/lib/salome)
72 ADD_DEFINITIONS( -DHAVE_SALOME )
73 ENDIF(EXISTS ${GUI_ROOT_DIR})