I'd like to ask how can I specify OpenCV modules to build by cmake ex. I'd like to build only core, highgui and improc.
Thank you for your responses because I googled it and I can't find it. :(
Mari
Join Stack Overflow to learn, share knowledge, and build your career.
I'd like to ask how can I specify OpenCV modules to build by cmake ex. I'd like to build only core, highgui and improc.
Thank you for your responses because I googled it and I can't find it. :(
Mari
you can toggle each module by specifying it to cmake:
-DBUILD_opencv_xxxx=OFF # where xxxx is the module in question, and ON or OFF is your requested state
with cmake
modules
folder. cmake-gui
is quite handy as well, as it shows a list where you can select all the modules you want.
– iliis
Jun 21 '19 at 13:24
In the CMakeCache.txt file there is an option BUILD_LIST. You can edit that file directly or specify it on the command line
CMakeCache.txt, relevant line
//Build only listed modules (comma-separated, e.g. 'videoio,dnn,ts')
BUILD_LIST:STRING=
Command line
cmake -DBUILD_LIST=core,highgui,improc ..