Merge pull request #1553 from pablospe:doc_include_directories_cmake
This commit is contained in:
commit
ac36ae0498
@ -58,6 +58,7 @@ Now you have to create your CMakeLists.txt file. It should look like this:
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project( DisplayImage )
|
project( DisplayImage )
|
||||||
find_package( OpenCV REQUIRED )
|
find_package( OpenCV REQUIRED )
|
||||||
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
||||||
add_executable( DisplayImage DisplayImage.cpp )
|
add_executable( DisplayImage DisplayImage.cpp )
|
||||||
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
|
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user