Change usage instructions to target_ based (#2873)

This commit is contained in:
Patrik Huber 2018-02-24 14:25:58 +00:00 committed by Robert Schumacher
parent e38bdde03d
commit 0eae5c651d

View File

@ -1,5 +1,5 @@
The package opencv provides CMake integration:
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_include_directories(main PRIVATE ${OpenCV_INCLUDE_DIRS})
target_link_libraries(main PRIVATE ${OpenCV_LIBS})