Salome HOME
f3d3f8aab79d925df03f258455e7a0c760f6a6e9
[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 SET(SUBDIRS_COMMON
24   CASCatch Qtx HelpBrowser Style DDS QDS ObjBrowser SUIT SUITApp STD CAF
25   CAM LogWindow Prs Event OpenGLUtils ViewerData ViewerTools ImageComposer GUI_PY
26 )
27
28 ##
29 # SALOME object
30 ##
31 IF(SALOME_USE_SALOMEOBJECT)
32   SET(SUBDIRS_OBJECT OBJECT)
33 ENDIF(SALOME_USE_SALOMEOBJECT)
34
35 ##
36 # GL viewer
37 ##
38 IF(SALOME_USE_GLVIEWER)
39   SET(SUBDIRS_GLVIEWER GLViewer)
40 ENDIF(SALOME_USE_GLVIEWER)
41
42 ##
43 # VTK viewer
44 ##
45 IF(SALOME_USE_VTKVIEWER)
46   SET(SUBDIRS_VTKVIEWER VTKViewer)
47
48   IF(SALOME_USE_SALOMEOBJECT)
49     LIST(APPEND SUBDIRS_VTKVIEWER SVTK)
50   ENDIF(SALOME_USE_SALOMEOBJECT)
51 ENDIF(SALOME_USE_VTKVIEWER)
52
53 ##
54 # OCC viewer
55 ##
56 IF(SALOME_USE_OCCVIEWER)
57   SET(SUBDIRS_OCCVIEWER OCCViewer)
58   
59   IF(SALOME_USE_SALOMEOBJECT)
60     LIST(APPEND SUBDIRS_OCCVIEWER SOCC)
61   ENDIF(SALOME_USE_SALOMEOBJECT)
62 ENDIF(SALOME_USE_OCCVIEWER)
63
64 ##
65 # Plot2d viewer
66 ##
67 IF(SALOME_USE_PLOT2DVIEWER)
68   SET(SUBDIRS_PLOT2DVIEWER Plot2d)
69
70   IF(SALOME_USE_SALOMEOBJECT)
71     LIST(APPEND SUBDIRS_PLOT2DVIEWER SPlot2d)
72   ENDIF(SALOME_USE_SALOMEOBJECT)
73 ENDIF(SALOME_USE_PLOT2DVIEWER)
74
75 ##
76 # Qx scene viewer
77 ##
78 IF(SALOME_USE_QXGRAPHVIEWER)
79   SET(SUBDIRS_QXGRAPHVIEWER QxScene)
80 ENDIF(SALOME_USE_QXGRAPHVIEWER)
81
82 # Graphics viewer
83 ##
84 IF(SALOME_USE_GRAPHICSVIEW)
85   SET(SUBDIRS_GRAPHICSVIEW GraphicsView)
86 ENDIF(SALOME_USE_GRAPHICSVIEW)
87
88 # ParaView Viewer
89 IF(SALOME_USE_PVVIEWER)
90   SET(SUBDIRS_PVVIEWER PVViewer)
91 ENDIF()
92
93 ##
94 # Python Viewer
95 ##
96 IF(SALOME_USE_PYVIEWER)
97   SET(SUBDIRS_PYVIEWER PyEditor PyViewer)
98 ENDIF(SALOME_USE_PYVIEWER)
99
100
101 ##
102 # Python-based packages
103 ##
104 IF(SALOME_USE_PYCONSOLE) 
105   SET(SUBDIRS_PYCONSOLE PyInterp PyConsole)
106   SET(SUBDIRS_PYTHON SALOME_PYQT)
107   IF(SALOME_USE_VTKVIEWER)
108     LIST(APPEND SUBDIRS_PYTHON SALOME_PY)
109   ENDIF()
110   IF(SALOME_USE_SALOMEOBJECT)
111     LIST(APPEND SUBDIRS_PYTHON SALOME_SWIG)
112   ENDIF()
113 ENDIF(SALOME_USE_PYCONSOLE)
114
115 ##
116 # Light SALOME packages
117 ##
118 SET(SUBDIRS_LIGHT LightApp ResExporter)
119
120 ##
121 # Full (CORBA) SALOME packages
122 ##
123 IF(NOT SALOME_LIGHT_ONLY)
124   SET(SUBDIRS_CORBA TOOLSGUI SalomeApp Session GuiHelpers TreeData)
125 ENDIF(NOT SALOME_LIGHT_ONLY)
126
127 SET(SUBDIRS
128   ${SUBDIRS_COMMON}
129   ${SUBDIRS_OBJECT}
130   ${SUBDIRS_GLVIEWER}
131   ${SUBDIRS_VTKVIEWER}
132   ${SUBDIRS_OCCVIEWER}
133   ${SUBDIRS_PLOT2DVIEWER}
134   ${SUBDIRS_QXGRAPHVIEWER}
135   ${SUBDIRS_PVVIEWER}
136   ${SUBDIRS_GRAPHICSVIEW}
137   ${SUBDIRS_PYVIEWER}
138   ${SUBDIRS_PYCONSOLE}
139   ${SUBDIRS_LIGHT}
140   ${SUBDIRS_CORBA}
141   ${SUBDIRS_PYTHON}
142 )
143
144 FOREACH(dir ${SUBDIRS})
145  ADD_SUBDIRECTORY(${dir})
146 ENDFOREACH(dir ${SUBDIRS})
147