Skip to content

Commit

Permalink
PR #13079 from eufrizz: Install pyrealsense2 .so and __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jun 26, 2024
2 parents fcea8fb + cc3759b commit bb13f5e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ install(TARGETS pybackend2 pyrealsense2
)

target_include_directories(pybackend2 PRIVATE ../../src)

else() # not BUILD_LEGACY_PYBACKEND

install(TARGETS pyrealsense2
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}
ARCHIVE DESTINATION ${PYTHON_INSTALL_DIR}
)

endif() # BUILD_LEGACY_PYBACKEND

write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/pyrealsense2ConfigVersion.cmake"
Expand All @@ -192,6 +201,10 @@ install(FILES "${CMAKE_BINARY_DIR}/wrappers/python/pyrealsense2ConfigVersion.cma
DESTINATION ${CMAKECONFIG_PY_INSTALL_DIR}
)

install(FILES pyrealsense2/__init__.py
DESTINATION ${PYTHON_INSTALL_DIR}
)

target_include_directories(pyrealsense2 PRIVATE ../../src)

if (BUILD_PYTHON_DOCS)
Expand Down

0 comments on commit bb13f5e

Please sign in to comment.