Merge pull request #13253 from alalek:fix_13201

* cmake: install 'legacy/constants_c.h' files

* samples: add compatibility test code
This commit is contained in:
Alexander Alekhin
2018-11-23 20:02:46 +03:00
committed by GitHub
parent a518e7063d
commit c0016d7fe9
4 changed files with 26 additions and 1 deletions
@@ -0,0 +1,19 @@
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs/legacy/constants_c.h>
#include <opencv2/videoio/legacy/constants_c.h>
#include <opencv2/photo/legacy/constants_c.h>
#include <opencv2/video/legacy/constants_c.h>
using namespace cv;
int main(int /*argc*/, const char** /*argv*/)
{
std::cout
<< (int)CV_LOAD_IMAGE_GRAYSCALE
<< (int)CV_CAP_FFMPEG
<< std::endl;
return 0;
}