1 # Copyright (C) 2012 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
20 INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
23 ${CMAKE_CURRENT_BINARY_DIR}
25 # Python modules to be installed
26 SET(mypkgpython_PYTHON
33 SALOME_INSTALL_SCRIPTS("${mypkgpython_PYTHON}" ${GUI_salomepythondir}/salome/gui)
36 SelectVarsDialog_ui.py
41 FOREACH(output ${PYUIC_FILES})
42 STRING(REPLACE "_ui.py" ".ui" input ${output})
43 SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
44 SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
47 COMMAND ${PYQT_PYUIC_EXECUTABLE} -o ${output} ${input}
48 MAIN_DEPENDENCY ${input}
50 ENDFOREACH(output ${PYUIC_FILES})
52 ADD_CUSTOM_TARGET(BUILD_PY_UI_FILES ALL DEPENDS ${PYUIC_FILES})
54 FOREACH(output ${PYUIC_FILES})
55 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION ${GUI_salomepythondir}/salome/gui)
56 ENDFOREACH(output ${PYUIC_FILES})