2023-04-30 09:14:33 +00:00
|
|
|
if (WHISPER_SDL2)
|
2023-03-27 18:00:32 +00:00
|
|
|
# talk-llama
|
|
|
|
set(TARGET talk-llama)
|
2024-03-27 16:55:10 +00:00
|
|
|
add_executable(${TARGET} talk-llama.cpp llama.cpp unicode.cpp unicode-data.cpp)
|
2023-12-21 20:48:52 +00:00
|
|
|
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
2023-12-29 10:23:27 +00:00
|
|
|
|
|
|
|
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})
|
2023-03-27 18:00:32 +00:00
|
|
|
|
2023-12-12 11:35:00 +00:00
|
|
|
if(WIN32)
|
2023-12-21 20:48:52 +00:00
|
|
|
# It requires Windows 8.1 or later for PrefetchVirtualMemory
|
|
|
|
target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
|
2023-12-12 11:35:00 +00:00
|
|
|
endif()
|
|
|
|
|
2023-03-27 18:28:00 +00:00
|
|
|
include(DefaultTargetOptions)
|
2023-03-27 18:00:32 +00:00
|
|
|
endif ()
|