examples : add "command" tool (#171)

This commit is contained in:
Georgi Gerganov
2022-11-25 19:06:56 +02:00
parent b8ce25dec1
commit bc88eb13c6
9 changed files with 735 additions and 51 deletions

View File

@ -0,0 +1,7 @@
if (WHISPER_SUPPORT_SDL2)
# command
set(TARGET command)
add_executable(${TARGET} command.cpp)
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
target_link_libraries(${TARGET} PRIVATE whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
endif ()