Spaces:
Running
Running
File size: 369 Bytes
5257653 30197de da3cdf4 8a0d34c da3cdf4 334a75d f928f33 334a75d 30197de |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(TARGET whisper-server)
add_executable(${TARGET} server.cpp httplib.h)
include(DefaultTargetOptions)
target_link_libraries(${TARGET} PRIVATE common json_cpp whisper ${CMAKE_THREAD_LIBS_INIT})
if (WIN32)
target_link_libraries(${TARGET} PRIVATE ws2_32)
endif()
install(TARGETS ${TARGET} RUNTIME)
|