aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/aurora-au
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/aurora-au')
-rw-r--r--vcpkg/ports/aurora-au/portfile.cmake26
-rw-r--r--vcpkg/ports/aurora-au/usage4
-rw-r--r--vcpkg/ports/aurora-au/vcpkg.json20
3 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/aurora-au/portfile.cmake b/vcpkg/ports/aurora-au/portfile.cmake
new file mode 100644
index 0000000..d420667
--- /dev/null
+++ b/vcpkg/ports/aurora-au/portfile.cmake
@@ -0,0 +1,26 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO aurora-opensource/au
+ REF "${VERSION}"
+ SHA512 4be3d1c4f595852d57352572d58137b98c5a51074926cf06fe65420c277f72dc2f03d61bb25e87ceb3e4050181145557766e77af19c6aee7b0d1fe7ec3a8029b
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DAU_EXCLUDE_GTEST_DEPENDENCY=1
+ )
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/Au
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # Remove empty directory
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/aurora-au/usage b/vcpkg/ports/aurora-au/usage
new file mode 100644
index 0000000..6b9b5f7
--- /dev/null
+++ b/vcpkg/ports/aurora-au/usage
@@ -0,0 +1,4 @@
+The package aurora-au provides CMake targets:
+
+ find_package(Au REQUIRED)
+ target_link_libraries(main PRIVATE Au::au)
diff --git a/vcpkg/ports/aurora-au/vcpkg.json b/vcpkg/ports/aurora-au/vcpkg.json
new file mode 100644
index 0000000..4e909b0
--- /dev/null
+++ b/vcpkg/ports/aurora-au/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
+ "name": "aurora-au",
+ "version-semver": "0.5.0",
+ "description": "A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience.",
+ "homepage": "https://github.com/aurora-opensource/au",
+ "documentation": "https://aurora-opensource.github.io/au/main/",
+ "license": "Apache-2.0",
+ "supports": "!osx",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}