mirror of https://github.com/sipwise/sems.git
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1529 8eb893ce-cfd4-0310-b710-fb5ebe64c474sayer/1.4-spce2.6
parent
a21f24d63b
commit
71d295163a
@ -1,6 +0,0 @@
|
||||
FOREACH (ivr_file ${ivr_files})
|
||||
EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${ivr_file}.py')")
|
||||
EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${ivr_file}.py')")
|
||||
INSTALL (FILES ${ivr_file}.py ${ivr_file}.pyc ${ivr_file}.pyo DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/ivr)
|
||||
ENDFOREACH()
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
FUNCTION(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
|
||||
FOREACH (python_file ${python_files})
|
||||
EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}.py')")
|
||||
EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}.py')")
|
||||
INSTALL (FILES ${python_file}.py ${python_file}.pyc ${python_file}.pyo DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir})
|
||||
ENDFOREACH()
|
||||
ENDFUNCTION()
|
||||
Loading…
Reference in new issue