Skip to content

Commit 1d6ec3c

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 1d6ec3c

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

examples/bench/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
set(TARGET whisper-bench)
22
add_executable(${TARGET} bench.cpp)
33

4+
install(TARGETS ${TARGET}
5+
RUNTIME DESTINATION bin
6+
)
7+
48
include(DefaultTargetOptions)
59

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

examples/quantize/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
set(TARGET quantize)
1+
set(TARGET whisper-quantize)
22
add_executable(${TARGET} quantize.cpp)
33

4+
install(TARGETS ${TARGET}
5+
RUNTIME DESTINATION bin
6+
)
7+
48
include(DefaultTargetOptions)
59

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

examples/server/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
set(TARGET whisper-server)
22
add_executable(${TARGET} server.cpp httplib.h)
33

4+
install(TARGETS ${TARGET}
5+
RUNTIME DESTINATION bin
6+
)
7+
48
include(DefaultTargetOptions)
59

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

examples/talk-llama/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if (WHISPER_SDL2)
2525
unicode-data.cpp)
2626
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
2727

28+
install(TARGETS ${TARGET}
29+
RUNTIME DESTINATION bin
30+
)
31+
2832
if (WHISPER_CLBLAST)
2933
set(CLBLAST_LIBNAME clblast)
3034
endif ()

0 commit comments

Comments
 (0)