Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ if(UNIX)
target_include_directories(xrobotoolkit_sdk PUBLIC
${PROJECT_SOURCE_DIR}/include
)
target_link_directories(xrobotoolkit_sdk PUBLIC ${PROJECT_SOURCE_DIR}/lib)
target_link_directories(xrobotoolkit_sdk PUBLIC ${PROJECT_SOURCE_DIR}/lib /opt/apps/roboticsservice/SDK/x64)
endif()
target_link_libraries(xrobotoolkit_sdk PUBLIC
PXREARobotSDK
)
set_target_properties(xrobotoolkit_sdk PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH /opt/apps/roboticsservice/SDK/x64)
endif()

# Install the Python module
install(TARGETS xrobotoolkit_sdk
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # Installs to <prefix>/lib
# You might want a Python-specific path like:
# DESTINATION lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages
LIBRARY DESTINATION . # Installs to wheel root for uv/pip
)
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build-system]
requires = ["scikit-build-core>=0.8", "pybind11>=2.11"]
build-backend = "scikit_build_core.build"

[project]
name = "xrobotoolkit_sdk"
version = "1.0.2"
requires-python = ">=3.10"

[tool.scikit-build]
wheel.install-dir = "."