Skip to content

Commit

Permalink
Update CMakeLists.txt to include Metal shader library installation fo…
Browse files Browse the repository at this point in the history
…r macOS release
  • Loading branch information
royshil committed Jul 30, 2024
1 parent cc9db66 commit bdeec7f
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}/lib/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 bdeec7f

Please sign in to comment.