mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
31 lines
544 B
CMake
31 lines
544 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
#-DONNXRUNTIME_DIR=D:\thirdpart\onnxruntime
|
|
project(FastASR)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
# for onnxruntime
|
|
|
|
IF(WIN32)
|
|
|
|
|
|
if(CMAKE_CL_64)
|
|
link_directories(${ONNXRUNTIME_DIR}\\lib)
|
|
else()
|
|
add_definitions(-D_WIN_X86)
|
|
endif()
|
|
ELSE()
|
|
|
|
|
|
link_directories(${ONNXRUNTIME_DIR}/lib)
|
|
|
|
endif()
|
|
|
|
#option(FASTASR_BUILD_PYTHON_MODULE "build python module, using FastASR in Python" OFF)
|
|
|
|
add_subdirectory("./third_party/webrtc")
|
|
add_subdirectory(src)
|
|
add_subdirectory(tester)
|