From b5ed86c6a1508d04864f4152aa7cc02fe2d9f1db Mon Sep 17 00:00:00 2001 From: Daniil Osokin Date: Thu, 31 Jan 2013 11:43:38 +0400 Subject: [PATCH] Fixed sample files in "Using OpenCV with gcc and CMake" tutorial (bug #2663, #2588) --- doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst b/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst index 3e31917..e603e5c 100644 --- a/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst +++ b/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst @@ -25,8 +25,8 @@ Let's use a simple program such as DisplayImage.cpp shown below. .. code-block:: cpp - #include - #include + #include + #include using namespace cv; @@ -55,9 +55,10 @@ Now you have to create your CMakeLists.txt file. It should look like this: .. code-block:: cmake + cmake_minimum_required(VERSION 2.8) project( DisplayImage ) find_package( OpenCV REQUIRED ) - add_executable( DisplayImage DisplayImage ) + add_executable( DisplayImage DisplayImage.cpp ) target_link_libraries( DisplayImage ${OpenCV_LIBS} ) Generate the executable -- 2.7.4