Skip to content

Commit 8455b12

Browse files
committed
Wrap in dir
1 parent 3924cdb commit 8455b12

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ if (ENABLE_PYTHON_WRAPPER)
301301
SWIG_LINK_LIBRARIES(voxec libvoxec ${Python_LIBRARIES})
302302
endif()
303303

304-
INSTALL(FILES "${CMAKE_BINARY_DIR}/voxec.py"
305-
DESTINATION "${Python_SITEARCH}/")
304+
INSTALL(FILES "${CMAKE_BINARY_DIR}/voxec.py" "${CMAKE_CURRENT_SOURCE_DIR}/module/__init__.py"
305+
DESTINATION "${Python_SITEARCH}/voxec/")
306306
INSTALL(TARGETS _voxec
307-
DESTINATION "${Python_SITEARCH}/")
307+
DESTINATION "${Python_SITEARCH}/voxec/")
308308
endif()
309309

310310
if (ENABLE_TESTS)

module/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .voxec import *

0 commit comments

Comments
 (0)