Home | History | Annotate | Download | only in scripts
      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.
      6 include(FindPythonInterp)
      7 
      8 SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
      9 
     10 SET(lldb_module_src ${CMAKE_CURRENT_BINARY_DIR}/lib/${PYTHON_DIRECTORY})
     11 SET(lldb_module_dest ${CMAKE_INSTALL_PREFIX}/lib)
     12 
     13 MESSAGE(STATUS "Installing LLDB python module from: ${lldb_module_src} to ${lldb_module_dest}")
     14 FILE(COPY "${lldb_module_src}" DESTINATION "${lldb_module_dest}")
     15