mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-21 09:21:49 +00:00
examples : Revert CMakeLists.txt for talk-llama (#1669)
This commit is contained in:
parent
8986690c2a
commit
d2419030b0
@ -1,30 +1,14 @@
|
|||||||
if (WHISPER_SDL2)
|
if (WHISPER_SDL2)
|
||||||
# talk-llama
|
# talk-llama
|
||||||
set(TARGET talk-llama)
|
set(TARGET talk-llama)
|
||||||
#add_executable(${TARGET} talk-llama.cpp llama.cpp)
|
add_executable(${TARGET} talk-llama.cpp llama.cpp)
|
||||||
#target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
||||||
#target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
|
||||||
# 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
|
|
||||||
../../ggml-alloc.c
|
|
||||||
../../ggml-backend.c
|
|
||||||
../../ggml-quants.c
|
|
||||||
../../whisper.cpp)
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
# It requires Windows 8.1 or later for PrefetchVirtualMemory
|
# It requires Windows 8.1 or later for PrefetchVirtualMemory
|
||||||
target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
|
target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
|
|
||||||
target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
||||||
|
|
||||||
include(DefaultTargetOptions)
|
include(DefaultTargetOptions)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user