我有一个detect_model.mlmodel自己训练的。我想在 xcode 中使用它,但我不想手动将它添加到我的 xcode 项目中。我试图编写 CMakeLists.txt 来管理我的 xcode 项目。但是如何在 CMake 文件中写入以添加detect_model.mlmodel到我的 xcode 项目并生成detect_model.h头文件?
我曾尝试使用set(mlmodel detect_model.mlmodel)and add_library(dst ${mlmodel}),但它不正确。
预期的结果是我可以使用 CMake 添加detect_model.mlmodel到 xcode 项目并detect_model.h自动生成。