Skip to content

Commit

Permalink
Fix installation of __init__.py file for wearables bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Sep 26, 2024
1 parent 9836f84 commit d059b6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/python-wearables/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ set_target_properties(pybind11_wearables PROPERTIES

install(TARGETS pybind11_wearables DESTINATION ${PYTHON_INSTDIR})

file(GENERATE
OUTPUT "${WEARABLES_PYTHON_PACKAGE}/__init__.py"
CONTENT "from .bindings import *\n")
# Install the __init__.py file
install(FILES "${WEARABLES_PYTHON_PACKAGE}/__init__.py"
DESTINATION ${PYTHON_INSTDIR})
Expand Down

0 comments on commit d059b6f

Please sign in to comment.