2022-10-22 10:07:59 +00:00
|
|
|
# dependencies
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
|
|
|
# third-party
|
|
|
|
|
2022-10-25 16:13:08 +00:00
|
|
|
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()
|
2022-10-22 10:07:59 +00:00
|
|
|
|
|
|
|
# examples
|
|
|
|
|
2022-10-25 16:13:08 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2022-10-22 10:07:59 +00:00
|
|
|
if (EMSCRIPTEN)
|
|
|
|
add_subdirectory(whisper.wasm)
|
2022-11-21 20:20:42 +00:00
|
|
|
add_subdirectory(talk.wasm)
|
2022-10-22 10:07:59 +00:00
|
|
|
else()
|
2022-10-25 16:13:08 +00:00
|
|
|
add_subdirectory(main)
|
|
|
|
add_subdirectory(stream)
|
2022-11-25 17:06:56 +00:00
|
|
|
add_subdirectory(command)
|
2022-10-25 16:13:08 +00:00
|
|
|
add_subdirectory(bench)
|
2022-10-22 10:07:59 +00:00
|
|
|
endif()
|