【发布时间】:2019-12-17 10:28:16
【问题描述】:
我有一个detect_model.mlmodel,它是由我自己训练的。我想在 xcode 中使用它,但我不想手动将它添加到我的 xcode 项目中。我试图编写 CMakeLists.txt 来管理我的 xcode 项目。但是如何在 CMake 文件中写入以将 detect_model.mlmodel 添加到我的 xcode 项目中并生成 detect_model.h 头文件?
我尝试过使用set(mlmodel detect_model.mlmodel)和add_library(dst ${mlmodel}),但是不正确。
预期的结果是我可以使用CMake将detect_model.mlmodel添加到xcode项目中并自动生成detect_model.h。
【问题讨论】: