aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencv2/usage.in
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/opencv2/usage.in')
-rw-r--r--vcpkg/ports/opencv2/usage.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv2/usage.in b/vcpkg/ports/opencv2/usage.in
new file mode 100644
index 0000000..217ce72
--- /dev/null
+++ b/vcpkg/ports/opencv2/usage.in
@@ -0,0 +1,4 @@
+@PORT@ is compatible with built-in CMake variables. In case of multiple OpenCV version installed, set OpenCV_ROOT *before* the find_package call:
+
+ set(OpenCV_ROOT "${VCPKG_INSTALLED_DIR}/@TARGET_TRIPLET@/share/@PORT@")
+ find_package(OpenCV REQUIRED)