cmake: refactored scripts with samples building:

- allow installing samples sources on all platforms
  even if BUILD_EXAMPLES is disabled,  fixed minor
  issues in sources installation process
- use 'example_<group>_<name>' scheme for target and binary file naming
- use single function for sample executable creation
This commit is contained in:
Maksim Shabunin
2018-02-09 13:30:04 +03:00
parent 633b0e56a5
commit 2200e13c71
15 changed files with 346 additions and 576 deletions
@@ -1,4 +1,5 @@
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
using namespace cv;
using namespace std;