mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-20 21:23:06 +00:00
09d7d2b68e
* examples : refactor common code into a library * examples : refactor common SDL code into a library * make : update Makefile to use common libs * common : fix MSVC M_PI .. * addon.node : link common lib
10 lines
248 B
CMake
10 lines
248 B
CMake
if (WHISPER_SUPPORT_SDL2)
|
|
# command
|
|
set(TARGET command)
|
|
add_executable(${TARGET} command.cpp)
|
|
|
|
include(DefaultTargetOptions)
|
|
|
|
target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${CMAKE_THREAD_LIBS_INIT})
|
|
endif ()
|