Salome HOME
Porting SALOME SMESH module to the CMake build system: initial version.
[modules/smesh.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2013  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 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
21 #
22 # This library is free software; you can redistribute it and/or
23 # modify it under the terms of the GNU Lesser General Public
24 # License as published by the Free Software Foundation; either
25 # version 2.1 of the License.
26 #
27 # This library is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30 # Lesser General Public License for more details.
31 #
32 # You should have received a copy of the GNU Lesser General Public
33 # License along with this library; if not, write to the Free Software
34 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
35 #
36 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
37 #
38
39 ##
40 # Common packages
41 ##
42 SET(SUBDIRS_COMMON
43   SMDS
44   SMESHDS
45   SMESHUtils
46   Controls
47   Driver
48   MEDWrapper
49   DriverMED
50   DriverDAT
51   DriverUNV
52   DriverSTL
53   DriverGMF
54   SMESH
55   SMESH_I
56   SMESHClient
57   SMESH_SWIG
58   MEFISTO2
59   StdMeshers
60   StdMeshers_I
61   SMESH_PY
62   Tools
63 )
64
65 ##
66 # CGNS
67 ##
68 IF(SALOME_SMESH_USE_CGNS)
69   SET(SUBDIRS_CGNS 
70     DriverCGNS
71   )
72 ENDIF(SALOME_SMESH_USE_CGNS)
73
74 ##
75 # GUI
76 ##
77 IF(SALOME_BUILD_GUI)
78   SET(SUBDIRS_GUI OBJECT 
79                   SMESHFiltersSelection 
80                   SMESHGUI 
81                   PluginUtils
82                   SMESH_SWIG_WITHIHM
83                   StdMeshersGUI
84   )
85 ENDIF(SALOME_BUILD_GUI)
86
87 SET(SUBDIRS
88   ${SUBDIRS_COMMON}
89   ${SUBDIRS_CGNS}
90   ${SUBDIRS_GUI}
91 )
92
93 FOREACH(dir ${SUBDIRS})
94  ADD_SUBDIRECTORY(${dir})
95 ENDFOREACH(dir ${SUBDIRS})