Salome HOME
41937f6e9ae9ced94ead0657398db0315ee679ac
[modules/gui.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2014  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 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 ##
89 # Python-based packages
90 ##
91 IF(SALOME_USE_PYCONSOLE) 
92   SET(SUBDIRS_PYCONSOLE PyInterp PyConsole)
93   SET(SUBDIRS_PYTHON SALOME_SWIG SALOME_PY SALOME_PYQT)
94 ENDIF(SALOME_USE_PYCONSOLE)
95
96 ##
97 # Light SALOME packages
98 ##
99 SET(SUBDIRS_LIGHT LightApp ResExporter)
100
101 ##
102 # Full (CORBA) SALOME packages
103 ##
104 IF(NOT SALOME_LIGHT_ONLY)
105   SET(SUBDIRS_CORBA TOOLSGUI Session SalomeApp GuiHelpers TreeData)
106 ENDIF(NOT SALOME_LIGHT_ONLY)
107
108 SET(SUBDIRS
109   ${SUBDIRS_COMMON}
110   ${SUBDIRS_OBJECT}
111   ${SUBDIRS_GLVIEWER}
112   ${SUBDIRS_VTKVIEWER}
113   ${SUBDIRS_OCCVIEWER}
114   ${SUBDIRS_PLOT2DVIEWER}
115   ${SUBDIRS_QXGRAPHVIEWER}
116   ${SUBDIRS_GRAPHICSVIEW}
117   ${SUBDIRS_PYCONSOLE}
118   ${SUBDIRS_LIGHT}
119   ${SUBDIRS_CORBA}
120   ${SUBDIRS_PYTHON}
121 )
122
123 FOREACH(dir ${SUBDIRS})
124  ADD_SUBDIRECTORY(${dir})
125 ENDFOREACH(dir ${SUBDIRS})
126