Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to specify modules with CMake?

Hello,

I'm not a very huge CMake user, and the OpenCV CMakeList seems too huge to retro-engeneer it. What I want to do is to build a minimal version of OpenCV in order to use the cv::solvePnP method ( https://github.com/Itseez/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L53 ). So, I want to build an OpenCV version just with "core" and "calib3d" modules. This version has to work on iOS and Android, so I though I had to modify the python script ( https://github.com/Itseez/opencv/blob/master/platforms/ios/build_framework.py ). My problem is that the CMakeLists are so huge I can't even see what to add/modify in the script.

Does someone has an answer?