Salome HOME
Revert wrongly integrated merge
[modules/smesh.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2020  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   SMDS
25   SMESHDS
26   SMESHUtils
27   Controls
28   Driver
29   MEDWrapper
30   DriverMED
31   DriverDAT
32   DriverUNV
33   DriverSTL
34   DriverGMF
35   SMESH
36   SMESH_I
37   SMESHClient
38   SMESH_SWIG
39   StdMeshers
40   StdMeshers_I
41   SMESH_PY
42   Tools
43   SalomeSessionless
44 )
45
46 IF(SALOME_SMESH_ENABLE_MEFISTO)
47   SET(SUBDIRS_MEFISTO2 MEFISTO2)
48 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
49
50 ##
51 # CGNS
52 ##
53 IF(SALOME_SMESH_USE_CGNS)
54   SET(SUBDIRS_CGNS 
55     DriverCGNS
56   )
57 ENDIF(SALOME_SMESH_USE_CGNS)
58
59 ##
60 # GUI
61 ##
62 IF(SALOME_BUILD_GUI)
63   SET(SUBDIRS_GUI OBJECT 
64                   SMESHFiltersSelection 
65                   SMESHGUI 
66                   PluginUtils
67                   SMESH_SWIG_WITHIHM
68                   StdMeshersGUI
69   )
70 ENDIF(SALOME_BUILD_GUI)
71
72 SET(SUBDIRS
73   ${SUBDIRS_COMMON}
74   ${SUBDIRS_MEFISTO2}
75   ${SUBDIRS_CGNS}
76   ${SUBDIRS_GUI}
77 )
78
79 FOREACH(dir ${SUBDIRS})
80  ADD_SUBDIRECTORY(${dir})
81 ENDFOREACH(dir ${SUBDIRS})