aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gz-math
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gz-math')
-rw-r--r--vcpkg/ports/gz-math/portfile.cmake14
-rw-r--r--vcpkg/ports/gz-math/vcpkg.json16
2 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-math/portfile.cmake b/vcpkg/ports/gz-math/portfile.cmake
new file mode 100644
index 0000000..c01f707
--- /dev/null
+++ b/vcpkg/ports/gz-math/portfile.cmake
@@ -0,0 +1,14 @@
+string(REGEX MATCH "^[0-9]+" VERSION_MAJOR ${VERSION})
+string(REGEX MATCH "^gz-([a-z-]+)" MATCHED_VALUE ${PORT})
+set(PACKAGE_NAME ${CMAKE_MATCH_1})
+
+ignition_modular_library(
+ NAME ${PACKAGE_NAME}
+ REF ${PORT}${VERSION_MAJOR}_${VERSION}
+ VERSION ${VERSION}
+ SHA512 73fd84ab4d8dea5cdd0fdc33479681cfe0125c6ad9d79ef1a53deb7c0592bc23f6d50984b111957cc0eb575b6e7f3f505b5b1810eb760ab839c16bdcebe45376
+ OPTIONS
+ -DSKIP_SWIG=ON
+ -DSKIP_PYBIND11=ON
+ -DBUILD_DOCS=OFF
+)
diff --git a/vcpkg/ports/gz-math/vcpkg.json b/vcpkg/ports/gz-math/vcpkg.json
new file mode 100644
index 0000000..f5ad3b2
--- /dev/null
+++ b/vcpkg/ports/gz-math/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "gz-math",
+ "version": "8.1.0",
+ "description": "Math API for robotic applications",
+ "homepage": "https://ignitionrobotics.org/libs/math",
+ "license": null,
+ "dependencies": [
+ "eigen3",
+ "gz-cmake",
+ "gz-utils",
+ {
+ "name": "ignition-modularscripts",
+ "host": true
+ }
+ ]
+}