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