Salome HOME
Debug of CMake build procedure
[modules/yacs.git] / src / CMakeLists.txt
1 # Copyright (C) 2012-2014  CEA/DEN, EDF R&D
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   bases engine wrappergen yacsorb salomeloader
25   pmml
26   )
27
28 ##
29 # KERNEL
30 ##
31 IF(SALOME_YACS_USE_KERNEL)
32   SET(SUBDIRS_KERNEL
33     runtime yacsloader
34     )
35 ENDIF()
36
37 ##
38 # SWIG wrapping
39 ##
40 IF(SALOME_YACS_USE_SWIG)
41   SET(SUBDIRS_SWIG
42     engine_swig
43   )
44   IF(SALOME_YACS_USE_KERNEL)
45     LIST(APPEND SUBDIRS_SWIG
46       runtime_swig yacsloader_swig
47     )
48   ENDIF()
49 ENDIF()
50
51 ##
52 # GUI
53 ##
54 IF(SALOME_BUILD_GUI)
55   SET(SUBDIRS_GUI
56     pyqt hmi salomewrap genericgui salomegui
57     )
58   IF(SALOME_YACS_USE_SWIG)
59     LIST(APPEND SUBDIRS_GUI
60       salomegui_swig
61       )
62   ENDIF()
63 ENDIF()
64
65 SET(SUBDIRS
66   ${SUBDIRS_COMMON}
67   ${SUBDIRS_KERNEL}
68   ${SUBDIRS_SWIG}
69   ${SUBDIRS_GUI}
70 )
71
72 FOREACH(dir ${SUBDIRS})
73   ADD_SUBDIRECTORY(${dir})
74 ENDFOREACH(dir ${SUBDIRS})