]> SALOME platform Git repositories - modules/gui.git/blob - src/CMakeLists.txt
Salome HOME
Second integration of Salome On Demand
[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 ADD_SUBDIRECTORY(SalomeApprc_utils)
45
46 ##
47 # SALOME object
48 ##
49 IF(SALOME_USE_SALOMEOBJECT)
50   ADD_SUBDIRECTORY(OBJECT)
51 ENDIF(SALOME_USE_SALOMEOBJECT)
52
53 ##
54 # OpenGL utils
55 ##
56 IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
57   ADD_SUBDIRECTORY(OpenGLUtils)
58 ENDIF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
59
60 ##
61 # GL viewer
62 ##
63 IF(SALOME_USE_GLVIEWER)
64   ADD_SUBDIRECTORY(GLViewer)
65 ENDIF(SALOME_USE_GLVIEWER)
66
67 ##
68 # VTK viewer
69 ##
70 IF(SALOME_USE_VTKVIEWER)
71   ADD_SUBDIRECTORY(VTKViewer)
72   IF(SALOME_USE_SALOMEOBJECT)
73     ADD_SUBDIRECTORY(SVTK)
74   ENDIF(SALOME_USE_SALOMEOBJECT)
75 ENDIF(SALOME_USE_VTKVIEWER)
76
77 ##
78 # OCC viewer
79 ##
80 IF(SALOME_USE_OCCVIEWER)
81   ADD_SUBDIRECTORY(OCCViewer)
82   IF(SALOME_USE_SALOMEOBJECT)
83     ADD_SUBDIRECTORY(SOCC)
84   ENDIF(SALOME_USE_SALOMEOBJECT)
85 ENDIF(SALOME_USE_OCCVIEWER)
86
87 ##
88 # ParaView3D Viewer
89 ##
90 IF(SALOME_USE_PV3DVIEWER)
91   ADD_SUBDIRECTORY(PV3DViewer)
92   # ADD_SUBDIRECTORY(PV3DServerService)
93   IF(SALOME_USE_SALOMEOBJECT)
94     ADD_SUBDIRECTORY(SPV3D)
95   ENDIF(SALOME_USE_SALOMEOBJECT)
96 ENDIF()
97
98 ##
99 # Plot2d viewer
100 ##
101 IF(SALOME_USE_PLOT2DVIEWER)
102   ADD_SUBDIRECTORY(Plot2d)
103   IF(SALOME_USE_SALOMEOBJECT)
104     ADD_SUBDIRECTORY(SPlot2d)
105   ENDIF(SALOME_USE_SALOMEOBJECT)
106 ENDIF(SALOME_USE_PLOT2DVIEWER)
107
108 ##
109 # Qx scene viewer
110 ##
111 IF(SALOME_USE_QXGRAPHVIEWER)
112   ADD_SUBDIRECTORY(QxScene)
113 ENDIF(SALOME_USE_QXGRAPHVIEWER)
114
115 # Graphics viewer
116 ##
117 IF(SALOME_USE_GRAPHICSVIEW)
118   ADD_SUBDIRECTORY(GraphicsView)
119 ENDIF(SALOME_USE_GRAPHICSVIEW)
120
121 # ParaView Viewer
122 IF(SALOME_USE_PVVIEWER)
123   ADD_SUBDIRECTORY(PVViewer)
124   ADD_SUBDIRECTORY(PVServerService)
125 ENDIF()
126
127 ##
128 # Python Viewer
129 ##
130 IF(SALOME_USE_PYVIEWER)
131   ADD_SUBDIRECTORY(PyViewer)
132 ENDIF(SALOME_USE_PYVIEWER)
133
134 ##
135 # Python-based packages, part 1 (generic)
136 ##
137 IF(SALOME_USE_PYCONSOLE)
138   ADD_SUBDIRECTORY(SALOME_PYQT)
139 ENDIF(SALOME_USE_PYCONSOLE)
140
141
142 ##
143 # Light SALOME packages
144 ##
145 ADD_SUBDIRECTORY(LightApp)
146
147 ##
148 # Python-based packages, part 2 (LightApp-dependent)
149 ##
150 IF(SALOME_USE_PYCONSOLE) 
151   IF(SALOME_USE_VTKVIEWER)
152     ADD_SUBDIRECTORY(SALOME_PY)
153   ENDIF(SALOME_USE_VTKVIEWER)
154   IF(SALOME_USE_SALOMEOBJECT)
155     ADD_SUBDIRECTORY(SALOME_SWIG)
156   ENDIF(SALOME_USE_SALOMEOBJECT)
157 ENDIF(SALOME_USE_PYCONSOLE)
158
159 ##
160 # Full (CORBA) SALOME packages
161 ##
162 IF(NOT SALOME_LIGHT_ONLY)
163   ADD_SUBDIRECTORY(TOOLSGUI)
164   ADD_SUBDIRECTORY(SalomeApp)
165   ADD_SUBDIRECTORY(Session)
166   ADD_SUBDIRECTORY(GuiHelpers)
167   ADD_SUBDIRECTORY(TreeData)
168 ENDIF(NOT SALOME_LIGHT_ONLY)