Update to 2.0.0 tree from current Fremantle build
[opencv] / samples / c / example_cmake / README.txt
1 Example for CMake build system.
2
3 Compile OpenCV with cmake, preferently in an off-tree build, for example:
4
5  $ mkdir opencv-release
6  $ cd opencv-release
7  $ cmake <OPENCV_SRC_PATH>
8  $ make
9
10 And, *only optionally*, install it with.
11  $ sudo make install
12
13 Then create the binary directory for the example with:
14  $ mkdir example-release
15  $ cd example-release
16
17 Then, if "make install" have been executed, directly running
18  $ cmake <OPENCV_SRC_PATH>/samples/c/example_cmake/
19  
20 will detect the "OpenCVConfig.cmake" file and the project is ready to compile.
21
22 If "make install" has not been executed, you'll have to manually pick the opencv 
23 binary directory (Under Windows CMake may remember the correct directory). Open
24 the CMake gui with:
25  $ cmake-gui <OPENCV_SRC_PATH>/samples/c/example_cmake/
26
27 And pick the correct value for OpenCV_DIR.
28
29
30  
31
32