From 11c7d06743a419dbcca082dc7e28640d023e3503 Mon Sep 17 00:00:00 2001
From: Michael Welter <michael@welter-4d.de>
Date: Tue, 4 May 2021 23:52:42 +0200
Subject: Saner instructions for building ONNX Runtime for neuralnet tracker

---
 tracker-neuralnet/BUILD.md | 24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)

(limited to 'tracker-neuralnet')

diff --git a/tracker-neuralnet/BUILD.md b/tracker-neuralnet/BUILD.md
index 8bb694dd..b8994b00 100644
--- a/tracker-neuralnet/BUILD.md
+++ b/tracker-neuralnet/BUILD.md
@@ -9,26 +9,12 @@ Source location: https://github.com/microsoft/onnxruntime
 In order to build, execute `build.bat` as follows:
 
 ```
-$ build.bat --config RelWithDebInfo --x86 --build_dir .\buildx86\ \
- --enable_msvc_static_runtime --build_shared_lib --skip_tests \
- --cmake_generator "Visual Studio 15 2017"
+$ build.bat --config Release --x86 --cmake_extra_defines CMAKE_INSTALL_PREFIX="D:\Dev\onnxruntime-x86-release" --build_dir .\buildx86\ --enable_msvc_static_runtime --build_shared_lib --skip_tests --cmake_generator "Visual Studio 15 2017"
+$ cmake --install .\buildx64\Release
 ```
 
-Replace the argument for `--cmake_generator` if needed.
+Replace the argument for `--cmake_generator` if needed. Also adjust the build-and install directories.
 
-The result is a messy directory `buildx86\RelWithDebInfo\RelWithDebInfo`,
-but no proper distribution. However only a few files are needed. They can
-be copied manually and are listed in the following in their respective folders:
+This should place all required files in the directory specified by CMAKE_INSTALL_PREFIX.
 
-```
-onnxruntime-x86-release/include:
-cpu_provider_factory.h                 onnxruntime_cxx_api.h
-experimental_onnxruntime_cxx_api.h     onnxruntime_cxx_inline.h
-experimental_onnxruntime_cxx_inline.h  onnxruntime_session_options_config_keys.h
-onnxruntime_c_api.h
-
-onnxruntime-x86-release/lib:
-onnxruntime.dll  onnxruntime.exp  onnxruntime.lib  onnxruntime.pdb
-```
-
-See also https://www.onnxruntime.ai/docs/how-to/build.html
+See also https://www.onnxruntime.ai/docs/how-to/build.html.
\ No newline at end of file
-- 
cgit v1.2.3