mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:49:09 +08:00
[opencv] Improve CMake usage instructions
This commit is contained in:
parent
f5939bff67
commit
f522ff0811
@ -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
5
ports/opencv/usage
Normal 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})
|
Loading…
Reference in New Issue
Block a user