Date: Tue, 11 Mar 2025 15:40:11 +0100
Subject: use-llama-cpp-library
+# Conflicts:
+# examples/talk-llama/CMakeLists.txt
---
- examples/talk-llama/CMakeLists.txt | 32 ++++----------------------------
- 1 file changed, 4 insertions(+), 28 deletions(-)
+ examples/talk-llama/CMakeLists.txt | 36 ++++--------------------------------
+ 1 file changed, 4 insertions(+), 32 deletions(-)
diff --git a/examples/talk-llama/CMakeLists.txt b/examples/talk-llama/CMakeLists.txt
-index 182114c..f86a338 100644
+index cac4670..f86a338 100644
--- a/examples/talk-llama/CMakeLists.txt
+++ b/examples/talk-llama/CMakeLists.txt
-@@ -3,36 +3,12 @@ if (WHISPER_SDL2)
+@@ -2,41 +2,13 @@ if (WHISPER_SDL2)
+ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
+- file(GLOB SRC_MODELS models/*.cpp)
+-
set(TARGET whisper-talk-llama)
- add_executable(${TARGET} talk-llama.cpp
- llama.cpp
- llama-sampling.cpp
- llama-vocab.cpp
- unicode.cpp
-- unicode-data.cpp)
+- unicode-data.cpp
+- ${SRC_MODELS})
+ add_executable(${TARGET} talk-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})
+- install(TARGETS ${TARGET} RUNTIME)
+ target_link_libraries(${TARGET} PRIVATE common common-sdl whisper llama ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+
+ install(TARGETS ${TARGET} RUNTIME)