2018-01-20 06:46:52 +08:00
|
|
|
The package opencv provides CMake integration:
|
|
|
|
|
|
|
|
find_package(OpenCV REQUIRED)
|
2018-02-24 22:25:58 +08:00
|
|
|
target_include_directories(main PRIVATE ${OpenCV_INCLUDE_DIRS})
|
2018-01-20 06:46:52 +08:00
|
|
|
target_link_libraries(main PRIVATE ${OpenCV_LIBS})
|