Skip to content

Commit

Permalink
Install pyrealsense2 .so and __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eufrizz committed Jun 25, 2024
1 parent 48e1cda commit 0fc2d49
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ install(TARGETS pybackend2 pyrealsense2
)

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

else() # not BUILD_LEGACY_PYBACKEND

install(TARGETS pyrealsense2
EXPORT pyrealsense2Targets
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 +202,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 0fc2d49

Please sign in to comment.