Skip to content

Commit

Permalink
chore: Update cmake script to install shared library to project relea…
Browse files Browse the repository at this point in the history
…se directory
  • Loading branch information
royshil committed Jun 24, 2024
1 parent d91db6b commit 051f9e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmake/BuildSherpaOnnx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ foreach(lib ${SHERPA_LIBS})
set_property(TARGET ${lib} PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)

if(APPLE)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE "${SHARED_LIBRARY_FILE_LOCATION}")
target_sources(${CMAKE_PROJECT_NAME} PRIVATE "${SHARED_LIBRARY_FILE_LOCATION}")
set_property(SOURCE "${SHARED_LIBRARY_FILE_LOCATION}" PROPERTY MACOSX_PACKAGE_LOCATION Frameworks)
source_group("Frameworks" FILES "${SHARED_LIBRARY_FILE_LOCATION}")
Expand All @@ -80,7 +79,6 @@ if(APPLE)
foreach(SHARED_LIBRARY_FILE_NAME libpiper_phonemize.1.dylib libpiper_phonemize.1.2.0.dylib
libonnxruntime.1.17.1.dylib)
set(SHARED_LIBRARY_FILE_LOCATION ${INSTALL_DIR}/lib/${SHARED_LIBRARY_FILE_NAME})
install(FILES ${SHARED_LIBRARY_FILE_LOCATION} DESTINATION ${SHARED_LIBRARY_DESTINATION})
target_sources(${CMAKE_PROJECT_NAME} PRIVATE "${SHARED_LIBRARY_FILE_LOCATION}")
set_property(SOURCE "${SHARED_LIBRARY_FILE_LOCATION}" PROPERTY MACOSX_PACKAGE_LOCATION Frameworks)
source_group("Frameworks" FILES "${SHARED_LIBRARY_FILE_LOCATION}")
Expand Down

0 comments on commit 051f9e2

Please sign in to comment.