diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84679f5..db5f1ab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,6 +79,15 @@ if (FR_ENABLE_NCNN)
endif()
if (FR_ENABLE_ONNX)
+ option(protobuf_BUILD_TESTS "Build tests" OFF)
+ FetchContent_Declare(
+ protobuf
+ GIT_REPOSITORY https://github.com/protocolbuffers/protobuf
+ GIT_TAG v3.20.1
+ SYSTEM
+ SOURCE_SUBDIR cmake
+ )
+ FetchContent_MakeAvailable(protobuf)
FetchContent_Declare(
onnx
GIT_REPOSITORY https://github.com/onnx/onnx
@@ -97,7 +106,7 @@ if (FR_ENABLE_ONNX)
# )
# FetchContent_MakeAvailable(onnxruntime)
set(onnx_kernel_srcs
- kernels/export-ncnn/kernels.cpp
+ kernels/export-onnx/kernels.cpp
)
endif()
diff --git a/export_onnx.cpp b/export_onnx.cpp
index 88e71aa..6525217 100644
--- a/export_onnx.cpp
+++ b/export_onnx.cpp
@@ -6,14 +6,14 @@
int main(int argc, char **argv) {
if (argc != 3) {
std::cerr
- << "Usage: ./export_ncnn