Salome HOME
Merge remote branch 'origin/hydro/imps_2015'
[modules/gui.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2016  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 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 # CAF package (not compilable while TDocStd_Application::Formats is removed)
36 IF(CAS_VERSION_STR VERSION_LESS "7.0.1")
37   ADD_SUBDIRECTORY(CAF)
38 ENDIF()
39 ADD_SUBDIRECTORY(CAM)
40 ADD_SUBDIRECTORY(LogWindow)
41 ADD_SUBDIRECTORY(Prs)
42 ADD_SUBDIRECTORY(Event)
43 ADD_SUBDIRECTORY(ViewerData)
44 ADD_SUBDIRECTORY(ViewerTools)
45 ADD_SUBDIRECTORY(ImageComposer)
46 ADD_SUBDIRECTORY(GUI_PY)
47
48 ##
49 # SALOME object
50 ##
51 IF(SALOME_USE_SALOMEOBJECT)
52   ADD_SUBDIRECTORY(OBJECT)
53 ENDIF(SALOME_USE_SALOMEOBJECT)
54
55 ##
56 # OpenGL utils
57 ##
58 IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
59   ADD_SUBDIRECTORY(OpenGLUtils)
60 ENDIF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
61
62 ##
63 # GL viewer
64 ##
65 IF(SALOME_USE_GLVIEWER)
66   ADD_SUBDIRECTORY(GLViewer)
67 ENDIF(SALOME_USE_GLVIEWER)
68
69 ##
70 # VTK viewer
71 ##
72 IF(SALOME_USE_VTKVIEWER)
73   ADD_SUBDIRECTORY(VTKViewer)
74   IF(SALOME_USE_SALOMEOBJECT)
75     ADD_SUBDIRECTORY(SVTK)
76   ENDIF(SALOME_USE_SALOMEOBJECT)
77 ENDIF(SALOME_USE_VTKVIEWER)
78
79 ##
80 # OCC viewer
81 ##
82 IF(SALOME_USE_OCCVIEWER)
83   ADD_SUBDIRECTORY(OCCViewer)
84   IF(SALOME_USE_SALOMEOBJECT)
85     ADD_SUBDIRECTORY(SOCC)
86   ENDIF(SALOME_USE_SALOMEOBJECT)
87 ENDIF(SALOME_USE_OCCVIEWER)
88
89 ##
90 # Plot2d viewer
91 ##
92 IF(SALOME_USE_PLOT2DVIEWER)
93   ADD_SUBDIRECTORY(Plot2d)
94   IF(SALOME_USE_SALOMEOBJECT)
95     ADD_SUBDIRECTORY(SPlot2d)
96   ENDIF(SALOME_USE_SALOMEOBJECT)
97 ENDIF(SALOME_USE_PLOT2DVIEWER)
98
99 ##
100 # Qx scene viewer
101 ##
102 IF(SALOME_USE_QXGRAPHVIEWER)
103   ADD_SUBDIRECTORY(QxScene)
104 ENDIF(SALOME_USE_QXGRAPHVIEWER)
105
106 # Graphics viewer
107 ##
108 IF(SALOME_USE_GRAPHICSVIEW)
109   ADD_SUBDIRECTORY(GraphicsView)
110 ENDIF(SALOME_USE_GRAPHICSVIEW)
111
112 # ParaView Viewer
113 IF(SALOME_USE_PVVIEWER)
114   ADD_SUBDIRECTORY(PVViewer)
115   ADD_SUBDIRECTORY(PVServerService)
116 ENDIF()
117
118 ##
119 # Python Viewer
120 ##
121 IF(SALOME_USE_PYVIEWER)
122   ADD_SUBDIRECTORY(PyViewer)
123 ENDIF(SALOME_USE_PYVIEWER)
124
125 ##
126 # Python-based packages, part 1 (generic)
127 ##
128 IF(SALOME_USE_PYCONSOLE)
129   ADD_SUBDIRECTORY(SALOME_PYQT)
130 ENDIF(SALOME_USE_PYCONSOLE)
131
132
133 ##
134 # Light SALOME packages
135 ##
136 ADD_SUBDIRECTORY(LightApp)
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)