aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sbgecom
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/sbgecom')
-rw-r--r--vcpkg/ports/sbgecom/portfile.cmake25
-rw-r--r--vcpkg/ports/sbgecom/usage4
-rw-r--r--vcpkg/ports/sbgecom/vcpkg.json17
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/sbgecom/portfile.cmake b/vcpkg/ports/sbgecom/portfile.cmake
new file mode 100644
index 0000000..acef46d
--- /dev/null
+++ b/vcpkg/ports/sbgecom/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO SBG-Systems/sbgECom
+ REF "${VERSION}-stable"
+ SHA512 d2d9aa2751f96fe87590aad71c276d2ab7a7a9e230887f8f83355b55fc25b57046dc84a8c5d2cfc8d4fd58e6c92210d3527937fe923cea660785d12db74997c3
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME "sbgECom"
+ CONFIG_PATH lib/cmake/sbgECom
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/sbgecom/usage b/vcpkg/ports/sbgecom/usage
new file mode 100644
index 0000000..65e373b
--- /dev/null
+++ b/vcpkg/ports/sbgecom/usage
@@ -0,0 +1,4 @@
+sbgECom provides CMake targets:
+
+find_package(sbgECom CONFIG REQUIRED)
+target_link_libraries(main PRIVATE sbgECom::sbgECom)
diff --git a/vcpkg/ports/sbgecom/vcpkg.json b/vcpkg/ports/sbgecom/vcpkg.json
new file mode 100644
index 0000000..16e0407
--- /dev/null
+++ b/vcpkg/ports/sbgecom/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "sbgecom",
+ "version": "5.3.2276",
+ "description": "C library used to communicate with SBG Systems IMU, AHRS and INS",
+ "homepage": "https://github.com/SBG-Systems/sbgECom",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}