Editing custom path with OpenCV framework with CMake to create XCODE project in iOS

I have a cross platform build system using CMake and I have an OpenCV iOS dependency.

Setting it ${OpenCV_DIR}

manually, my project compiles and runs correctly if and only if I manually set every time I generate an XCODE project variable Project > Build Settings > Framework Search Paths

with ${OpenCV_DIR}

.

How can I set this variable using CMake directly?

+3


source to share


1 answer


CMake does not have full integration with Xcode. You can generate a project using it, but many things fail. Just drag and drop into the project OpenCV

and it will be detected.



+2


source







All Articles