Ask Your Question

Revision history [back]

how to detect if xfeatures2d is installed

Hej all,

How do I, in the CMakeLists.txt figure out if the current install of openCV has xfeatures2D installed ?

Can I do something along the lines of :

find_package(OpenCV REQUIRED)
if(OPENCV_XFEATURES2D)
    do stuf
endif