mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-09 23:59:03 +02:00
refactoring : move main + stream in examples + other stuff
This commit is contained in:
@ -4,11 +4,24 @@ find_package(Threads REQUIRED)
|
||||
|
||||
# third-party
|
||||
|
||||
#add_subdirectory(third-party)
|
||||
if (WHISPER_SUPPORT_SDL2)
|
||||
# SDL2
|
||||
find_package(SDL2 REQUIRED)
|
||||
|
||||
string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)
|
||||
|
||||
message(STATUS "SDL2_INCLUDE_DIRS = ${SDL2_INCLUDE_DIRS}")
|
||||
message(STATUS "SDL2_LIBRARIES = ${SDL2_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
# examples
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
if (EMSCRIPTEN)
|
||||
add_subdirectory(whisper.wasm)
|
||||
else()
|
||||
add_subdirectory(main)
|
||||
add_subdirectory(stream)
|
||||
add_subdirectory(bench)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user