Salome HOME
fe69daed10e8d361f0a997d65e9eb847dd88e881
[modules/gui.git] / src / CMakeLists.txt
1 # Copyright (C) 2012  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.
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
25   Qtx
26   Style
27   DDS
28   QDS
29   ObjBrowser
30   SUIT
31   SUITApp
32   STD
33   CAF
34   CAM
35   LogWindow
36   Prs
37   Event
38   OpenGLUtils
39   GUI_PY
40 )
41
42 ##
43 # SALOME object
44 ##
45 IF(ENABLE_SALOMEOBJECT)
46   SET(SUBDIRS_OBJECT OBJECT)
47 ENDIF(ENABLE_SALOMEOBJECT)
48
49 ##
50 # GL viewer
51 ##
52 IF(ENABLE_GLVIEWER)
53   SET(SUBDIRS_GLVIEWER GLViewer)
54 ENDIF(ENABLE_GLVIEWER)
55
56 ##
57 # VTK viewer
58 ##
59 IF(ENABLE_VTKVIEWER)
60   SET(SUBDIRS_VTKVIEWER VTKViewer)
61
62   IF(ENABLE_SALOMEOBJECT)
63     SET(SUBDIRS_VTKVIEWER ${SUBDIRS_VTKVIEWER} SVTK)
64     SET(SUBDIRS_VIEWERTOOLSViewerTools)
65   ENDIF(ENABLE_SALOMEOBJECT)
66 ENDIF(ENABLE_VTKVIEWER)
67
68 ##
69 # OCC viewer
70 ##
71 IF(ENABLE_OCCVIEWER)
72   SET(SUBDIRS_OCCVIEWER OCCViewer)
73   SET(SUBDIRS_VIEWERTOOLS ViewerTools)
74   
75   IF(ENABLE_SALOMEOBJECT)
76     SET(SUBDIRS_OCCVIEWER ${SUBDIRS_OCCVIEWER} SOCC)
77   ENDIF(ENABLE_SALOMEOBJECT)
78 ENDIF(ENABLE_OCCVIEWER)
79
80 ##
81 # Plot2d viewer
82 ##
83 IF(ENABLE_PLOT2DVIEWER)
84   SET(SUBDIRS_PLOT2DVIEWER  Plot2d)
85
86   IF(ENABLE_SALOMEOBJECT)
87     SET(SUBDIRS_PLOT2DVIEWER ${SUBDIRS_PLOT2DVIEWER} SPlot2d)
88   ENDIF(ENABLE_SALOMEOBJECT)
89 ENDIF(ENABLE_PLOT2DVIEWER)
90
91 ##
92 # SUPERV graph viewer
93 ##
94 IF(ENABLE_SUPERVGRAPHVIEWER) 
95   SET(SUBDIRS_SUPERVGRAPHVIEWER SUPERVGraph)
96 ENDIF(ENABLE_SUPERVGRAPHVIEWER)
97
98 ##
99 # Qx scene viewer
100 ##
101 ###VSR: QxGraph has been replaced by QxScene
102 ###SUBDIRS_QXGRAPHVIEWER = QxGraph
103 IF(ENABLE_QXGRAPHVIEWER)
104   SET(SUBDIRS_QXGRAPHVIEWER QxScene)
105 ENDIF(ENABLE_QXGRAPHVIEWER)
106
107 ##
108 # Python console (base)
109 ##
110 IF(ENABLE_PYCONSOLE) 
111   SET(SUBDIRS_PYCONSOLE PyInterp PyConsole)
112 ENDIF(ENABLE_PYCONSOLE)
113
114 ##
115 # Light SALOME packages
116 ##
117 SET(SUBDIRS_LIGHT
118   LightApp
119   ResExporter
120 )
121
122 ##
123 # Full (CORBA) SALOME packages
124 ##
125 IF(GUI_ENABLE_CORBA)
126   SET(SUBDIRS_CORBA
127     TOOLSGUI
128     Session
129     SalomeApp
130     GuiHelpers
131     TreeData
132   )
133 ENDIF(GUI_ENABLE_CORBA)
134
135 ##
136 # Extra Python packages
137 ##
138 IF(ENABLE_PYCONSOLE)
139   SET(SUBDIRS_PY_LIGHT
140     SALOME_SWIG
141     SALOME_PY
142     SALOME_PYQT
143   )
144 ENDIF(ENABLE_PYCONSOLE)
145
146 SET(SUBDIRS
147   ${SUBDIRS_COMMON}
148   ${SUBDIRS_OBJECT}
149   ${SUBDIRS_VIEWERTOOLS}
150   ${SUBDIRS_GLVIEWER}
151   ${SUBDIRS_VTKVIEWER}
152   ${SUBDIRS_OCCVIEWER}
153   ${SUBDIRS_PLOT2DVIEWER}
154   ${SUBDIRS_SUPERVGRAPHVIEWER}
155   ${SUBDIRS_QXGRAPHVIEWER}
156   ${SUBDIRS_PYCONSOLE}
157   ${SUBDIRS_LIGHT}
158   ${SUBDIRS_CORBA}
159   ${SUBDIRS_PY_LIGHT}
160 )
161
162 FOREACH(dir ${SUBDIRS})
163  ADD_SUBDIRECTORY(${dir})
164 ENDFOREACH(dir ${SUBDIRS})
165