k2-fsa/sherpa-ncnn

[Help needed] Support using pre-compiled ncnn library

Opened this issue · 0 comments

Currently, we use a fork of ncnn

set(ncnn_URL "https://github.com/csukuangfj/ncnn/archive/refs/tags/sherpa-1.1.tar.gz")

But actually, sherpa-ncnn supports using the master of
https://github.com/tencent/ncnn/

We need to change

include(ncnn)

to something like below

find_package(ncnn)

if(NOT ncnn_FOUND)
  include(ncnn)
endif()

We also need to add tests to cover the above change.


Please see
https://github.com/Tencent/ncnn/wiki/use-ncnn-with-own-project
for further information.