Skip to content

Commit 11d4738

Browse files
author
Petter Reinholdtsen
committed
Install some example programs in user 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. The name of binary quantize is renamed to whisper-quantize, to avoid potential name conflicts.
1 parent dfc6ca6 commit 11d4738

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

examples/bench/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
set(TARGET whisper-bench)
22
add_executable(${TARGET} bench.cpp)
33

4+
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
5+
46
include(DefaultTargetOptions)
57

68
target_link_libraries(${TARGET} PRIVATE whisper ${CMAKE_THREAD_LIBS_INIT})

examples/cli/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ include(DefaultTargetOptions)
55

66
target_link_libraries(${TARGET} PRIVATE common whisper ${FFMPEG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
77

8-
install(TARGETS ${TARGET} RUNTIME)
8+
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)

examples/quantize/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
set(TARGET quantize)
1+
set(TARGET whisper-quantize)
22
add_executable(${TARGET} quantize.cpp)
33

4+
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
5+
46
include(DefaultTargetOptions)
57

68
target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})

examples/server/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
set(TARGET whisper-server)
22
add_executable(${TARGET} server.cpp httplib.h)
33

4+
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
5+
46
include(DefaultTargetOptions)
57

68
target_link_libraries(${TARGET} PRIVATE common json_cpp whisper ${CMAKE_THREAD_LIBS_INIT})

examples/talk-llama/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ if (WHISPER_SDL2)
2525
unicode-data.cpp)
2626
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
2727

28+
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
29+
2830
if (WHISPER_CLBLAST)
2931
set(CLBLAST_LIBNAME clblast)
3032
endif ()

0 commit comments

Comments
 (0)