Ask Your Question

Revision history [back]

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

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.