mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-23 14:32:23 +00:00
2e59dced12
* whisper : rename binaries + fix install * cont : try to fix ci * cont : fix emscripten builds
24 lines
735 B
CMake
24 lines
735 B
CMake
if (WHISPER_SDL2)
|
|
set(TARGET whisper-talk-llama)
|
|
add_executable(${TARGET} talk-llama.cpp
|
|
llama.cpp
|
|
llama-vocab.cpp
|
|
llama-grammar.cpp
|
|
llama-sampling.cpp
|
|
unicode.cpp
|
|
unicode-data.cpp)
|
|
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
if (WHISPER_CLBLAST)
|
|
set(CLBLAST_LIBNAME clblast)
|
|
endif ()
|
|
target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CLBLAST_LIBNAME} ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
if(WIN32)
|
|
# It requires Windows 8.1 or later for PrefetchVirtualMemory
|
|
target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
|
|
endif()
|
|
|
|
include(DefaultTargetOptions)
|
|
endif ()
|