Salome HOME
oubli de FrontTrack
[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   ADAPT
44   ADAPT_I
45   ADAPTFrontTrack
46   ADAPTFrontTrack_SWIG
47 )
48
49 IF(SALOME_SMESH_ENABLE_MEFISTO)
50   SET(SUBDIRS_MEFISTO2 MEFISTO2)
51 ENDIF(SALOME_SMESH_ENABLE_MEFISTO)
52
53 ##
54 # CGNS
55 ##
56 IF(SALOME_SMESH_USE_CGNS)
57   SET(SUBDIRS_CGNS
58     DriverCGNS
59   )
60 ENDIF(SALOME_SMESH_USE_CGNS)
61
62 ##
63 # GUI
64 ##
65 IF(SALOME_BUILD_GUI)
66   SET(SUBDIRS_GUI OBJECT
67                   SMESHFiltersSelection
68                   SMESHGUI
69                   PluginUtils
70                   SMESH_SWIG_WITHIHM
71                   StdMeshersGUI
72                   ADAPTGUI
73   )
74 ENDIF(SALOME_BUILD_GUI)
75
76 SET(SUBDIRS
77   ${SUBDIRS_COMMON}
78   ${SUBDIRS_MEFISTO2}
79   ${SUBDIRS_CGNS}
80   ${SUBDIRS_GUI}
81 )
82
83 FOREACH(dir ${SUBDIRS})
84  ADD_SUBDIRECTORY(${dir})
85 ENDFOREACH(dir ${SUBDIRS})