Salome HOME
Adaptative maintenance of GEOM for new SalomePyConsole.
[modules/geom.git] / src / Tools / t_shape / CMakeLists.txt
1 # Copyright (C) 2012-2014  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 IF(SALOME_BUILD_GUI)
20   INCLUDE(UsePyQt)
21 ENDIF()
22
23 # --- scripts ---
24
25 # base scripts
26 SET(base_SCRIPTS
27   __init__.py
28   t_shape_builder.py
29   )
30
31 IF(SALOME_BUILD_GUI)
32    # gui scripts 
33    SET(gui_SCRIPTS
34      t_shape_dialog.py
35      t_shape_dialog.ui
36      t_shape_progress.py
37      )
38
39   # uic files / to be processed by pyuic
40   SET(_pyuic_files
41     t_shape_dialog.ui
42     )
43
44   # scripts / pyuic wrappings
45   PYQT_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
46 ENDIF()
47
48 # --- rules ---
49
50 SALOME_INSTALL_SCRIPTS("${base_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
51
52 IF(SALOME_BUILD_GUI)
53   SALOME_INSTALL_SCRIPTS("${gui_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
54   SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
55 ENDIF()