Building ONNXRuntime as a CMake submodule in a larger project is not possible because CMakeLists.txt in ONNXRuntime doesn't create a config file. Command find_package(onnxruntime REQUIRED) fails with:
CMake Error at CMakeLists.txt:209 (find_package):
Could not find a package configuration file provided by "onnxruntime" with
any of the following names:
onnxruntimeConfig.cmake
onnxruntime-config.cmake
Add the installation prefix of "onnxruntime" to CMAKE_PREFIX_PATH or set
"onnxruntime_DIR" to a directory containing one of the above files. If
"onnxruntime" provides a separate development package or SDK, be sure it
has been installed.
Building ONNXRuntime as a CMake submodule in a larger project is not possible because CMakeLists.txt in ONNXRuntime doesn't create a config file. Command
find_package(onnxruntime REQUIRED)fails with: