whisper.cpp/examples/command/CMakeLists.txt

11 lines
319 B
CMake
Raw Normal View History

2022-11-25 17:06:56 +00:00
if (WHISPER_SUPPORT_SDL2)
# command
set(TARGET command)
add_executable(${TARGET} command.cpp)
include(DefaultTargetOptions)
2022-11-25 17:06:56 +00:00
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
target_link_libraries(${TARGET} PRIVATE whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
endif ()