Skip to content

Commit

Permalink
stub のところも囲まないといけなさそう
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Jun 10, 2024
1 parent 6053be0 commit 20e39e0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,16 @@ nanobind_add_module(
src/sora_video_source.cpp
)

nanobind_add_stub(
sora_sdk_ext_stub
MODULE sora_sdk_ext
OUTPUT sora_sdk_ext.pyi
PYTHON_PATH $<TARGET_FILE_DIR:sora_sdk_ext>
DEPENDS sora_sdk_ext
MARKER_FILE py.typed
)
if (SORA_GEN_PYI)
nanobind_add_stub(
sora_sdk_ext_stub
MODULE sora_sdk_ext
OUTPUT sora_sdk_ext.pyi
PYTHON_PATH $<TARGET_FILE_DIR:sora_sdk_ext>
DEPENDS sora_sdk_ext
MARKER_FILE py.typed
)
endif()

set_target_properties(sora_sdk_ext PROPERTIES CXX_STANDARD 20 C_STANDARD 20)
set_target_properties(sora_sdk_ext PROPERTIES POSITION_INDEPENDENT_CODE ON)
Expand Down

0 comments on commit 20e39e0

Please sign in to comment.