Download onnxruntime-<os>-<arch>(-gpu)-1.6.0.zip
from
here,
and extract it to anywhere you like.
git clone https://github.com/selpoG/ort-sample
mkdir ort-sample/build
cd ort-sample/build
cmake -DONNXRUNTIME_ROOT=<path to onnxruntime> ..
cmake --build .
Linux:
$ ./ort-sample
hello
Windows:
> ./Debug/ort-sample.exe