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)
|
2023-03-27 18:28:00 +00:00
|
|
|
#add_executable(${TARGET} talk-llama.cpp llama.cpp)
|
|
|
|
#target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
#target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
2023-03-27 18:00:32 +00:00
|
|
|
|
2023-03-27 18:28:00 +00:00
|
|
|
# TODO: this is temporary
|
|
|
|
# need to export ggml symbols for MSVC, but too lazy ..
|
2023-11-03 19:35:05 +00:00
|
|
|
add_executable(${TARGET}
|
|
|
|
talk-llama.cpp
|
|
|
|
llama.cpp
|
|
|
|
../common.cpp
|
|
|
|
../common-sdl.cpp
|
|
|
|
../../ggml.c
|
|
|
|
../../ggml-alloc.c
|
2023-11-07 09:03:21 +00:00
|
|
|
../../ggml-backend.c
|
|
|
|
../../ggml-quants.c
|
2023-11-03 19:35:05 +00:00
|
|
|
../../whisper.cpp)
|
2023-03-27 18:00:32 +00:00
|
|
|
|
2023-03-27 18:28:00 +00:00
|
|
|
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
|
|
|
|
target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
2023-03-27 18:00:32 +00:00
|
|
|
|
2023-03-27 18:28:00 +00:00
|
|
|
include(DefaultTargetOptions)
|
2023-03-27 18:00:32 +00:00
|
|
|
endif ()
|