how to exclude a class from a module using cmakelist/clang ?

asked 2017-01-11 13:31:48 -0500

sylvain gravatar image

Hi, I'm building a version of opencv for the hololens (Win10, UWP, x86). I've already successfully done it for v3.1 and now I'm trying to do it for v3.2. Alas, the Tracker class (contrib/tracking) now references a new algorithm called GoTurn (TrackerGOTURN) which relies on deep neural network (dnn) which in turns relies on ProtoBuf which is not yet supported on this target. However all the other trackers do work perfectly. I can easily exclude the code from the result of the cmake build - that works - however I'm wondering if there is a better way to drive the inclusion/exclusion of a specific class within a module using the clang syntax (which I'm not familiar with). My goal is to do like I did for 3.1, aka, adjust the pre-cmake code or cmakelist.txt files rather than the result of the build. Any hint or suggestion appreciated. Thks.

edit retag flag offensive close merge delete


ahh, dependancy hell ;(

do you actually need the tracking module ?

berak gravatar imageberak ( 2017-01-11 13:35:10 -0500 )edit

Yes - I'm using the KCF tracker on the hololens. As mentioned I can get the stuff running for my personal needs, or even publish the result of the build .. but I'm trying to learn to do ti the 'right' way.. if possible... For reference, here is the link of what I published for v3.1 -

sylvain gravatar imagesylvain ( 2017-01-11 13:39:28 -0500 )edit