Skip to content

Commit eaddcd2

Browse files
committed
create bindings
1 parent 05b129a commit eaddcd2

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
@@ -217,3 +217,13 @@ install(
217217
INCLUDES
218218
DESTINATION ${_common_include_directories}
219219
)
220+
221+
if(EXECUTORCH_BUILD_COREML)
222+
add_subdirectory(${EXECUTORCH_ROOT}/third-party/pybind11 ${CMAKE_CURRENT_BINARY_DIR}/pybind11)
223+
224+
pybind11_add_module(executorchcoreml SHARED runtime/inmemoryfs/inmemory_filesystem_py.cpp)
225+
226+
target_compile_options(executorchcoreml PUBLIC -mmacosx-version-min=10.15 -g)
227+
target_link_libraries(executorchcoreml PRIVATE coreml_util)
228+
target_link_libraries(executorchcoreml PRIVATE coreml_inmemoryfs)
229+
endif()

0 commit comments

Comments
 (0)