aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/blickfeld-qb2
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/blickfeld-qb2')
-rw-r--r--vcpkg/ports/blickfeld-qb2/portfile.cmake25
-rw-r--r--vcpkg/ports/blickfeld-qb2/usage4
-rw-r--r--vcpkg/ports/blickfeld-qb2/vcpkg.json18
3 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/blickfeld-qb2/portfile.cmake b/vcpkg/ports/blickfeld-qb2/portfile.cmake
new file mode 100644
index 0000000..520453f
--- /dev/null
+++ b/vcpkg/ports/blickfeld-qb2/portfile.cmake
@@ -0,0 +1,25 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Blickfeld/blickfeld-qb2
+ REF "v${VERSION}"
+ SHA512 03711c34b2d36a4b0d6a15c0bcdf725ffbfe8b319f10dab4909550f3adae4a7990fc468956fbf7e2c5dd5cc65964b622ebd988c81641d3e78688e6f9f86beadb
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/blickfeld-qb2")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/blickfeld-qb2/usage b/vcpkg/ports/blickfeld-qb2/usage
new file mode 100644
index 0000000..5182915
--- /dev/null
+++ b/vcpkg/ports/blickfeld-qb2/usage
@@ -0,0 +1,4 @@
+blickfeld-qb2 provides CMake targets:
+
+ find_package(blickfeld-qb2 REQUIRED)
+ target_link_libraries(main PRIVATE blickfeld-qb2)
diff --git a/vcpkg/ports/blickfeld-qb2/vcpkg.json b/vcpkg/ports/blickfeld-qb2/vcpkg.json
new file mode 100644
index 0000000..6cbc562
--- /dev/null
+++ b/vcpkg/ports/blickfeld-qb2/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "blickfeld-qb2",
+ "version": "2.8.3",
+ "description": "Client library to communicate securely with Qb2 LiDAR devices of Blickfeld GmbH.",
+ "homepage": "https://github.com/Blickfeld/blickfeld-qb2",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ "grpc",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}