bobqianic commited on
Commit
92a92ed
·
unverified ·
1 Parent(s): 0969db5

examples : Revert CMakeLists.txt for talk-llama (#1669)

Browse files
Files changed (1) hide show
  1. examples/talk-llama/CMakeLists.txt +5 -21
examples/talk-llama/CMakeLists.txt CHANGED
@@ -1,30 +1,14 @@
1
  if (WHISPER_SDL2)
2
  # talk-llama
3
  set(TARGET talk-llama)
4
- #add_executable(${TARGET} talk-llama.cpp llama.cpp)
5
- #target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
6
- #target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
7
-
8
- # TODO: this is temporary
9
- # need to export ggml symbols for MSVC, but too lazy ..
10
- add_executable(${TARGET}
11
- talk-llama.cpp
12
- llama.cpp
13
- ../common.cpp
14
- ../common-sdl.cpp
15
- ../../ggml.c
16
- ../../ggml-alloc.c
17
- ../../ggml-backend.c
18
- ../../ggml-quants.c
19
- ../../whisper.cpp)
20
 
21
  if(WIN32)
22
- # It requires Windows 8.1 or later for PrefetchVirtualMemory
23
- target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
24
  endif()
25
 
26
- target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
27
- target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
28
-
29
  include(DefaultTargetOptions)
30
  endif ()
 
1
  if (WHISPER_SDL2)
2
  # talk-llama
3
  set(TARGET talk-llama)
4
+ add_executable(${TARGET} talk-llama.cpp llama.cpp)
5
+ target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
6
+ target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  if(WIN32)
9
+ # It requires Windows 8.1 or later for PrefetchVirtualMemory
10
+ target_compile_definitions(${TARGET} PRIVATE -D_WIN32_WINNT=0x0602)
11
  endif()
12
 
 
 
 
13
  include(DefaultTargetOptions)
14
  endif ()