From 135163bcac7049868cd8529534d319de88b6e983 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 26 Feb 2025 14:45:07 +0100 Subject: [PATCH] Install some example programs in user accessible PATH. This allow the key programs whisper-bench, whisper-quantize, whisper-server and whisper-talk-llama to be available for users in addition to the shared library. --- examples/bench/CMakeLists.txt | 2 +- examples/cli/CMakeLists.txt | 2 +- examples/quantize/CMakeLists.txt | 2 +- examples/server/CMakeLists.txt | 2 +- examples/talk-llama/CMakeLists.txt | 2 +- examples/vad-speech-segments/CMakeLists.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/bench/CMakeLists.txt b/examples/bench/CMakeLists.txt index f255f2dc5..119df2552 100644 --- a/examples/bench/CMakeLists.txt +++ b/examples/bench/CMakeLists.txt @@ -5,4 +5,4 @@ include(DefaultTargetOptions) target_link_libraries(${TARGET} PRIVATE whisper ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS ${TARGET} RUNTIME) +install(TARGETS ${TARGET} RUNTIME DESTINATION bin) diff --git a/examples/cli/CMakeLists.txt b/examples/cli/CMakeLists.txt index 3a73776c5..7b6a187e9 100644 --- a/examples/cli/CMakeLists.txt +++ b/examples/cli/CMakeLists.txt @@ -5,4 +5,4 @@ include(DefaultTargetOptions) target_link_libraries(${TARGET} PRIVATE common whisper ${FFMPEG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS ${TARGET} RUNTIME) +install(TARGETS ${TARGET} RUNTIME DESTINATION bin) diff --git a/examples/quantize/CMakeLists.txt b/examples/quantize/CMakeLists.txt index aa2828e3e..ba6fa0c1b 100644 --- a/examples/quantize/CMakeLists.txt +++ b/examples/quantize/CMakeLists.txt @@ -4,4 +4,4 @@ add_executable(${TARGET} quantize.cpp) include(DefaultTargetOptions) target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS ${TARGET} RUNTIME) +install(TARGETS ${TARGET} RUNTIME DESTINATION bin) diff --git a/examples/server/CMakeLists.txt b/examples/server/CMakeLists.txt index c082546bd..4c2b48226 100644 --- a/examples/server/CMakeLists.txt +++ b/examples/server/CMakeLists.txt @@ -12,4 +12,4 @@ if (WIN32) target_link_libraries(${TARGET} PRIVATE ws2_32) endif() -install(TARGETS ${TARGET} RUNTIME) +install(TARGETS ${TARGET} RUNTIME DESTINATION bin) diff --git a/examples/talk-llama/CMakeLists.txt b/examples/talk-llama/CMakeLists.txt index 1adeef8f5..990d73b5b 100644 --- a/examples/talk-llama/CMakeLists.txt +++ b/examples/talk-llama/CMakeLists.txt @@ -37,7 +37,7 @@ if (WHISPER_SDL2) target_include_directories(${TARGET} PRIVATE . ${SDL2_INCLUDE_DIRS}) target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) - install(TARGETS ${TARGET} RUNTIME) + install(TARGETS ${TARGET} RUNTIME DESTINATION bin) if(WIN32) # It requires Windows 8.1 or later for PrefetchVirtualMemory diff --git a/examples/vad-speech-segments/CMakeLists.txt b/examples/vad-speech-segments/CMakeLists.txt index 857b88c9a..4550eef97 100644 --- a/examples/vad-speech-segments/CMakeLists.txt +++ b/examples/vad-speech-segments/CMakeLists.txt @@ -5,4 +5,4 @@ include(DefaultTargetOptions) target_link_libraries(${TARGET} PRIVATE common whisper ${FFMPEG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS ${TARGET} RUNTIME) +install(TARGETS ${TARGET} RUNTIME DESTINATION bin)