diff --git a/CMakeLists.txt b/CMakeLists.txt index ccd55b9b..bd561c21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/pyproject.toml b/pyproject.toml index aff9996e..77203496 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]