FIND_PACKAGE(SalomeSIP)
FIND_PACKAGE(SalomePYQT4)
+INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
+
SET(BINDIR bin/salome)
SET(RESDIR share/salome/resources/parametric)
SET(LIBDIR lib/salome)
ADD_SUBDIRECTORY(PARAMETRIC)
ADD_SUBDIRECTORY(PARAMETRICGUI)
ADD_SUBDIRECTORY(salome)
-
-INSTALL(DIRECTORY salome DESTINATION ${PYTHONDIR} FILES_MATCHING PATTERN "*.py")
# You should have received a copy of the GNU Lesser General Public License
# along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
-INSTALL(FILES PARAMETRIC.py DESTINATION ${BINDIR})
+INSTALL_AND_COMPILE_PYTHON_FILE(PARAMETRIC.py ${BINDIR})
# You should have received a copy of the GNU Lesser General Public License
# along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
-INSTALL(FILES PARAMETRICGUI.py DESTINATION ${BINDIR})
+INSTALL_AND_COMPILE_PYTHON_FILE(PARAMETRICGUI.py ${BINDIR})
# along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
ADD_SUBDIRECTORY(parametric)
+
+SET(PYTHON_FILES
+ __init__.py
+)
+
+INSTALL_AND_COMPILE_PYTHON_FILE("${PYTHON_FILES}" ${PYTHONDIR}/salome)
# along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
ADD_SUBDIRECTORY(gui)
+
+SET(PYTHON_FILES
+ __init__.py
+ genjob.py
+ persistence.py
+ study.py
+)
+
+INSTALL_AND_COMPILE_PYTHON_FILE("${PYTHON_FILES}" ${PYTHONDIR}/salome/parametric)
# You should have received a copy of the GNU Lesser General Public License
# along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
+SET(PYTHON_FILES
+ __init__.py
+ definevalues.py
+ execparams.py
+ genjob.py
+ mainpanel.py
+ selectvars.py
+ wizard.py
+)
SET(PYUIC_FILES wizard_ui.py varrange_ui.py execparams_ui.py genjob_ui.py definevalues_ui.py)
SET(INSTALL_DIR ${PYTHONDIR}/salome/parametric/gui)
COMMAND ${PYQT_PYUIC_EXECUTABLE} -o ${OUTPUT} ${INPUT}
MAIN_DEPENDENCY ${INPUT}
)
- INSTALL(FILES ${OUTPUT} DESTINATION ${INSTALL_DIR})
+ SET(PYTHON_FILES ${PYTHON_FILES} ${OUTPUT})
ENDFOREACH(OUTPUT ${PYUIC_FILES})
ADD_CUSTOM_TARGET(BUILD_PY_UI_FILES ALL DEPENDS ${PYUIC_FILES})
+
+INSTALL_AND_COMPILE_PYTHON_FILE("${PYTHON_FILES}" ${INSTALL_DIR})