2022-12-09 18:38:10 +00:00
|
|
|
if (WHISPER_SUPPORT_SDL2)
|
|
|
|
# talk
|
|
|
|
set(TARGET talk)
|
2022-12-10 14:48:15 +00:00
|
|
|
#add_executable(${TARGET} talk.cpp gpt-2.cpp)
|
|
|
|
#target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
#target_link_libraries(${TARGET} PRIVATE whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
|
|
|
# TODO: this is temporary
|
|
|
|
# need to export ggml symbols for MSVC, but too lazy ..
|
2023-02-15 17:28:10 +00:00
|
|
|
add_executable(${TARGET} talk.cpp gpt-2.cpp ../common.cpp ../common-sdl.cpp ../../ggml.c ../../whisper.cpp)
|
2023-01-05 19:22:48 +00:00
|
|
|
|
|
|
|
include(DefaultTargetOptions)
|
|
|
|
|
2022-12-10 14:48:15 +00:00
|
|
|
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
|
|
|
|
target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
2022-12-09 18:38:10 +00:00
|
|
|
endif ()
|