added optional dependency stitching->nonfree. When nonfree is available, make sure linker does not throw it away.

This commit is contained in:
Vadim Pisarevsky
2012-03-31 17:25:19 +00:00
parent 1c616f43ba
commit 5c615ec28f
2 changed files with 7 additions and 1 deletions

View File

@@ -50,6 +50,12 @@ using namespace cv::detail;
using namespace cv::gpu;
#endif
#ifdef HAVE_OPENCV_NONFREE
#include "opencv2/nonfree/nonfree.hpp"
static bool makeUseOfNonfree = initModule_nonfree();
#endif
namespace {
struct DistIdxPair