1# This CMake script installs the LLDB python module from the build directory 2# to the install directory. 3 4# FIXME: if a non-standard version of python is requested, the cmake macro 5# below will need Python_ADDITIONAL_VERSIONS set in order to find it. 6include(FindPythonInterp) 7 8SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) 9 10SET(lldb_module_src ${CMAKE_CURRENT_BINARY_DIR}/lib/${PYTHON_DIRECTORY}) 11SET(lldb_module_dest ${CMAKE_INSTALL_PREFIX}/lib) 12 13MESSAGE(STATUS "Installing LLDB python module from: ${lldb_module_src} to ${lldb_module_dest}") 14FILE(COPY "${lldb_module_src}" DESTINATION "${lldb_module_dest}") 15