Skip to content

Commit

Permalink
fix build wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Jan 8, 2024
1 parent ff68c59 commit 24ae2d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ if(BUILD_PYTHON_MODULE)

set_target_properties(python_ruckig PROPERTIES OUTPUT_NAME ruckig)
set_target_properties(python_ruckig PROPERTIES ARCHIVE_OUTPUT_NAME python_ruckig)

install(TARGETS python_ruckig LIBRARY DESTINATION .)
endif()


# Add support for installation
include(CMakePackageConfigHelpers)

# Install headers
install(DIRECTORY include/ruckig DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

# Install library
install(TARGETS ruckig
EXPORT ${PROJECT_NAME}-targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

# Install CMake config files
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ Issues = "https://github.com/pantor/ruckig/issues"
requires = ["scikit-build-core", "pybind11"]
build-backend = "scikit_build_core.build"

[tool.scikit-build]
cmake.targets = ["python_ruckig"]

[tool.scikit-build.cmake.define]
BUILD_EXAMPLES = "OFF"
BUILD_PYTHON_MODULE = "ON"
BUILD_TESTS = "OFF"
BUILD_SHARED_LIBS = "OFF"


[tool.ruff]
Expand Down

0 comments on commit 24ae2d7

Please sign in to comment.