Skip to content

Commit

Permalink
Merge pull request #4 from occ-ai/roy.fix_coreml_static_copy
Browse files Browse the repository at this point in the history
Update CMakeLists.txt to include Metal shader library installation fo…
  • Loading branch information
royshil authored Jul 31, 2024
2 parents cc9db66 + 4bd560c commit 9871dd6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ else()
endif(WIN32)

ExternalProject_Get_Property(Whispercpp_Build INSTALL_DIR)
ExternalProject_Get_Property(Whispercpp_Build BINARY_DIR)

# add the Whisper library to the link line
if(WIN32)
Expand Down Expand Up @@ -206,4 +207,13 @@ else()
install(DIRECTORY ${INSTALL_DIR}/lib DESTINATION ${CMAKE_SOURCE_DIR}/release)
install(DIRECTORY ${INSTALL_DIR}/include
DESTINATION ${CMAKE_SOURCE_DIR}/release)
if(APPLE)
# copy the Metal shader library to the release directory
install(DIRECTORY ${INSTALL_DIR}/bin
DESTINATION ${CMAKE_SOURCE_DIR}/release)
install(
FILES
${BINARY_DIR}/src/${CMAKE_STATIC_LIBRARY_PREFIX}whisper.coreml${CMAKE_STATIC_LIBRARY_SUFFIX}
DESTINATION ${CMAKE_SOURCE_DIR}/release/lib)
endif()
endif(WIN32)

0 comments on commit 9871dd6

Please sign in to comment.