1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 ${CMAKE_CURRENT_BINARY_DIR}
23 # Python modules to be installed
24 SET(mypkgpython_PYTHON
31 SALOME_INSTALL_SCRIPTS("${mypkgpython_PYTHON}" ${SALOME_INSTALL_PYTHON}/salome/gui)
34 SelectVarsDialog_ui.py
39 FOREACH(output ${PYUIC_FILES})
40 STRING(REPLACE "_ui.py" ".ui" input ${output})
41 SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
42 SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
45 COMMAND ${PYQT_PYUIC_EXECUTABLE} -o ${output} ${input}
46 MAIN_DEPENDENCY ${input}
48 #${PYQT_PYUIC_EXECUTABLE}
49 ENDFOREACH(output ${PYUIC_FILES})
51 ADD_CUSTOM_TARGET(BUILD_PY_UI_FILES ALL DEPENDS ${PYUIC_FILES})
53 FOREACH(output ${PYUIC_FILES})
54 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION ${SALOME_INSTALL_PYTHON}/salome/gui)
55 ENDFOREACH(output ${PYUIC_FILES})