Skip to content

Commit 8401ea6

Browse files
committed
create bindings
1 parent 5620e74 commit 8401ea6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

backends/apple/coreml/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,13 @@ install(
212212
INCLUDES
213213
DESTINATION ${_common_include_directories}
214214
)
215+
216+
if(EXECUTORCH_BUILD_COREML)
217+
add_subdirectory(${EXECUTORCH_ROOT}/third-party/pybind11 ${CMAKE_CURRENT_BINARY_DIR}/pybind11)
218+
219+
pybind11_add_module(executorchcoreml_pybinding SHARED runtime/inmemoryfs/inmemory_filesystem_py.cpp)
220+
221+
target_compile_options(executorchcoreml_pybinding PUBLIC -mmacosx-version-min=10.15 -g)
222+
target_link_libraries(executorchcoreml_pybinding PRIVATE coreml_util)
223+
target_link_libraries(executorchcoreml_pybinding PRIVATE coreml_inmemoryfs)
224+
endif()

0 commit comments

Comments
 (0)