]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
talk-llama : try to fix windows build ..
authorGeorgi Gerganov <redacted>
Mon, 27 Mar 2023 18:28:00 +0000 (21:28 +0300)
committerGeorgi Gerganov <redacted>
Mon, 27 Mar 2023 19:40:59 +0000 (22:40 +0300)
examples/talk-llama/CMakeLists.txt

index 4c52378e6ef25df0440face19b755354f8992c05..f25d06888f9302b3284be9c4f3a8f5e5f8a91e9c 100644 (file)
@@ -1,10 +1,16 @@
 if (WHISPER_SUPPORT_SDL2)
     # talk-llama
     set(TARGET talk-llama)
+    #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})
 
-    add_executable(${TARGET} talk-llama.cpp llama.cpp)
+    # TODO: this is temporary
+    #       need to export ggml symbols for MSVC, but too lazy ..
+    add_executable(${TARGET} talk-llama.cpp llama.cpp ../common.cpp ../common-sdl.cpp ../../ggml.c ../../whisper.cpp)
 
-    include(DefaultTargetOptions)
+    target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
+    target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
-    target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+    include(DefaultTargetOptions)
 endif ()