Salome HOME
6c5fb917de1b1cc0c5021c4425499efe2eff57d6
[modules/gui.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA, EDF, 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
20 ##
21 # Common packages
22 ##
23 ADD_SUBDIRECTORY(CASCatch)
24 ADD_SUBDIRECTORY(Qtx)
25 IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
26   ADD_SUBDIRECTORY(HelpBrowser)
27 ENDIF()
28 ADD_SUBDIRECTORY(Style)
29 ADD_SUBDIRECTORY(DDS)
30 ADD_SUBDIRECTORY(QDS)
31 ADD_SUBDIRECTORY(ObjBrowser)
32 ADD_SUBDIRECTORY(SUIT)
33 ADD_SUBDIRECTORY(SUITApp)
34 ADD_SUBDIRECTORY(STD)
35 ADD_SUBDIRECTORY(CAF)
36 ADD_SUBDIRECTORY(CAM)
37 ADD_SUBDIRECTORY(LogWindow)
38 ADD_SUBDIRECTORY(Prs)
39 ADD_SUBDIRECTORY(Event)
40 ADD_SUBDIRECTORY(ViewerData)
41 ADD_SUBDIRECTORY(ViewerTools)
42 ADD_SUBDIRECTORY(ImageComposer)
43 ADD_SUBDIRECTORY(GUI_PY)
44
45 ##
46 # SALOME object
47 ##
48 IF(SALOME_USE_SALOMEOBJECT)
49   ADD_SUBDIRECTORY(OBJECT)
50 ENDIF(SALOME_USE_SALOMEOBJECT)
51
52 ##
53 # OpenGL utils
54 ##
55 IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
56   ADD_SUBDIRECTORY(OpenGLUtils)
57 ENDIF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
58
59 ##
60 # GL viewer
61 ##
62 IF(SALOME_USE_GLVIEWER)
63   ADD_SUBDIRECTORY(GLViewer)
64 ENDIF(SALOME_USE_GLVIEWER)
65
66 ##
67 # VTK viewer
68 ##
69 IF(SALOME_USE_VTKVIEWER)
70   ADD_SUBDIRECTORY(VTKViewer)
71   IF(SALOME_USE_SALOMEOBJECT)
72     ADD_SUBDIRECTORY(SVTK)
73   ENDIF(SALOME_USE_SALOMEOBJECT)
74 ENDIF(SALOME_USE_VTKVIEWER)
75
76 ##
77 # OCC viewer
78 ##
79 IF(SALOME_USE_OCCVIEWER)
80   ADD_SUBDIRECTORY(OCCViewer)
81   IF(SALOME_USE_SALOMEOBJECT)
82     ADD_SUBDIRECTORY(SOCC)
83   ENDIF(SALOME_USE_SALOMEOBJECT)
84 ENDIF(SALOME_USE_OCCVIEWER)
85
86 ##
87 # ParaView3D Viewer
88 ##
89 IF(SALOME_USE_PV3DVIEWER)
90   ADD_SUBDIRECTORY(PV3DViewer)
91   # ADD_SUBDIRECTORY(PV3DServerService)
92   IF(SALOME_USE_SALOMEOBJECT)
93     ADD_SUBDIRECTORY(SPV3D)
94   ENDIF(SALOME_USE_SALOMEOBJECT)
95 ENDIF()
96
97 ##
98 # Plot2d viewer
99 ##
100 IF(SALOME_USE_PLOT2DVIEWER)
101   ADD_SUBDIRECTORY(Plot2d)
102   IF(SALOME_USE_SALOMEOBJECT)
103     ADD_SUBDIRECTORY(SPlot2d)
104   ENDIF(SALOME_USE_SALOMEOBJECT)
105 ENDIF(SALOME_USE_PLOT2DVIEWER)
106
107 ##
108 # Qx scene viewer
109 ##
110 IF(SALOME_USE_QXGRAPHVIEWER)
111   ADD_SUBDIRECTORY(QxScene)
112 ENDIF(SALOME_USE_QXGRAPHVIEWER)
113
114 # Graphics viewer
115 ##
116 IF(SALOME_USE_GRAPHICSVIEW)
117   ADD_SUBDIRECTORY(GraphicsView)
118 ENDIF(SALOME_USE_GRAPHICSVIEW)
119
120 # ParaView Viewer
121 IF(SALOME_USE_PVVIEWER)
122   ADD_SUBDIRECTORY(PVViewer)
123   ADD_SUBDIRECTORY(PVServerService)
124 ENDIF()
125
126 ##
127 # Python Viewer
128 ##
129 IF(SALOME_USE_PYVIEWER)
130   ADD_SUBDIRECTORY(PyViewer)
131 ENDIF(SALOME_USE_PYVIEWER)
132
133 ##
134 # Python-based packages, part 1 (generic)
135 ##
136 IF(SALOME_USE_PYCONSOLE)
137   ADD_SUBDIRECTORY(SALOME_PYQT)
138 ENDIF(SALOME_USE_PYCONSOLE)
139
140
141 ##
142 # Light SALOME packages
143 ##
144 ADD_SUBDIRECTORY(LightApp)
145
146 ##
147 # Python-based packages, part 2 (LightApp-dependent)
148 ##
149 IF(SALOME_USE_PYCONSOLE) 
150   IF(SALOME_USE_VTKVIEWER)
151     ADD_SUBDIRECTORY(SALOME_PY)
152   ENDIF(SALOME_USE_VTKVIEWER)
153   IF(SALOME_USE_SALOMEOBJECT)
154     ADD_SUBDIRECTORY(SALOME_SWIG)
155   ENDIF(SALOME_USE_SALOMEOBJECT)
156 ENDIF(SALOME_USE_PYCONSOLE)
157
158 ##
159 # Full (CORBA) SALOME packages
160 ##
161 IF(NOT SALOME_LIGHT_ONLY)
162   ADD_SUBDIRECTORY(TOOLSGUI)
163   ADD_SUBDIRECTORY(SalomeApp)
164   ADD_SUBDIRECTORY(Session)
165   ADD_SUBDIRECTORY(GuiHelpers)
166   ADD_SUBDIRECTORY(TreeData)
167 ENDIF(NOT SALOME_LIGHT_ONLY)