I have a detect_model.mlmodel
which is trained by myself. I want to use it in xcode, but I don't wanna to add it into my xcode project manually. I have tried to write CMakeLists.txt to manage my xcode project. But how can I write in the CMake file to add detect_model.mlmodel
into my xcode project and generate the detect_model.h
header file?
I have tried to use set(mlmodel detect_model.mlmodel)
and add_library(dst ${mlmodel})
, but it is not correct.
The expected result is that I can use CMake to add detect_model.mlmodel
into xcode project and generate the detect_model.h
automatically.