diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-01-19 14:46:52 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-01-19 14:46:52 -0800 |
| commit | f522ff0811b82ea4300aa373e5a5b4729a8b6bba (patch) | |
| tree | fd5f7d17e8bc9c7d46c16f7d7214a403ec33bc2a | |
| parent | f5939bff670ae0719af2fa5d290e0e0ba21fdb79 (diff) | |
| download | vcpkg-f522ff0811b82ea4300aa373e5a5b4729a8b6bba.tar.gz vcpkg-f522ff0811b82ea4300aa373e5a5b4729a8b6bba.zip | |
[opencv] Improve CMake usage instructions
| -rw-r--r-- | ports/opencv/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/opencv/usage | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/opencv/portfile.cmake b/ports/opencv/portfile.cmake index 5e3c98555..a91020f24 100644 --- a/ports/opencv/portfile.cmake +++ b/ports/opencv/portfile.cmake @@ -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") diff --git a/ports/opencv/usage b/ports/opencv/usage new file mode 100644 index 000000000..b9df60b82 --- /dev/null +++ b/ports/opencv/usage @@ -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})
|
