Commit 426b342a authored by T.J. Corona's avatar T.J. Corona

Add SMTK_PYTHON_MODULEDIR to smtkConfig.cmake

SMTK_PYTHON_MODULEDIR is the location of the smtk python module
relative to smtkConfig.cmake.
parent 883db82a
......@@ -62,6 +62,9 @@ else()
set(SMTK_PYTHON_EXECUTABLE "@smtk_python_executable@")
set(SMTK_PYTHON_LIBRARY "@smtk_python_library@")
set(SMTK_PYTHON_INCLUDE_DIR "@smtk_python_include_dir@")
# SMTK_PYTHON_MDOULEDIR is the location of the smtk python module relative
# to the location of this file.
set(SMTK_PYTHON_MODULEDIR "@smtk_python_moduledir@")
if (SMTK_PYTHON_EXECUTABLE AND NOT PYTHON_EXECUTABLE)
set(PYTHON_EXECUTABLE ${SMTK_PYTHON_EXECUTABLE})
......
......@@ -742,6 +742,7 @@ if (SMTK_ENABLE_PYTHON_WRAPPING)
set(smtk_python_executable ${PYTHON_EXECUTABLE})
set(smtk_python_library ${PYTHON_LIBRARIES})
set(smtk_python_include_dir ${PYTHON_INCLUDE_DIRS})
set(smtk_python_moduledir)
endif ()
set(SMTK_VTK_MODULE_DIR "${CMAKE_BINARY_DIR}/lib/cmake/${PROJECT_NAME}/${PROJECT_VERSION}")
......@@ -776,6 +777,9 @@ if (SMTK_RELOCATABLE_INSTALL)
set(smtk_python_executable)
set(smtk_python_library)
set(smtk_python_include_dir)
file(RELATIVE_PATH smtk_python_moduledir
${CMAKE_INSTALL_PREFIX}/${SMTK_INSTALL_CONFIG_DIR}
${CMAKE_INSTALL_PREFIX}/${SMTK_PYTHON_MODULEDIR})
endif ()
endif()
......
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