Commit e802dbb8 authored by John Tourtellott's avatar John Tourtellott

Update smtk.cmake per changes to SMTK release v1.0.0rc1

* Name of library changed
* Location of python module changed
parent c3277865
include(GNUInstallDirs)
if (UNIX) #Apple should never happen
set (SHARED_LIBRARY_SUFFIX "so")
set (PYTHON_SITE "lib/python2.7/site-packages")
......@@ -23,17 +26,16 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/SMTKPlugin
set(plugin_install_dir ${SMTK_BIN_DIR}/${PYTHON_INSTALL}/smtk)
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${plugin_install_dir})
set(py_files_libs ${SMTK_BIN_DIR}/lib/SMTKCorePython.${SHARED_LIBRARY_SUFFIX}
set(py_files_libs ${SMTK_BIN_DIR}/lib/smtkCorePython.${SHARED_LIBRARY_SUFFIX}
${SMTK_BIN_DIR}/${LIB_SHIBOKEN_PY}
${SMTK_BIN_DIR}/${PYTHON_SITE}/shiboken.${SHARED_LIBRARY_SUFFIX}
${SMTK_BIN_DIR}/python/smtk/simple.py)
${SMTK_BIN_DIR}/${PYTHON_SITE}/shiboken.${SHARED_LIBRARY_SUFFIX})
foreach(lib ${py_files_libs})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${lib} ${TMP_DIR}/SMTKPlugin)
endforeach()
execute_process(
COMMAND ${pv_python_executable} ${CMAKE_CURRENT_LIST_DIR}/remove_code.py
${SMTK_BIN_DIR}/python/smtk/__init__.py
${SMTK_BIN_DIR}/${CMAKE_INSTALL_LIBEXECDIR}/python/site-packages/smtk/__init__.py
${TMP_DIR}/SMTKPlugin/__init__.py
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment