[opencv] Improve CMake usage instructions

This commit is contained in:
Robert Schumacher 2018-01-19 14:46:52 -08:00
parent f5939bff67
commit f522ff0811
2 changed files with 7 additions and 0 deletions

View File

@ -199,6 +199,8 @@ file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/${OpenCV_ARCH}/${OpenCV_RUNTIME}
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/opencv)
vcpkg_copy_pdbs()
set(VCPKG_LIBRARY_LINKAGE "dynamic")

5
ports/opencv/usage Normal file
View File

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