whisper.cpp/examples/talk/CMakeLists.txt

17 lines
699 B
CMake
Raw Normal View History

2022-12-09 19:38:10 +01:00
if (WHISPER_SUPPORT_SDL2)
# talk
set(TARGET talk)
2022-12-10 15:48:15 +01: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 ..
add_executable(${TARGET} talk.cpp gpt-2.cpp ../common.cpp ../common-sdl.cpp ../../ggml.c ../../whisper.cpp)
include(DefaultTargetOptions)
2022-12-10 15:48:15 +01:00
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
2022-12-09 19:38:10 +01:00
endif ()